You are not logged in.

#1 2016-09-02 15:09:03

Osiris
Member
Registered: 2003-01-18
Posts: 157
Website

Where is umask for user saved?

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

#2 2016-09-02 15:36:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: Where is umask for user saved?

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.

See https://wiki.archlinux.org/index.php/Umask


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

Board footer

Powered by FluxBB