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

Logan Rosen 1023509 at bugs.launchpad.net
Wed Jul 11 17:51:31 UTC 2012


It looks like this bug was fixed in the new upstream version that's
currently in Debian. I'm going to see if I can manage a merge (or
possibly request a sync, if a merge is unnecessary); otherwise, I'll
file a bug to request a merge from Debian.

** Package changed: debian => shadow (Debian)

** Package changed: ubuntu => shadow (Ubuntu)

** Bug watch added: Debian Bug tracker #617295
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617295

** Changed in: shadow (Debian)
   Importance: Undecided => Unknown

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

** Changed in: shadow (Debian)
 Remote watch: None => Debian Bug tracker #617295

-- 
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:
  Unknown

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