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

Add -l (--no-log-init) to useradd commands to avoid creating huge files #91

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 24, 2024

Description

Without the -l (--no-log-init) parameter when running useradd, it can create huge /var/log/faillog and /var/log/lastlog files since it reserves space for all users between 0 and the UID.

See docker/hub-feedback#2263 (comment) for more information.

Issue #(issue)

Containers Affected

Fedora-37
Fedora-39
Ubuntu-20
Ubuntu-22

Without the -l (--no-log-init) parameter when running useradd, it can
create huge /var/log/faillog and /var/log/lastlog files since it reserves
space for all users between 0 and the UID.

See docker/hub-feedback#2263 (comment)
for more information.

Signed-off-by: Rebecca Cran <[email protected]>
@ghost ghost requested a review from osteffenrh May 24, 2024 11:43
@osteffenrh
Copy link
Contributor

Argh, pip conflicts with the system-wide python stuff.
Let me add a virtualenv to avoid this in the future.

@osteffenrh osteffenrh mentioned this pull request May 27, 2024
@osteffenrh
Copy link
Contributor

@bcran, closing this in favor of #95, which solves the build issue (and includes your patch).

@osteffenrh osteffenrh closed this May 27, 2024
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.

2 participants