Solved

Linux Default Permissions

Posted on 2011-03-07
8
365 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
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.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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.

829 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