Questions tagged [umask]

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.

49 questions
12
votes
2 answers

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

I'm using umask 077 ."Other" and "group" do not have any rights, but the user can't execute files/directories. Why does umask 077 not allow the owner to execute files/directories?
Just me
  • 121
6
votes
1 answer

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 and folders with strange permissions across my…
Miles
  • 180
  • 9
2
votes
1 answer

Is setting umask to 000 dangerous

I know that setting umask to 000 causes potential security issues. I don't care. I only want to know if something bad happens if I do it as root (sudo umask 000), or in /etc/init.d/rc script. By something bad, I mean breaking packages or essential…
banan314
  • 360
1
vote
0 answers

Why is the umask number not the same for different local users?

For one of my local users, "ram", the umask is 0002. Another user, "yas" has the umask value 0022 instead. Shouldn't all users have gotten the same umask setting on their creation?
1
vote
1 answer

umask leading 0

My umask is currently (default) set to 0002, as shown below. I understand that the permissions from right to left are, other, user, owner. So what is the first 0 for? $ umask 0002
john smith
  • 3,033
1
vote
1 answer

How to reliably set umask on Ubuntu 19.10? SOLVED (for 20.04&20.10 also)

I have set up a new computer running Ubuntu 19.10. Now I want to set default permissions to be more restrictive via umask, but fail to do so. I tried setting umask with every advice I could find here and…
dTerm
  • 11
1
vote
0 answers

umask settings in Ubuntu 18.04

For system-wide umask setting I edited "/etc/pam.d/common-session". session optional pam_umask.so umask=027 It doesn't have any effect. It does work on Ubuntu 16.04. I don't know why this won't work in Ubuntu 18.04.
Smile
  • 1,099
0
votes
1 answer

Umask settings for users=rwx, group=r, others=

How can i set the umask in ubuntu for permissions like this: users = rwx group = r others = I tried this mask, but it didn't work: umask 011
user780468