[Adduser-devel] Bug#469165: /usr/sbin/deluser: deluser thinks I want to remove the root user
Bram Senders
bram at luon.net
Mon Mar 3 14:19:35 UTC 2008
Package: adduser
Version: 3.106
Severity: important
File: /usr/sbin/deluser
Deluser gives an error and then thinks I want to remove the root user.
See the following transcript:
===
bram at tofu ~> sudo deluser --remove-all-files test
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
===
The referenced line 228 contains the following: "if ($uid == 0) {", so I
guess $uid does not get set; this might be because the "getpwnam($user)"
call on line 211 is only done if the "system" config parameter is set.
Cheers,
Bram Senders
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.24-1-powerpc
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.19 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