Bug 295511 - userdel man page inconsistency
userdel man page inconsistency
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
7
All Linux
low Severity low
: ---
: ---
Assigned To: Peter Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-18 17:15 EDT by Ed Swierk
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-09-18 17:42:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ed Swierk 2007-09-18 17:15:22 EDT
The description of the -f/--force option in the userdel man page says "This
option forces the removal of the user, even if she is still logged in."

Under CAVEATS, it says "userdel will not allow you to remove an account if the
user is currently logged in. You must kill any running processes which belong to
an account that you are deleting."

The actual behavior of the userdel program is consistent with the CAVEATS note;
-f does not allow removing a user account if the user is logged in.
Comment 1 Ed Swierk 2007-09-18 17:29:34 EDT
Actually, userdel -f does indeed delete the user, but it still complains "user
blat is currently logged in".  The return code is 0 instead of 8, however. 
Pretty confusing behavior.
Comment 2 Tomas Mraz 2007-09-18 17:42:10 EDT
I don't really see it as confusing as the return code is what is relevant for
testing the regular unix commands success/failure.

Note You need to log in before you can comment on or make changes to this bug.