Subject: bin/11484: command "userdel -r" does not work.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <petri.koistinen@iki.fi>
List: netbsd-bugs
Date: 11/13/2000 12:30:17
>Number: 11484
>Category: bin
>Synopsis: command "userdel -r" does not work.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 13 12:30:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Petri Koistinen
>Release: 1.5_BETA
>Organization:
>Environment:
System: NetBSD kissakala 1.5_BETA NetBSD 1.5_BETA (MYKERNEL) #0: Sat Nov 11 02:23:45 GMT 2000
thoron@kissakala:/usr/src/sys/arch/amiga/compile/MYKERNEL amiga
>Description:
userdel -r foobar does not work as it should.
>How-To-Repeat:
copied from xterm:
--
bash-2.03# useradd -m foobar
bash-2.03# userdel -r foobar
userdel: can't open /etc/master.passwd': Permission denied
XXX: /bin/rm -rf /home/foobar > /dev/null 2>&1 || truebash-2.03#
bash-2.03# ls -l /etc/master.passwd
-rw------- 1 root wheel 889 Nov 13 21:53 /etc/master.passwd
bash-2.03# id
uid=0(root) gid=0(wheel)
groups=0(wheel),2(kmem),3(sys),4(tty),5(operator),20(staff),31(guest)
--
>Fix:
Well, you can always use this combination:
# userdel foobar
# rm -r /home/foobar
>Release-Note:
>Audit-Trail:
>Unformatted: