• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • 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 KosarajuDevOps EngineerCommented:
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
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
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

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

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