[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

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
0
PrattCC1
Asked:
PrattCC1
1 Solution
 
Maciej SsysadminCommented:
umask is the right tool.
What permissions you want to have, and what is you umask setting now?
0
 
Deepak KosarajuCommented:
what was your question? can you make the question more informative.
0
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
SandyCommented:
#umask 0022

this will solve your prob and put permission to defaults.

Dir => 0755
File => 0644
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now