beware chown

From: <tsh_at_mrc-lmb.cam.ac.uk>
Date: Tue, 26 Aug 2003 13:40:53 +0100 (BST)

Hi all,
I just discovered the hard way that the default action of
'chown' is to change the owner of the file pointed to
by a symlink, rather than change the owner of the symlink.

Wouldnt it be more sensible to make the default action the
safe one (i.e. change the owner of the symlink) rather
than the unsafe one?

Many users make symlinks in their own directories pointing
to system files, and a recursive chown down a user's
directory tree can cause mayhem...

Cheers,
Terry



Terry Horsnell (tsh_at_mrc-lmb.cam.ac.uk)
I.T. Manager
Medical Research Council
Lab of Molecular Biology
Hills Road
CAMBRIDGE CB2 2QH
U.K.
Phone: +44 (0)1223 248011
Fax: +44 (0)1223 213556
Received on Tue Aug 26 2003 - 12:41:55 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT