LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2010, 05:31 PM   #1
AndrewJS
LQ Newbie
 
Registered: Dec 2010
Posts: 16

Rep: Reputation: 0
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
 
Old 12-11-2010, 06:12 PM   #2
spazticclown
Member
 
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
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.

Last edited by spazticclown; 12-11-2010 at 06:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
desktop security settings? stubbe Linux - Security 12 06-05-2006 05:29 PM
security settings buzzycoy Linux - Security 2 12-09-2004 09:22 AM
security settings!! blind958 Mandriva 1 07-16-2004 02:49 PM
please rate me security settings qwijibow Linux - Security 2 09-09-2003 05:28 AM
security settings infamous41md Linux - Newbie 1 06-03-2003 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration