Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79213 - [git] shadow.service fail after the package is removed

Attached to Project: Arch Linux
Opened by Hanabishi (Hanabishi) - Thursday, 27 July 2023, 01:11 GMT
Last edited by Toolybird (Toolybird) - Thursday, 27 July 2023, 06:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

If git package was installed once and then uninstalled, shadow.service fail.

systemd[1]: Started Verify integrity of password and group files.
sh[1207]: user 'git': program '/usr/bin/git-shell' does not exist
sh[1207]: pwck: no changes
systemd[1]: shadow.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: shadow.service: Failed with result 'exit-code'.

'git' user is being created by the package, but never being deleted, so it points to a non-existing binary when package is not installed.

Additional info:
* package version(s): 2.41.0-2

Steps to reproduce:

1. Install git package.
2. Uninstall git package.
3. Run shadow.service manually or wait when it will run as a periodic maintenance task.
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 27 July 2023, 06:47 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Doug Newgard (Scimmia) - Thursday, 27 July 2023, 01:23 GMT Comment by Hanabishi (Hanabishi) - Thursday, 27 July 2023, 01:26 GMT
Yep, but there is still some solution needed for shadow.service not to fail.
Comment by Doug Newgard (Scimmia) - Thursday, 27 July 2023, 01:27 GMT
There is, manual intervention
Comment by Hanabishi (Hanabishi) - Thursday, 27 July 2023, 01:32 GMT
Idk, but deleting it manually every time when git package was installed and uninstalled (e.g. as a make dependency when running 'makepkg -r') sounds kinda rough.
Comment by Toolybird (Toolybird) - Thursday, 27 July 2023, 06:33 GMT
Related:  FS#77831   FS#49453   FS#46204   FS#44748 
Comment by Toolybird (Toolybird) - Thursday, 27 July 2023, 06:47 GMT
From  FS#44748  @JGC -> "Users should not be removed on uninstall, as that can leave files on your system without ownership."

From  FS#77831  @loqs -> "The user / group can not be removed as it prevents files / directories becoming owned by a ID that could then be reused."

I agree with @Scimmia...no bug here.

Loading...