Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax Check in GECOS Field: Allow any Data except Colons [master] #398

Merged
merged 12 commits into from
Aug 21, 2024

Conversation

shundhammer
Copy link
Contributor

Target Branch

This is for the merge of #395 to master.

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:

y-users-gecos-error

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:

% grep '^kilroy' /etc/passwd

kilroy:x:1001:100:Kilroy Anon,,,,UMASK=022:/home/kilroy:/bin/bash

Further Reading

  • man 1 chfn
  • man 8 pam_umask

Related PR

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10491291387

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 60.786%

Totals Coverage Status
Change from base Build 10218434682: 0.0%
Covered Lines: 3404
Relevant Lines: 5600

💛 - Coveralls

@shundhammer shundhammer merged commit 381aad1 into master Aug 21, 2024
12 checks passed
@shundhammer shundhammer deleted the huha-gecos-master branch August 21, 2024 14:03
Copy link

✅ Autosubmission job #10491398319 successfully finished
✅ Created submit request #1195134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants