Solved

Linux Default Permissions

Posted on 2011-03-07
8
363 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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
 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IPA and Samba (and NFS and Samba....) 1 135
installed old nagios.... 13 142
Set-Top-Box hardware and Open Source! 8 202
Linux "time" command output redirection 16 149
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

832 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