Bug 1315864

Summary: "userdel --force" does not delete user if he is logged in
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: shadow-utilsAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: pvrabec, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: shadow-utils-4.2.1-8.fc23 shadow-utils-4.2.1-8.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 01:51:12 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 Miroslav Suchý 2016-03-08 19:47:09 UTC
Description of problem:
"userdel --force" used to delete user even if he was logged in. This is used in "mock" when setting up chroot.
This now stopped working. Fortunately it pop ups mainly when used with mockchain and rarely when used with mock. 

Version-Release number of selected component (if applicable):
shadow-utils-4.2.1-3.fc23.x86_64

How reproducible:
deterministc

Steps to Reproduce:
1. adduser foo
2. su - foo
In another terminal:
3. userdel -f foo

Actual results:
userdel: user foo is currently used by process 26879
userdel: cannot open /etc/subuid


Additional info:
The mention of subuid got me to:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778287
but I cannot determine if it is relevant.

Comment 1 Tomas Mraz 2016-03-14 10:05:59 UTC
It looks like the Debian bug is the same one. I'll try to prepare testing update with this patch soon.

Comment 2 Fedora Update System 2016-03-17 17:28:42 UTC
shadow-utils-4.2.1-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e06b8a4cec

Comment 3 Fedora Update System 2016-03-17 17:28:49 UTC
shadow-utils-4.2.1-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6bdec0dd56

Comment 4 Fedora Update System 2016-03-18 14:56:36 UTC
shadow-utils-4.2.1-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6bdec0dd56

Comment 5 Fedora Update System 2016-03-19 01:25:18 UTC
shadow-utils-4.2.1-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e06b8a4cec

Comment 6 Fedora Update System 2016-03-21 01:51:09 UTC
shadow-utils-4.2.1-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2016-03-26 18:01:59 UTC
shadow-utils-4.2.1-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.