[Adduser-devel] Bug#473356: adduser: deluser says it is deleting root account but doesn't

Nick Schmalenberger ohp6oD3y at schmalenberger.us
Sun Mar 30 03:58:47 UTC 2008


Package: adduser
Version: 3.106
Severity: normal

Hi,
When I do deluser it claims I am about to delete the root account and I
should press Ctrl-C but if I wait then it doesn't do it. 
asdf:x:1001:1001:,,,:/home/asdf:/bin/bash
judith:~# deluser asdf
Use of uninitialized value in numeric eq (==) at /usr/sbin/deluser line
228.
WARNING: You are just about to delete the root account (uid 0)
Usually this is never required as it may render the whole system
unusable
Press immediately Ctrl+C if you want to abort
Ok, you really want it, I'll delete that account
Removing user `asdf' ...
Warning: group `asdf' has no more members.
Done.
judith:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync

This is also mentioned in bug 471552. Also, there really isn't much time
to press Ctrl-C here, 5 or 10 seconds might be better. Thanks!



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages adduser depends on:
ii  debconf [debconf-2.0]         1.5.20     Debian configuration management sy
ii  passwd                        1:4.1.0-2  change and administer password and
ii  perl-base                     5.8.8-12   The Pathologically Eclectic Rubbis

adduser recommends no packages.

-- debconf information:
  adduser/homedir-permission: true





More information about the Adduser-devel mailing list