Plenty of examples on how to set umask for a user... but how do you read (or uncover) the default umask for a given user (say the logged in user)
I am using a private user group setup, i.e. a user foo's home directory is owned by foo:foo, not foo:users.
For this to work, I need to set the umask to 002 globally.
After a quick grep -RIi umask /etc/*, it seemed for a moment that modifying the UMASK entry in /etc/login.defs should do the trick.
Can someone explain to me how umask affects the default mask of newly created files if ACLs are activated? Is there some documentation about this?
$ mkdir test_dir && cd test_dir
$ setfacl -m d:someuser:rwx -m u:someuser:rwx .