Bugzilla – Bug 1228149
yast "users" module not compatible with PAM's use of the 5th gecos field in /etc/passwd
Last modified: 2024-07-19 16:32:09 UTC
Created attachment 876165 [details] error/warning from grapical version of yast user module From the pam_umask man page: The PAM module tries to get the umask value from the following places in the following order: • umask= entry in the user's GECOS field • umask= argument • UMASK= entry from /etc/login.defs • UMASK= entry from /etc/default/login --- Unfortunately, gnome (and perhaps other desktop environments) does not respect the umask set in a user's ".profile". Thus, the only way to reliably set a umask for a specific user is to utilize the 5th GECOS field. The yast "users" module does not recognize this as a valid use of GECOS. I set the umask for user "ox" using "/usr/bin/chfn". root@orca# grep ^ox /etc/passwd ox:x:1000:1000:Charles Wight,,,,UMASK=077:/home/ox:/bin/bash This works as expected from the pam documentation and is respected by gnome sessions.
Created attachment 876166 [details] yast user module showing GECOS created with chfn