NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/40486: sysdb script doesn't rebuild databases after version change



>Number:         40486
>Category:       misc
>Synopsis:       sysdb script doesn't rebuild databases after version change
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 26 18:00:01 +0000 2009
>Originator:     Jared D. McNeill
>Release:        NetBSD 5.99.7
>Organization:
        
>Environment:
        
        
System: NetBSD black.invisible.ca 5.99.7 NetBSD 5.99.7 (GENERIC) #0: Sun Jan 25 
09:39:49 EST 2009 
jmcneill%black.invisible.ca@localhost:/export/home/jmcneill/branches/HEAD/src/sys/arch/amd64/compile/obj/GENERIC
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        Upgrade from 5.0 to -current, try to use usermod:

        $ sudo usermod -c "Donkey" donkey 
        pwd_mkdb: databases are laid out according to an old version
        pwd_mkdb: re-build the databases without -u
        usermod: Can't modify user `donkey': pw_mkdb failed

        Running 'sudo /etc/rc.d/sysdb start' doesn't regenerate the
        database, nor does 'sudo /etc/rc.d/sysdb password', because it
        only checks if the database exists, not the version of it.

        Not sure if any of the other databases have changed as a result of
        the christos-time_t merge.
>How-To-Repeat:
        
>Fix:
        Workaround:
        $ sudo /usr/sbin/pwd_mkdb /etc/master.passwd

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index