LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Security Settings... (https://www.linuxquestions.org/questions/linux-newbie-8/security-settings-849687/)

AndrewJS 12-11-2010 04:31 PM

Security Settings...
 
Hi there

I was given certain files with a security setting which I think meant that they weren't allowed to be modified...the way to remove these restrictions for all files is with the command:
chmod 0644 *
I have done this many times and it worked each time...however, unfortunately I made the mistake of typing chmod 0644 * into the directory above the one that I meant to...whenever I try to go into a subdirectory I am told things like: access to <suchandsuchdirectory> denied or permission denied..
So my question is: how do I undo whatever security settings I put into place when I used the command: chmod 0644 * ?

Any advice is appreciated

Andrew

spazticclown 12-11-2010 05:12 PM

If you are looking to reset the contents of that directory
$ chmod 0755 *
This will set everything back to executable, however this includes all files that may be in that directory

$ find . -type d -exec /bin/chmod 0755 '{}' \;
This will set all directories (and sub directories) back to 0755 from the current directory. Navigate to where the change happened and run this should correct any errors.


All times are GMT -5. The time now is 07:14 PM.