Subject: bin/32591: cap_mkdb(1) does not update properly db files?
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 01/22/2006 09:05:00
>Number:         32591
>Category:       bin
>Synopsis:       cap_mkdb(1) does not update properly db files?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 22 09:05:00 +0000 2006
>Originator:     Juan RP
>Release:        NetBSD 3.99.15
>Organization:
dunno
>Environment:
System: NetBSD Nocturno 3.99.15 NetBSD 3.99.15 (Nocturno) #445: Sun Jan 22 09:31:27 CET 2006 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

1) We must create one class for login.conf, like this:

fooclass:fooclassdescr:\
        :maxproc=12:\
        :shell=/bin/sh:

2) Assign the new class to a random user:

$ usermod -L fooclass user

3) cap_mkdb /etc/login.conf
4) the user will log in with the shell /bin/sh.
5) modify /etc/login.conf and try to change the shell to /bin/ksh.
6) cap_mkdb /etc/login.conf again.
7) log in with the user and it will have the same shell as before.

Conclussion: cap_mkdb won't update the /etc/login.conf.db with
the new changes.

>How-To-Repeat:

	goto 1
>Fix: