Changing ownership of directory and all contents

2 replies [Last post]
BDub's picture
Offline
Joined: Dec 20 2003
Posts: 706

Hey -

I'm trying to change the ownership of a directory under OS X, and have all of the files and folders (and the files and folders within them etc.) change at the same time. I'm sure my chown syntax just isn't right, or that I'm pushing the button wrong, or something, but can anyone give instructions on how to do this?

-BDub

__________________

"There is going to be a future: let's chase it until it kills us." - Spider Robinson

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
BDub's picture
Offline
Joined: Dec 20 2003
Posts: 706
Got It

The following syntax works (verbose so you can see the change):

sudo chown -Rv newuser ./filename

-BDub

__________________

"There is going to be a future: let's chase it until it kills us." - Spider Robinson

Offline
Joined: Dec 20 2003
Posts: 851
You can also use chown -R use

You can also use chown -R user:group /path

__________________

Dr. Bob
Applefritter Admin