Re: How does chown(2) works with symlinks?

Zefram (A.Main@dcs.warwick.ac.uk)
Mon, 8 Jul 1996 09:11:55 +0100 (BST)


>Which file gets changed when a call to chown(2) is done on a symlink?
>The man page gives the impression that it would follow the symlink and
>change the owner of the file pointed by the symlink. Still, if a used
>chown on a symlink now, it will only change the symlink. Was there a
>change to the way it works?

Don't complain -- the current behaviour is the Right Thing. AFAIK
Linux has always had the correct behaviour. Some other Unices get it
wrong, which may have influenced the man page.

-zefram