Package: passwd
Version: 1:4.1.3.1-1
Severity: normal
File: /usr/sbin/userdel
Hi
Following these steps, I systematically am prevented to deluser foobar:
- on tty1 as root, adduser foobar, password foo
- on tty2, login as foobar/foo, then ^D to logout
- on tty1 as root, deluser foobar:
Removing user `foobar' ...
Warning: group `foobar' has no more members.
userdel: user foobar is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel foobar' returned error code 8.
Exiting.
I reproduce with "userdel foobar" and if I strace it, I see one of the
last actions before the message is to open /var/run/utmp.
pgrep -u foobar yields no process and "who" and "w" don't show any
session from foobar; "last foobar" doesn't show this user as logged in
either.
If I login on tty2 with another user, I can deluser foobar.
I suspect the parsing of utmp is broken since both w and who get it
right.
Bye
--
Loïc Minier
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]