|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
pwd_mkdb exited with status 1
I 'm running NetBSD 6.1.2 (GENERIC) i386 & I have an issue with pwd_mkdb the root of which I don't know.
I can't create users : #useradd -m -G wheel himmel Code:
useradd: pwd_mkdb exited with status 1 useradd: Can't add user `himmel': pw_mkdb failed and pkg_add can't either : Code:
useradd: pwd_mkdb exited with status 1 useradd: Can't add user `clamav': pw_mkdb failed There used to be a user 'mimir' which I deleted.now what happens is Code:
#userdel mimir userdel: Can't modify user `mimir': must be a local user Code:
# useradd -m -G wheel mimir useradd: Can't add user `mimir': `mimir' is already a user Thanks for help. Regards. |
|
|||
Works fine here, I would use vipw(8) and correct entries there then edit /etc/groups and fix if need be. once fixed try again.
|
|
|||
vipw has clean entries.just deleted two users from wheel in /etc/group which did't solve the problem.
|
|
|||
It looks like the compiled password databases are corrupted. You could remove them and then rebuild them. See pwd_mkdb(8)
Code:
/etc/pwd.db The insecure password database file. /etc/pwd.db.tmp A temporary file. /etc/spwd.db The secure password database file. /etc/spwd.db.tmp A temporary file.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
the problem is I can't add a user:
Code:
useradd: pwd_mkdb exited with status 1 useradd: Can't add user `feefo': pw_mkdb failed |
|
|||
thanks for providing help
Code:
# ls -l /etc/ptmp ls: /etc/ptmp: No such file or directory Code:
# pwd_mkdb /etc/master.passwd pwd_mkdb: Cannot open `/etc/pwd.db.tmp': File exists |
|
|||
In http://www.daemonforums.org/showthre...8112#post48505 I suggested to remove all these files and then rebuild them
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
seems like within a vicious circle
I remove those then fail to rebuild pkg_create fails as it can't look up current user (which is root ) in the passwd file |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Status of Current amd64 | shep | OpenBSD General | 3 | 24th August 2010 02:14 PM |
e-mail notification status? | jggimi | Feedback and Suggestions | 3 | 17th September 2009 04:49 AM |
dwm status bar won't display apm output | asemisldkfj | General software and network | 6 | 16th August 2009 11:07 PM |
What is the status of KDE4? | wubrgamer | General software and network | 10 | 24th September 2008 03:58 AM |
Status of Xen on OpenBSD | Oko | OpenBSD General | 2 | 19th June 2008 09:02 PM |