Relax Check in GECOS Field: Allow any Data except Colons [SLE-15-SP6] #395
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Target Branch
This is for SLE-15-SP6. The merge to master / Factory is #398.
Bugzilla
https://bugzilla.suse.com/show_bug.cgi?id=1228149
Trello
https://trello.com/c/PLxx2iDV
Problem
PAM in connection with some desktops like GNOME need an umask specification to be set in the GECOS field (the comment / full user name field) in
/etc/passwd
.But the YaST users module complains that only 3 fields separated by commas are permitted:
This is triggered when trying to leave that tab.
Cause
There is an additional check in the ancient
Users.pm
Perl module that dates back to 2004. Why this check exists is unclear; there doesn't seem to be a reference why this limitation was introduced.Fix
Removed that check.
Test
Manual test in a TW VM. After removing this check, it doesn't complain anymore, and
/etc/password
now contains the expected entry:Further Reading
man 1 chfn
man 8 pam_umask
Related PR