On Tue, Aug 21, 2007 at 06:32:53PM +0200, Vincent Lefevre wrote:
On 2007-08-21 11:12:11 -0400, Michael Stone wrote:
Besides being wrong about chown & chgrp in point 3?
I'm not wrong:
courge:~> ll file link
-rw-r--r-- 1 vlefevre lip 0 2007-08-21 18:24:34 file
lrwxrwxrwx 1 vlefevre lip 4 2007-08-21 18:24:42 link -> file
courge:~> chgrp arenaire link
courge:~> ll file link
-rw-r--r-- 1 vlefevre lip 0 2007-08-21 18:24:34 file
lrwxrwxrwx 1 vlefevre arenaire 4 2007-08-21 18:24:42 link -> file
What version of chgrp are you using?
(161)foo:/tmp/t> ls -l file link
-rw-rw-r-- 1 mstone mstone 0 2007-08-21 13:11 file
lrwxrwxrwx 1 mstone mstone 4 2007-08-21 13:11 link -> file
(162)foo:/tmp/t> chgrp staff link
(163)foo:/tmp/t> ls -l file link
-rw-rw-r-- 1 mstone staff 0 2007-08-21 13:11 file
lrwxrwxrwx 1 mstone mstone 4 2007-08-21 13:11 link -> file
From the chgrp documentation:
‘--dereference’
Do not act on symbolic links themselves but rather on what they
point to. This is the default.
Do you perhaps have chgrp aliased to chgrp -h?
Mike Stone