Bug 1228149 - yast "users" module not compatible with PAM's use of the 5th gecos field in /etc/passwd
Summary: yast "users" module not compatible with PAM's use of the 5th gecos field in /...
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 16:30 UTC by Charles Wight
Modified: 2024-07-19 16:32 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
error/warning from grapical version of yast user module (29.59 KB, image/jpeg)
2024-07-19 16:30 UTC, Charles Wight
Details
yast user module showing GECOS created with chfn (156.82 KB, image/jpeg)
2024-07-19 16:32 UTC, Charles Wight
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Wight 2024-07-19 16:30:07 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.
Comment 1 Charles Wight 2024-07-19 16:32:09 UTC
Created attachment 876166 [details]
yast user module showing GECOS created with chfn