Solved pwd_mkdb: /etc/passwd: Inappropriate file type or format

  • Thread starter Thread starter Deleted member 63539
  • Start date Start date
D

Deleted member 63539

Guest
This is on a fresh 11.4 system, updated to p1 using freebsd-update.
Code:
doas pwd_mkdb -C /etc/passwd
pwd_mkdb: corrupted entry
pwd_mkdb: at line #3
pwd_mkdb: /etc/passwd: Inappropriate file type or format
I didn't messed with it at all. How could it be corrupted?

p/s: Please run the command above on your system and let me know if it affected everyone or just me. Thanks.
 
Last edited by a moderator:
Check your /etc/passwd, there may be some merge artifacts left behind.
 
You’re using the wrong file. This should work:
Code:
pwd_mkdb -C /etc/master.passwd
The file /etc/passwd exists only for historic and compatibility reasons, and it has a different format. pwd_mkdb(8) will create it for you when you pass the -p option.
Also see the passwd(5) manual page.
dear olli:
below is my error: i just fellow pwd_mkdb with -p option . it's no success . plesae help me . thanks.
root@matrix1:/etc # pwd_mkdb -p /etc/master.passwd
pwd_mkdb: /etc/master.passwd: No such file or directory
 
Back
Top