Date: Mon, 1 Jul 1996 19:54:27 +0200 (MET DST) From: Mikko Tyolajarvi <mikko@dynas.se> To: questions@freebsd.org Subject: Odd (?) ownership of symbolic links Message-ID: <Pine.GSO.3.93.960701195035.21113J-100000@spirit.dynas.se>
next in thread | raw e-mail | index | archive | help
To my surprise I just discovered that symbolic links inherit owner from the directory in which they are created. This happens on FreeBSD 2.1-RELEASE and the 2.2-960501-SNAP (but on no other OS I have tried it on, including FreeBSD 1.1.5). Thus: =09dumbo% cd /tmp =09dumbo% touch foo =09dumbo% ln -s foo bar =09dumbo% ls -l foo bar =09lrwxrwxrwt 1 bin bin 3 Jul 1 19:45 bar -> foo =09-rw-r--r-- 1 mikko bin 0 Jul 1 19:45 foo =09dumbo% rm foo bar =09rm: bar: Operation not permitted Of course, for directories without the "t"-bit, the link *can* be removed. I don't know whether this is a bug or an obscure feature, the purpose of which totally eludes me at the moment. =09=09/Mikko Mikko Ty=F6l=E4j=E4rvi_____________________________________________mikko@d= ynas.se DynaSoft
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.93.960701195035.21113J-100000>