Change file permissions of files in folders
I just copied a backup of several hundred folders from a CD in my /home/user direcorty. Originally, the folders themselves were 700 and the files within were all 644. However, on the CD the folders and the files are all 444 for some reason that I cannot fathom.
In order to correct the problem, I figured that I'd chmod everything to 644 and then chmod the folders to 700 like so: Code:
chmod 644 -R * Thanks in advance! |
Solved my own problem! I found the X flag, which I did not know about, in the chmod man page. So this did what I need:
Code:
dotancohen@laptop:$ chmod o=r -R * |
All times are GMT -5. The time now is 11:16 AM. |