Return to BSD News archive
#! rnews 1651 bsd Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!olivea!spool.mu.edu!usenet.eel.ufl.edu!news-res.gsl.net!news.gsl.net!news.mathworks.com!newsfeed.internetmci.com!news.wwa.com!news From: coredump@jurai.net (coredump@jurai.net) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: changind file permissions for a symbolic link Date: Thu, 11 Jul 1996 11:11:02 GMT Organization: WorldWide Access (tm) - Chicagoland Internet Services (http://www.wwa.com) Lines: 21 Message-ID: <31e4e0df.79680466@10.0.0.1> References: <01bb6d2a.1c8123e0$38673fcb@simonh.addease.com.au> <31E1DF64.41C67EA6@eramp.net> <4rui9r$5ho@uriah.heep.sax.de> NNTP-Posting-Host: miso.wwa.com X-Newsreader: Forte Agent .99e/32.227 >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. [coredump@swell] /tmp> ls -lad . drwxrwxrwt 2 bin bin 512 Jul 11 02:01 . [coredump@swell] /tmp> ln -s /kernel slink [coredump@swell] /tmp> ls -lad slink lrwxrwxrwt 1 bin bin 7 Jul 11 04:11 slink -> /kernel [coredump@swell] /tmp> rm slink rm: slink: Operation not permitted [coredump@swell] /tmp> rm -f slink rm: slink: Operation not permitted [coredump@swell] /tmp>