From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii)
Subject: Re: chmod on link?
Date: 1998/12/09 [thread overview]
Message-ID: <74mhkm$7le@ds2.acs.ucalgary.ca> (raw)
In-Reply-To: casper.913219645@nl-usenet.sun.com
Casper H.S. Dik - Network Security Engineer (Casper.Dik@Holland.Sun.Com) wrote:
: A soft/sym link is not a file.
: It can be manipulated in only two ways:
: - unlink(2) - remove it
: - symlink(2) - create it
Well, strictly speaking this aint true on all unices (it may be true for
Sunos and/or Solaris - I just don't know). On most unices it is also
possible to lstat() a symbolic link, and on some it is possible to
lchown() and readlink() it. Unless I am mistaken, later versions of
Irix also have lchmod() (which, like lchown(), has no real meaning,
but was added due to the popular demand).
(readlink(), lstat(), and lchown() are actually required by XPG4 UNIX,
so that I am sure they are also supported by Solaris, if not by SunOS).
: lrwxrwxrwx SunOS 4/Solaris 2&7
: l--------- Irix (others?)
: Some may just use the user's umask() in creating them, (DU)?
DU creates symlinks with 0777 regardless of the users' umask. Irix
(ay least 5.* and 6.[0-4]) does indeed uses users' umask.
Regards,
/Serge.P
next prev parent reply other threads:[~1998-12-09 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-09 5:00 chmod on link? ivan.dolezal
1998-12-09 5:00 ` Timo Felbinger
1998-12-09 5:00 ` Timo Felbinger
1998-12-09 5:00 ` Nikola Milutinovic
1998-12-09 5:00 ` Casper H.S. Dik - Network Security Engineer
1998-12-09 5:00 ` Serguei Patchkovskii [this message]
1998-12-11 5:00 ` Mike harrelson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox