[Pkg-shadow-devel] Bug#471705: passwd: deluser weirdness; uninit value

Justin Pryzby justinpryzby at users.sourceforge.net
Wed Mar 19 16:20:14 UTC 2008


Package: passwd
Version: 1:4.0.18.1-7
Severity: normal

$ sudo useradd useradd
$ grep useradd /etc/passwd
useradd:x:1004:1007::/home/useradd:/bin/sh
$ sudo deluser useradd
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 `useradd' ...
Warning: group `useradd' has no more members.
Done.
$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

There was no delay for me to ^C (or otherwise the delay wasn't long
enough to read and reread that surprising message).  Presumably the
error message (apparently a false-positive) is due to the
uninitialized value.





More information about the Pkg-shadow-devel mailing list