[Pkg-shadow-devel] Bug#603315: Bug#603315: wrongly complains about user being logged in on userdel

Nicolas François nicolas.francois at centraliens.net
Mon Nov 15 22:12:55 UTC 2010

On Fri, Nov 12, 2010 at 10:59:56PM +0100, biebl at debian.org wrote:
> today I tried to purge the gdm3 package, which in postrm tries to delete
> the "Debian-gdm" user it created on installation. This failed though, as
> userdel wrongly complained about the user being logged in:
> pluto:~# lastlog -u Debian-gdm
> Username         Port     From             Latest
> Debian-gdm                                 **Never logged in**
> pluto:~# userdel Debian-gdm
> userdel: user Debian-gdm is currently logged in

Instead of using lastlog, can you try if Debian-gdm is still executing

(something like "ps U Debian-gdm")


More information about the Pkg-shadow-devel mailing list