Regenerating the password databases on new installs

Mayu Inc. pomomayu at gmail.com
Tue Feb 7 14:53:25 PST 2023


We successfully installed new systems on a few different machines using the
extended layout guide in the handbook to utilize pseudo filesystems. On
every install we've had to re-generate the password databases or else new
users are  visible in /etc/passwd but unable to login.

The following error occured after creating a new user with the 'adduser'
utility:

pw: user 'myuser' disappeared during update.
adduser: ERROR: There was an error adding user (myuser).

Using this work-around before creating any users seems to work:

      # cp /etc/passwd /etc/passwd.orig
      # cp /etc/master.passwd /etc/master.passwd.orig
      # pwd_mkdb /etc/master.passwd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20230207/eacd8f92/attachment.htm>


More information about the Users mailing list