LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   chown -R (https://www.linuxquestions.org/questions/programming-9/chown-r-150363/)

ujotne 02-25-2004 11:06 AM

chown -R
 
Hi,

I am trying to change the permissions of all subdirectories and files a directory mydir, included all files in all the subdirectorie. The command chown -R mydir don't suffice, as most of the subdirectories and files start with a . and/or contains whitespace. Any suggestions?

Regards

jtshaw 02-25-2004 11:12 AM

What version of chown are you using? if I run chown -R username:groupname mydir/ it works on all files... including . files. I just tried it.

bnice 02-25-2004 11:19 AM

to give everyone write permission:

Code:

chmod -R a+w mydir

Edit: this assumes that you *really* want to change permissions, not ownership

ujotne 02-25-2004 12:02 PM

Yes, you are right, chown -R newowner:newgrp mydir/ does it. That's what I thought I used in the first place, so I must have had a typo (I often do...). Thanks anyway.


All times are GMT -5. The time now is 03:59 PM.