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 |
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.
|
to give everyone write permission:
Code:
chmod -R a+w mydir Edit: this assumes that you *really* want to change permissions, not ownership |
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. |