Skip site navigation (1)Skip section navigation (2)
Date:      21 Dec 2002 00:22:32 +1100
From:      Andrew Cutler <andrew@1stelement.com>
To:        freebsd-questions@freebsd.org
Subject:   chown  broken??
Message-ID:  <1040390551.921.36.camel@localhost>

next in thread | raw e-mail | index | archive | help
Hello 



I just hosed one of my boxes by recursively setting all my file
permissions incorrectly:
	
	$ su
        $ cd /data
        $ chown -R andrew:wheel *
        $ chown -R andrew:wheel .*


For some reason the last command was interpreted as:
$ chown -R andrew:wheel /* 
	
I just cvsuped to 4.7 a few days ago, still running 4.7-RELEASE GENERIC
kernel.

Why does the behaviour of chown change when u r root?

Surely this is a bug?

And what the hell is this crap in the man page about -R:

        -R  Change the user ID and/or the group ID for the file
        hierarchies rooted in the files instead of just the files
        themselves.

As always, any assistance is appreciated!

Cheers,


-- 
Andrew Cutler <andrew@1stelement.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1040390551.921.36.camel>