From owner-freebsd-hackers Wed Aug 20 23:15:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA01692 for hackers-outgoing; Wed, 20 Aug 1997 23:15:31 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA01684 for ; Wed, 20 Aug 1997 23:15:27 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA13538; Thu, 21 Aug 1997 08:15:26 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id IAA29536; Thu, 21 Aug 1997 08:05:10 +0200 (MET DST) Message-ID: <19970821080509.CY28575@uriah.heep.sax.de> Date: Thu, 21 Aug 1997 08:05:09 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers) Cc: sadmin@roundtable.cif.rochester.edu (Security Administrator) Subject: Re: chown,chgrp References: <199708210523.BAA29273@roundtable.cif.rochester.edu> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 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 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199708210523.BAA29273@roundtable.cif.rochester.edu>; from Security Administrator on Aug 21, 1997 01:23:15 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Security Administrator wrote: > I'm sure that this has been covered at great length, but I've missed the > discussion. Does anyone know that chgrp and chown are broken on > symbolic links. Even if I specify the -RH, -RL, or -RHL flags (I tried > each combination), it didn't work. j@uriah 200% ln -s foo . j@uriah 201% ls -l foo lrwxrwxrwx 1 j bin 3 Aug 21 08:00 foo@ -> foo j@uriah 202% chgrp -h cvs foo j@uriah 203% ls -l foo lrwxrwxrwx 1 j cvs 3 Aug 21 08:00 foo@ -> foo Note that if you're using a historic version of 4.4BSD (anything prior to 2.2.2, or prior to 1997/03/31 in -current for FreeBSD), this was broken on purpose; symlinks didn't have user-changeable attributes there at all. -- 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. ;-)