pwd.db/spwd.db file corupption when having unsafe system poweroff
Tak Tak
tak.official at gmail.com
Tue Apr 16 09:06:48 UTC 2013
hi everyone,
i wanna know what exactly happens for freebsd files and processes,
when we shutdown system via pressing hardware power key for 3 seconds?
here's what has happened to me, recently:
i've faced a strange problem.. on one of my bsd servers, one of my
coworkers had defined and edited some system users, and then, instead
of safe shutdown, he kept pressing power-button for 3 seconds!..
after next startup, we couldn't login anymore! we had to replace
pwd.db and spwd.db files, via bootable-freebsd Fixit mode, and then,
everything was fine!
we know that we are, for sure, better to use safe shutdown, but i
can't guarantee it always happens. what if sudden power off makes same
problem??so i can't leave my servers in such situations..
My questins are:
what has happened exactly? just in-used corrupted files ??
is there any way to prevent this situation? (instead of having a
read-only FS.. i can't apply it on this server for now..).
i'm sorry if my question seems dummish! i'm trying to increase my bsd
knowledge, but i'm just on my way..
for sure, i appreciate any ideas or answers :)
More information about the freebsd-questions
mailing list