FS#48542 - [xmms2] 0.8DrO_o.919.gece0baf-3 user/group created during installation not deleted during uninstall
Attached to Project:
Community Packages
Opened by Hannes Dinter (cdo) - Friday, 11 March 2016, 22:28 GMT
Last edited by Antonio Rojas (arojas) - Friday, 11 March 2016, 23:23 GMT
Opened by Hannes Dinter (cdo) - Friday, 11 March 2016, 22:28 GMT
Last edited by Antonio Rojas (arojas) - Friday, 11 March 2016, 23:23 GMT
|
Details
Description:
During installation (and upgrade), a user and group xmms2 are created. These are not deleted during uninstall, which results in failed state of shadow.service (started automatically every day by systemd timer). Additional info: Excerpt from journalctl during installation: [code] groupadd[1263]: group added to /etc/group: name=xmms2, GID=46 groupadd[1263]: group added to /etc/gshadow: name=xmms2 groupadd[1263]: new group: name=xmms2, GID=46 useradd[1268]: new user: name=xmms2, UID=46, GID=46, home=/var/lib/xmms2, shell=/bin/false useradd[1268]: add 'xmms2' to group 'audio' useradd[1268]: add 'xmms2' to shadow group 'audio' [/code] Status of shadow.service after next run after uninstall: [code] ● shadow.service - Verify integrity of password and group files Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled) Active: failed (Result: exit-code) since Fr 2016-03-11 22:55:06 CET; 13min ago Process: 1346 ExecStart=/usr/bin/pwck -r (code=exited, status=2) Main PID: 1346 (code=exited, status=2) systemd[1]: Starting Verify integrity of password and group files... pwck[1346]: user 'xmms2': directory '/var/lib/xmms2' does not exist pwck[1346]: pwck: no changes systemd[1]: shadow.service: Main process exited, code=exited, status=2/INVALIDARGUMENT systemd[1]: Failed to start Verify integrity of password and group files. systemd[1]: shadow.service: Unit entered failed state. systemd[1]: shadow.service: Failed with result 'exit-code'. [/code] Steps to reproduce: pacman -S xmms2 pacman -R xmms2 systemctl start shadow.service (alternatively: pwck -r) |
This task depends upon
Closed by Antonio Rojas (arojas)
Friday, 11 March 2016, 23:23 GMT
Reason for closing: Not a bug
Additional comments about closing: This is intentional
https://www.archlinux.org/todo/usergroup -management/
Friday, 11 March 2016, 23:23 GMT
Reason for closing: Not a bug
Additional comments about closing: This is intentional
https://www.archlinux.org/todo/usergroup -management/
Proposed solution is to delete the user and group during uninstall via post_remove() function in install.sh
[0] https://projects.archlinux.org/svntogit/community.git/tree/trunk/install.sh?h=packages/xmms2