Repository navigation
Conversation
Mic92
force-pushed
the
shadow-expire
branch
from
September 13, 2026 17:27
8981bc2 to
78c6389
Compare
NixOS exposes users.users.<name>.expires, which the legacy perl activation script writes into the 8th shadow field so that pam_unix refuses logins after that date. Userborn silently ignored it, so expired accounts kept working. Accept `expires` (YYYY-MM-DD) in the config and write it as days since epoch. Omitting it clears the field, keeping the config the single source of truth for managed users.
Mic92
force-pushed
the
shadow-expire
branch
from
September 13, 2026 17:28
78c6389 to
79bf8a4
Compare
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Sep 13, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Sep 17, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Sep 22, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Contributor
|
@nikstur this looks good to me and addresses one of the main remaining blockers to make userborn the default in nixos. |
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Oct 15, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Oct 21, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Oct 24, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Nov 7, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Nov 11, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Nov 16, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
Mic92
added a commit
to TUM-DSE/nixpkgs
that referenced
this pull request
Nov 19, 2026
…nges
Userborn ignored `expires`, so accounts past their expiration date could
still log in, unlike with the perl activation script. It also hardcoded
the dynamic allocation range instead of following
security.loginDefs.settings.{UID,GID}_{MIN,MAX}.
Bump to a fork carrying both upstream PRs until they are released:
- nikstur/userborn#72 (expires)
- nikstur/userborn#61 (normalUidRange/normalGidRange)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
NixOS exposes users.users..expires, which the legacy perl activation script writes into the 8th shadow field so that pam_unix refuses logins after that date. Userborn silently ignored it, so expired accounts kept working. This was a bit surprising because we were using this mechanism to log out students after some deadline.
Accept
expires(YYYY-MM-DD) in the config and write it as days since epoch. Omitting it clears the field, keeping the config the single source of truth for managed users.