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

modified system uid range causes package installation to fail #1262

Open
ethanwu10 opened this issue Feb 23, 2022 · 1 comment
Open

modified system uid range causes package installation to fail #1262

ethanwu10 opened this issue Feb 23, 2022 · 1 comment
Labels

Comments

@ethanwu10
Copy link
Member

ethanwu10 commented Feb 23, 2022

Some way or another, a clean Debain install + Puppet agent run causes users to be added before Puppet gets a chance to change the adduser configuration to limit the max system uid at 500 (via ocf/groups.sh). When the package that creates that group is installed, adduser then complains that the user exists and is not a system user (since it was created at the default range going up to 999), causing the package installation to fail.

Seen with: ocfletsencrypt, systemd-coredump (created by sysusers.d / systemd-sysusers - this happens on first boot, way before Puppet gets a chance to do anything)

Another note: it seems that Puppet user resource also ignores adduser.conf, since I tested manually deleting one of the problematic users and rerunning Puppet, which just then recreated it with the same problematic uid, despite adduser.conf definitely being modified at this point.

I think the best solution here is to clear out an area in the uid/gid space in LDAP for local users that is above 1000, so we can keep the standard defaults in early system provisioning and not need to add dependencies on ocf everywhere in Puppet (and things that ignore adduser.conf aren't affected). Another option is to define a ocf::user resource with the dependency (and make it respect adduser.conf)

@ethanwu10 ethanwu10 added the bug label Feb 23, 2022
@kpengboy
Copy link
Member

Is it possible to set some settings in the installation image's preseed.cfg so that the maximum system UID starts out at 500?

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

No branches or pull requests

2 participants