Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mikeh@aslan.eng.mindspring.net (Mike harrelson)
Subject: Re: chmod on link?
Date: 1998/12/11	[thread overview]
Message-ID: <74r2uk$84r$1@camel0.mindspring.com> (raw)
In-Reply-To: 74mhkm$7le@ds2.acs.ucalgary.ca

In article <74mhkm$7le@ds2.acs.ucalgary.ca>,
Serguei Patchkovskii <patchkov@acs1.acs.ucalgary.ca> wrote:
>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).

I think he meant it isn't a regular file.

>On most unices it is also possible to lstat() a symbolic link, and on some it is
>possible to lchown() and readlink() it.

lstat(), readlink() are required to get information on a symlink and are fairly
standard.  lchown() exists on Unices where chown() follows a symlink.

>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).

lchown() does have real meaning.  Ownership of a symlink is needed, particularly in
directories like /tmp with sticky bits set.


-- mikeh



  reply	other threads:[~1998-12-11  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   ` Nikola Milutinovic
1998-12-09  5:00     ` Casper H.S. Dik - Network Security Engineer
1998-12-09  5:00       ` Serguei Patchkovskii
1998-12-11  5:00         ` Mike harrelson [this message]
1998-12-09  5:00 ` Timo Felbinger
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