FS#63972 - [git] git user can't use SSH since recent systemd-sysusers update

Attached to Project: Arch Linux
Opened by Tolga Cakir (tolga9009) - Tuesday, 01 October 2019, 04:48 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 05 November 2019, 09:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Similar to  FS#63706 , since systemd-sysusers version 243, git user created by "/usr/lib/sysusers.d/git.conf" can no longer be accessed by SSH. "su git" and "ssh git@example.com" result in "Your account has expired; please contact your system administrator".

This results in Git beeing unusable in the way outlined in the official documents at https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server.

Fixed by using "chage -E -1 git".

Additional info:
* systemd 243.51-1
* Caused by: https://github.com/systemd/systemd/pull/13277
* Thread: https://bbs.archlinux.org/viewtopic.php?pid=1866229

Example:
git clonegit@example.com:22/~git/test.git"> ssh://git@example.com:22/~git/test.git
Cloning into 'test'...
Your account has expired; please contact your system administrator
Connection closed by example.com port 22
fatal: Could not read from remote repository.
This task depends upon

Closed by  Christian Hesse (eworm)
Tuesday, 05 November 2019, 09:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  systemd 243.78-2
Comment by Levente Polyak (anthraxx) - Tuesday, 05 November 2019, 08:43 GMT
The mentioned cause has been reverted because this change leaves accounts created by sysusers unusable my many tools:
https://github.com/systemd/systemd/commit/12c829376a95ee0a734b8dbd347042062516f0a9

We should backport this revert asap, every sysuser account currently created is potentially "borked".

Loading...