[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: chown -R wierd under RH9



On 14:53 08 May 2003, Billy Davis <bdavis cds-corp com> wrote:
| We just installed a fresh RH9 Server.   After loading an existing  directory
| from another server, I decided to change the owner.  I change to
| /home/accounting/tools and entered 'chown -R service *'.  I then noticed
| that not only did every file both in and below the tools directory have the
| new owner (which is what I expected), but so did EVERY file and subdirectory
| ABOVE the ' tools' directory.

You have a symlink in that directory that points to the outside.
Try this:

	ls -ld * | grep ' ->'

and see what there is.

For this reason it is unwise to use "*". A plain:

	chown -R service .

would have done it, and would not have escaped.
-- 
Cameron Simpson, DoD#743        cs zip com au    http://www.zip.com.au/~cs/

I took that Reading Dynamics course, and it really works.  I read _War and
Peace_ in an hour last night.  It's about Russia.	- W. Allen, ca. 1962





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]