Linux Default Permissions

Somehow my linux box has setting for new directorys and files to set it at 700 and 600... I have tried umask, but the best I can do is 775
PrattCC1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
SandyConnect With a Mentor Commented:
#umask 0022

this will solve your prob and put permission to defaults.

Dir => 0755
File => 0644
0
 
Maciej SsysadminCommented:
umask is the right tool.
What permissions you want to have, and what is you umask setting now?
0
 
Deepak KosarajuDevOps EngineerCommented:
what was your question? can you make the question more informative.
0
Building an Effective Phishing Protection Program

Join Director of Product Management Todd OBoyle on April 26th as he covers the key elements of a phishing protection program. Whether you’re an old hat at phishing education or considering starting a program -- we'll discuss critical components that should be in any program.

 
PrattCC1Author Commented:
the umask setting do not reset... I want the normal 0022 if I set it to 0022 I get a folder set to 700 and files set to 600

If I set it to 0000 sometimes its 775
0
 
farzanjCommented:
This is typically how it works -- a little off though.

Here is a reference for you
http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html

So if you set umask to 002, the default permissions should be 777-002 = 775 for folders and 666 - 002 = 664 for files.
0
 
PrattCC1Author Commented:
I get that, I have mine set to 002 however when I create a new folder it is 700
0
 
farzanjCommented:
What type of Linux box do you have?  What version?  Do you have SELinux enabled?
0
 
PrattCC1Author Commented:
Fedora 12 64bit no SELinux
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.