Bram Senders
2008-Mar-03 14:19 UTC
Bug#469165: /usr/sbin/deluser: deluser thinks I want to remove the root user
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@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
Joerg Hoh
2008-Mar-03 20:31 UTC
[Adduser-devel] Bug#469165: /usr/sbin/deluser: deluser thinks I want to remove the root user
Hi On Mon, Mar 03, 2008 at 03:19:35PM +0100, Bram Senders wrote:> 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.The correct variable would be "$pw_uid" which is always initialized with the data of the user to delete (see line 173); the patch will go into next release. Thanks for reporting. J?rg -- What did you do to the cat? It looks half-dead. -Schroedinger''s wife -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080303/8cc546de/attachment.pgp
Debian Bug Tracking System
2008-Mar-27 21:36 UTC
[Adduser-devel] Bug#469165: marked as done (/usr/sbin/deluser: deluser thinks I want to remove the root user)
Your message dated Thu, 27 Mar 2008 21:17:03 +0000 with message-id <E1JezT5-0004qo-7o at ries.debian.org> and subject line Bug#469165: fixed in adduser 3.107 has caused the Debian Bug report #469165, regarding /usr/sbin/deluser: deluser thinks I want to remove the root user to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 469165: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469165 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Bram Senders <bram at luon.net> Subject: /usr/sbin/deluser: deluser thinks I want to remove the root user Date: Mon, 03 Mar 2008 15:19:35 +0100 Size: 3082 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/da44e528/attachment.eml -------------- next part -------------- An embedded message was scrubbed... From: Stephen Gran <sgran at debian.org> Subject: Bug#469165: fixed in adduser 3.107 Date: Thu, 27 Mar 2008 21:17:03 +0000 Size: 3471 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/da44e528/attachment-0001.eml
Debian Bug Tracking System
2008-Mar-27 21:36 UTC
[Adduser-devel] Bug#469165: marked as done (/usr/sbin/deluser: deluser thinks I want to remove the root user)
Your message dated Thu, 27 Mar 2008 21:17:03 +0000 with message-id <E1JezT5-0004qs-9Q at ries.debian.org> and subject line Bug#470847: fixed in adduser 3.107 has caused the Debian Bug report #470847, regarding /usr/sbin/deluser: deluser thinks I want to remove the root user to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 470847: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470847 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Bram Senders <bram at luon.net> Subject: /usr/sbin/deluser: deluser thinks I want to remove the root user Date: Mon, 03 Mar 2008 15:19:35 +0100 Size: 3082 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/96ecdb8c/attachment.eml -------------- next part -------------- An embedded message was scrubbed... From: Stephen Gran <sgran at debian.org> Subject: Bug#470847: fixed in adduser 3.107 Date: Thu, 27 Mar 2008 21:17:03 +0000 Size: 3446 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/96ecdb8c/attachment-0001.eml
Debian Bug Tracking System
2008-Mar-27 21:36 UTC
[Adduser-devel] Bug#469165: marked as done (/usr/sbin/deluser: deluser thinks I want to remove the root user)
Your message dated Thu, 27 Mar 2008 21:17:03 +0000 with message-id <E1JezT5-0004qu-AI at ries.debian.org> and subject line Bug#471705: fixed in adduser 3.107 has caused the Debian Bug report #471705, regarding /usr/sbin/deluser: deluser thinks I want to remove the root user to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 471705: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471705 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Bram Senders <bram at luon.net> Subject: /usr/sbin/deluser: deluser thinks I want to remove the root user Date: Mon, 03 Mar 2008 15:19:35 +0100 Size: 3082 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/130793bb/attachment.eml -------------- next part -------------- An embedded message was scrubbed... From: Stephen Gran <sgran at debian.org> Subject: Bug#471705: fixed in adduser 3.107 Date: Thu, 27 Mar 2008 21:17:03 +0000 Size: 3471 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080327/130793bb/attachment-0001.eml