Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > chmod & chown recursively?

chmod & chown recursively?
Thread Tools
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Jan 10, 2004, 04:46 PM
 
How do I chmod & chown recursively?
I'd prefer to do this via the command line than go thru each directory and files within
(-so my 6 year old can have some of my spaceships!- he's pretty p.o.'d right now . . .)

man chmod and man chown are not elucidating,

I've tried -r but this seems to be an illegal option.

- also curious -- anyone know any good 'foreach' type scripts that would work in this context?
     
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Jan 10, 2004, 06:27 PM
 
Originally posted by vsurfer:
How do I chmod & chown recursively?
I'd prefer to do this via the command line than go thru each directory and files within
(-so my 6 year old can have some of my spaceships!- he's pretty p.o.'d right now . . .)

man chmod and man chown are not elucidating,

I've tried -r but this seems to be an illegal option.

- also curious -- anyone know any good 'foreach' type scripts that would work in this context?
it's R not r
     
vsurfer  (op)
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Jan 12, 2004, 07:35 PM
 
Originally posted by VEGAN:
it's R not r
Thanks,
Funny I tried that several times (from both our accounts) and no luck - maybe I needed to log out that user. Because I came back the next day after restart and the ownerships/perms were fixed the way he (6 yr-old) wanted them the next time we logged him in.

Just to make sure it was no fluke, as if such a thing were even possible, I ran a test on some test directories/files and -R worked fine.

Cheers
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:52 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2