Actually, it seems to me that the following fix resolves the issue.

shadow (1:4.1.5.1-1.1ubuntu4) vivid; urgency=medium

  * debian/patches/1020_fix_user_busy_errors:
    - libmisc/user_busy.c: Call sub_uid_close in all error cases, otherwise
      code that later opens it as RW fails obscurely. (LP: #1436937)
 -- William Grant <wgr...@ubuntu.com> Mon, 20 Apr 2015 18:41:47 +0100

(vivid-amd64)root@impulse:/home/bdmurray# apt-get install passwd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  passwd
1 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
Need to get 760 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ vivid-proposed/main passwd amd64 
1:4.1.5.1-1.1ubuntu4 [760 kB]
Fetched 760 kB in 6s (117 kB/s)                                                 
                                                                         
(Reading database ... 14236 files and directories currently installed.)
Preparing to unpack .../passwd_1%3a4.1.5.1-1.1ubuntu4_amd64.deb ...
Unpacking passwd (1:4.1.5.1-1.1ubuntu4) over (1:4.1.5.1-1.1ubuntu3) ...
(vivid-amd64)root@impulse:/home/bdmurray# su test
(vivid-amd64)test@impulse:/home/bdmurray$ sudo userdel -rf test
sudo: unable to resolve host impulse
userdel: user test is currently used by process 32256
userdel: test mail spool (/var/mail/test) not found
(vivid-amd64)test@impulse:/home/bdmurray$ exit
su: User not known to the underlying authentication module
(vivid-amd64)root@impulse:/home/bdmurray# su test
No passwd entry for user 'test'


** Changed in: shadow (Ubuntu)
       Status: Invalid => Triaged

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

Title:
  Unable to delete currently logged in user

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to