Results 1 to 4 of 4
I managed to screw up my file permissions in /home. I need to set all files to 600, and apparently directories need execute permissions to open so I need all ...
- 08-12-2009 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 22
[SOLVED] Screwed up file permissions
I managed to screw up my file permissions in /home. I need to set all files to 600, and apparently directories need execute permissions to open so I need all directories and subdirectories in /home set to 700.
- 08-12-2009 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
what is your question?
the sun is new every day (heraclitus)
- 08-12-2009 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 22
Currently I have everything at 700, but I want to remove the executable bit from everything that isn't a directory.
- 08-12-2009 #4Just Joined!
- Join Date
- Aug 2009
- Location
- Zeewolde, Flevoland NL
- Posts
- 1
What you can do is the following:
Go to the /home directory and type the following as root:
Now every directory (wich is still chmodded 700) will be found and entered executing a chmod 600 to the files in it.Code:find $DIRNAME -type f -exec chmod 600 {} \;



