You are not logged in.
Pages: 1
Hello,
in /etc/login.defs I can set the umask for newly created users. I wonder where it is saved i.e. what file is changed so that the newly created user has the appropriate umask? In /etc/skel there is a umask entry only in .zshrc, which likely won't be modified by useradd on the fly.
This is not a question on how to change the umask.
Thanks!
Offline
It would be saved to the user's GECOS field in /etc/passwd, but by default the login.defs value is only used to create the user's home directory (see 'man useradd'). On Arch, umask is set by the login shell sourcing /etc/profile.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1