From owner-freebsd-questions Tue Jul 2 14:17:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA00297 for questions-outgoing; Tue, 2 Jul 1996 14:17:57 -0700 (PDT) Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA00290 for ; Tue, 2 Jul 1996 14:17:50 -0700 (PDT) Received: from host.domain by karon.dynas.se with smtp (Smail3.1.28.1 #5) id m0uanB6-000EV4C; Mon, 1 Jul 96 19:54:28 +0200 Received: by spirit.dynas.se (Smail3.1.28.1 #32) id m0uanB5-000JeaC; Mon, 1 Jul 96 19:54:27 +0200 Date: Mon, 1 Jul 1996 19:54:27 +0200 (MET DST) From: Mikko Tyolajarvi To: questions@freebsd.org Subject: Odd (?) ownership of symbolic links Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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