tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* beware chown
@ 2003-08-26 12:40 tsh
  0 siblings, 0 replies; only message in thread
From: tsh @ 2003-08-26 12:40 UTC (permalink / raw)


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@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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-26 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 12:40 beware chown tsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox