Solved

Linux Default Permissions

Posted on 2011-03-07
8
361 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

20 Experts available now in Live!

Get 1:1 Help Now