Recovery after pwd.db corruption ?

2014-03-23 Thread Denis Fondras
Hello, After a power-loss, my server rebooted and gave at start : starting network daemons: sshdMar 23 07:59:40 su: /etc/pwd.db: Inappropriate file type or format (failed) smtpdMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file type or format (failed). starting local daemons: cronMar 23

Re: Recovery after pwd.db corruption ?

2014-03-23 Thread Theo de Raadt
The following recipe might help: boot bsd.rd (s) for shell fsck your root filesystem mount your root filesystem on /mnt fsck the filesystems specified in /mnt/etc/fstab Mount at least your /usr partition, but on /mnt/usr You will need it to run the pwd_mkdb command Run

Re: Recovery after pwd.db corruption ?

2014-03-23 Thread Ted Unangst
On Sun, Mar 23, 2014 at 22:02, Denis Fondras wrote: Hello, After a power-loss, my server rebooted and gave at start : starting network daemons: sshdMar 23 07:59:40 su: /etc/pwd.db: Inappropriate file type or format (failed) smtpdMar 23 07:59:41 su: /etc/pwd.db: Inappropriate file

Re: Recovery after pwd.db corruption ?

2014-03-23 Thread Denis Fondras
Thank you very much Ted Theo ! :)