Solved

Linux Default Permissions

Posted on 2011-03-07
8
360 Views
Last Modified: 2012-09-13
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
Comment
Question by:PrattCC1
8 Comments
 
LVL 23

Expert Comment

by:Maciej S
ID: 35059276
umask is the right tool.
What permissions you want to have, and what is you umask setting now?
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 35059280
what was your question? can you make the question more informative.
0
 

Author Comment

by:PrattCC1
ID: 35059602
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
 
LVL 31

Expert Comment

by:farzanj
ID: 35061493
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:PrattCC1
ID: 35062320
I get that, I have mine set to 002 however when I create a new folder it is 700
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35064120
What type of Linux box do you have?  What version?  Do you have SELinux enabled?
0
 

Author Comment

by:PrattCC1
ID: 35068501
Fedora 12 64bit no SELinux
0
 
LVL 13

Accepted Solution

by:
Sandy earned 500 total points
ID: 38140875
#umask 0022

this will solve your prob and put permission to defaults.

Dir => 0755
File => 0644
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now