*BSD News Article 73460


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: changind file permissions for a symbolic link
Date: 11 Jul 1996 20:13:37 GMT
Organization: Private BSD site, Dresden
Lines: 29
Message-ID: <4s3n9h$fo6@uriah.heep.sax.de>
References: <01bb6d2a.1c8123e0$38673fcb@simonh.addease.com.au>
  <31E1DF64.41C67EA6@eramp.net> <4rui9r$5ho@uriah.heep.sax.de>
  <31e4e0df.79680466@10.0.0.1>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

coredump@jurai.net (coredump@jurai.net) wrote:

> >That's wrong.  It's only that they always inherit the features of
> >their parent directory (owner, group, timestamps, permissions).  All
> >of these features are meaningless however (mostly -- only directories
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
> >with the `sticky' bit set are tricky), since the permissions of the
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >resource the link is pointing to are in effect when the link is being
> >followed.
> >cheers, J"org
> 
> Yes, but after one creates a symbolic link in a sticky (+t) directory,
> you cannot delete it unless you have root access.

Yep, if you had really read my message, you would have noticed that i
know this already.  (It's an [unwanted] logical consequence out of the
fact that symlinks don't have attributes of their own, but always
share the attribute of their parent directory.)

It was irrelevant for the original question, since the root directory
(for the /tmp link) is not supposed to have a sticky bit set.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)