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

Launchpad Bug Tracker 1023509 at bugs.launchpad.net
Wed Jul 11 17:46:09 UTC 2012


You have been subscribed to a public bug:

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

** Affects: shadow (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: shadow (Debian)
     Importance: Undecided
         Status: New

-- 
userdel returns exit code 12 if user is not in /var/mail
https://bugs.launchpad.net/bugs/1023509
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to shadow in Ubuntu.




More information about the foundations-bugs mailing list