Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-05-05 Thread Matthew Seaman
On 05/05/2013 07:12, takCoder wrote: >> > Furthermore, file system corruption due to an abrupt >> > cut of power should be avoided. Whenever the system comes >> > up in a non-clean state, fsck should be run first, _then_ >> > the boot process should continue. Still it's possible that >> > this proc

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-05-05 Thread Polytropon
On Sun, 5 May 2013 10:42:02 +0430, takCoder wrote: > i added fsck_background=no to rc.conf but i still see the error.. and i > don't see any differance in system startup output! how should i know it's > working?? Please check the correct syntax for the /etc/rc.conf entry: background_fsck=

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-05-04 Thread takCoder
First, thank you for your quick and complete reply :) then: > Furthermore, file system corruption due to an abrupt > cut of power should be avoided. Whenever the system comes > up in a non-clean state, fsck should be run first, _then_ > the boot process should continue. Still it's possible that

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-05-01 Thread Polytropon
On Wed, 1 May 2013 12:58:49 +0430, takCoder wrote: > Excuse me again.. > > i was trying to test the situation explained here, so i just defined a user > with pw command, waited for 2minutes and then power off the system.. Again > i couldn't login anymore.. > > if we assume that, pw is still worki

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-05-01 Thread takCoder
Excuse me again.. i was trying to test the situation explained here, so i just defined a user with pw command, waited for 2minutes and then power off the system.. Again i couldn't login anymore.. if we assume that, pw is still working with db files after 2 minutes, the question is that, is it usu

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-18 Thread takCoder
hi again, real thanks to all of you; for really complete and clear answers.. it's amazing to have a clear view of what's on, when you need to deal with it. :) as a quick conclusion, for now: 1- i inserted a shell file to /usr/local/etc/rc.d/ which runs pwd_mkdb /etc/master.passwd and tested it..

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-17 Thread Polytropon
Allow me a few additions: On Tue, 16 Apr 2013 16:45:59 -0400, Michael Powell wrote: > Pressing the power button for 4 seconds as described is invoking the ACPI > layer to stimulate call(s) down to the system BIOS. No. In most (but of course not all) default settings the "long press" will forcedl

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-16 Thread Michael Powell
Tak Tak wrote: > 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 > cowor

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-16 Thread Polytropon
On Tue, 16 Apr 2013 13:36:42 +0430, Tak Tak wrote: > 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? Actually no shutdown happens in this situation. The normal programming for the power bu

Re: pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-16 Thread Jeff Tipton
calculate the time depending on how long the batteries endure the load). -Jeff - Original Message - From: Tak Tak Sent: 04/16/13 12:06 PM To: freebsd-questions@freebsd.org Subject: pwd.db/spwd.db file corupption when having unsafe system poweroff hi everyone, i wanna know what exactly h

pwd.db/spwd.db file corupption when having unsafe system poweroff

2013-04-16 Thread Tak Tak
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