Solved Error adding new user - pw: user 'anne' disappeared during update

k.jacker

Aspiring Daemon

Reaction score: 434
Messages: 737

Hei,

As root, I'm trying to add a new user with adduser but it returnes a strange error when I confirm.
Only the group 'anne' gets created, but nothing more. I checked pw(8) for something helpful as it seems like it's pw creating the error and checked /var/log/messages and /var/log/auth.log but nothing strange there.
Code:
Username   : anne
Password   : *****
Full Name  : Anne
Uid        : 2001
Class      :
Groups     : anne
Home       : /home/anne
Home Mode  :
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
pw: user 'anne' disappeared during update
adduser: ERROR: There was an error adding user (anne).
Add another user? (yes/no): no
Goodbye!
Anyone who could help? Thanks!
Matthias
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,050
Messages: 31,633

Your databases are out of sync. Not sure how this happens but I get it from time to time too. Run /usr/sbin/pwd_mkdb -p /etc/master.passwd. Running vipw(8) and save-and-quit (without actually making any changes) also fixes it (easier to remember).
 
OP
OP
k.jacker

k.jacker

Aspiring Daemon

Reaction score: 434
Messages: 737

Talking about quick help. Thank you SirDice, that worked :)
Solved
 

VASJD

New Member


Messages: 2

Your databases are out of sync. Not sure how this happens but I get it from time to time too. Run /usr/sbin/pwd_mkdb -p /etc/master.passwd. Running vipw(8) and save-and-quit (without actually making any changes) also fixes it (easier to remember).
Thank to you SirDice. I'm very glad with all of you in this list. I've been two times with a doubt and found a brilliant answer: and, of course, problem solution.
 
Top