Umask is a value (the Ubuntu default is 022) that refers to those permissions that cannot be set by default when either a user or an application creates a new file.

learn more… | top users | synonyms

0
votes
1answer
38 views

Why doesn't umask work as expected?

Please, can someone explain this to me? I set: umask 000 touch afile.tmp result: -rw-rw-rw- 1 jay apache 0 Aug 16 18:11 afile.tmp I was expecting this: -rw-rw-rw- to be like this: ...
0
votes
0answers
9 views

How to automate CHMOD [duplicate]

How do I make the default value when upload a file via FTP for it to be 777. Like a have a ubuntu server, and one of the users has an application that created files in his folder, how do i make the ...
5
votes
1answer
136 views

Why does my umask keep resetting to 000?

When I login anew my umask is 002. At least for a while. Then at some point, and I'm not sure when, it reverts to 000. This is very inconvenient and I'm now constantly living in fear of dropping files ...
0
votes
1answer
81 views

How to Create Text Files with user execution bit set automatically [duplicate]

The closest I got was umask to change the default permissions set for files/folders. However, umask doesn't seem to allow enabling the x bit for files: The base permissions for directories are 0777 ...
1
vote
1answer
695 views

What permissions would change if I change umask to 027 from 022?

I have just started using Lynis(lynis is a software, please don't think I have misspelled linux).After running it, I was suggested to set umask in /etc/login.defs and /etc/init.d/rc to 027 than the ...
3
votes
1answer
118 views

Ubuntu 12.04 Server - Default directory permissions

I am new to linux and I installed linux for web server purpose with apache2. I have created a new directory /var/www/mysite. My main problem is that each new file I create has read only permissions ...
0
votes
0answers
151 views

umask in ubuntu 13.10 : how to have user and group same permissions?

I've set umask 002 in /etc/login.defs ~/.bashrc ~/.profile in order to have read and write permissions for user and group. (the idea is to give the ability for all the users of a same group to ...
1
vote
2answers
512 views

How to set the umask in 13.10?

Apparently, there's a bug in Upstart that's shipped with Ubuntu 13.10, which overrides the umask set either through $HOME/.profile or /etc/login.defs. Upstart has been updated to fix this in Trusty, ...
0
votes
1answer
115 views

new file default execution permission? [duplicate]

I can't figure out why I don't have execution permissions on files I create by default. I don't think I messed with any Ubuntu permissions, it's pretty default stuff. When doing some research I found ...
0
votes
1answer
125 views

Can I set a specific group|umask to be the default one for all actions within a certain path?

I would like to override the default umask and owner:group settings within certain directories only, without requiring root privileges, as that kind of defeats the purpose. For example, when I touch ...
3
votes
2answers
5k views

Why umask 077 does not allow user to execute files/directories?

I'm using umask 077."Other" and "group" do not have any rights, but user can't execute files/directories. Why umask 077 does not allow user to execute files/directories?
7
votes
1answer
1k views

How to make a directory with permanent permissions different from default

I have system-wide default permissions set with umask 027. I am in the need to make a directory whose sub-directories would need 775 permission and whose files would need 664 permissions and make ...
2
votes
0answers
212 views

Wrong permissions on “make install” [closed]

When I compile and install tarballs using the usual ./configure, make, sudo make install, the files and directories created always have wrong permissions. In particular, nothing that should have the ...
41
votes
2answers
39k views

What is “umask” and how does it work?

I believe that umask is something that controls file permissions, but do not fully understand it. After running umask 0644 in a terminal, I cannot read the files I create with the command-line text ...
7
votes
3answers
31k views

How to set umask for a specific folder

For some obvious reasons I need to set umask value for one specific folder. How can one do that? Thanks beforehand! UPDATE 1 The reason I need to use umask for a specific folder is following. I ...
2
votes
1answer
581 views

Firefox downloaded files permissions

My umask is 0022, but when I download a file (using Firefox 40b11) it is created with umask 0026 (-rw-r-----). No clue where the issue is, if I'm even asking in the right forum. I'm on Mint 10 (sorry, ...