Subject: bin/17849: usermod doesn't correctly handle YP users, fails to clean up ptmp file
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 08/06/2002 11:54:08
>Number: 17849
>Category: bin
>Synopsis: usermod doesn't correctly handle YP users, fails to clean up ptmp file
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 05 18:55:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: grant beattie
>Release: NetBSD 1.6_BETA5
>Organization:
>Environment:
System: NetBSD redback 1.6_BETA5 NetBSD 1.6_BETA5 (GENERIC) #0: Tue Jul 30 12:29:28 EST 2002 grant@mofo:/raid/netbsd/netbsd-1-6/20020729/sparc/obj/sys/arch/sparc/compile/GENERIC sparc
Architecture: sparc
Machine: sparc
>Description:
usermod does not correctly handle adding YP users to groups, and fails to
clean up after itself.
# grep wheel /etc/group
wheel:*:0:root
# grep grant /etc/passwd
# ypcat passwd | grep grant
grant:x:141:11:grant beattie:/home/users/grant:/bin/tcsh
# usermod -G wheel grant
pwd_mkdb: user `grant' not found in password file
usermod: pw_mkdb failed: Resource temporarily unavailable
# ls -l /etc/ptmp
-rw------- 1 root wheel 821 Aug 6 11:47 /etc/ptmp
# grep wheel /etc/group
wheel:*:0:root,grant
>How-To-Repeat:
see above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: