Bug 1130616

Summary: Unable to remove user from system after login on terminal. UID is used by /usr/lib/systemd/systemd
Product: [Fedora] Fedora Reporter: Robin Hack <rhack>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: johannbg, ksrot, lnykryn, msekleta, s, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-10 17:34:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Hack 2014-08-15 16:33:23 UTC
Description of problem:
Hi. I'm not able to delete user after his login.

Version-Release number of selected component (if applicable):
systemd-208-21.fc20.x86_64

How reproducible:
always

Steps to Reproduce:
1. # useradd kromanonec
2. # set password for user kromanonec
3. $ switch to text mode. login will shows up
4. $ login as user kromanonec
5. $logout
6. # as root try to remove user:
# userdel -r kromanonec
userdel: user kromanonec is currently used by process 23033


Actual results:
userdel: user kromanonec is currently used by process 23033

Expected results:
deleted user

Additional info:

Comment 1 Robin Hack 2014-08-15 17:43:21 UTC
Additional info:
kromanonec    23033  0.0  0.0  44520  4132 ?        Ss   18:20   0:00 /usr/lib/systemd/systemd --user

Comment 2 Lennart Poettering 2014-10-24 13:13:12 UTC
*** Bug 1114026 has been marked as a duplicate of this bug. ***

Comment 3 Zbigniew Jędrzejewski-Szmek 2014-10-26 21:47:19 UTC
As a work-around you can do 'systemctl stop user@`id -u kromanonec`'.

I'm not convinced that this is something that we want to or can fix, since there are various ways in which users are allowed to leave processes running around after logging out, and the admin simply has to take care of killing them before removing the user.

Comment 4 Fedora End Of Life 2015-05-29 12:38:50 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Zbigniew Jędrzejewski-Szmek 2015-06-10 17:34:01 UTC
Per comment #c3, I think that some manual action from the admin is expected.