Skip site navigation (1)Skip section navigation (2)
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
Message-ID:  <19970821080509.CY28575@uriah.heep.sax.de>
In-Reply-To: <199708210523.BAA29273@roundtable.cif.rochester.edu>; from Security Administrator on Aug 21, 1997 01:23:15 -0400
References:  <199708210523.BAA29273@roundtable.cif.rochester.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970821080509.CY28575>