[Bug 1023509] Re: userdel returns exit code 12 if user is not in /var/mail

Bug Watch Updater 1023509 at bugs.launchpad.net
Wed Jul 11 18:47:54 UTC 2012


** Changed in: shadow (Debian)
       Status: Unknown => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1023509

Title:
  userdel returns exit code 12 if user is not in /var/mail

Status in “shadow” package in Ubuntu:
  New
Status in “shadow” package in Debian:
  Fix Released

Bug description:
  This doesn't occur on CentOS and other distros.  If mailspool is not
  installed, or for whatever other reason the user has no folder under
  /var/mail,  usermod -r works properly, but returns exit code 12 (Which
  is supposed to be for failing to remove the user's home directory).

  I would expect this to return exit code 0, as it's a warning.

  Ubuntu 12.04 LTS

  Expected: userdel -r returns 0, or at least not 12; which is for
  reporting that the home directory was unable to be removed.

  Actual: userdel -r returns 12;  this happens if mailspool is not
  installed, or user for whatever reason has no folder in /var/mail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1023509/+subscriptions




More information about the foundations-bugs mailing list