1838379 Members
3160 Online
110125 Solutions
New Discussion

Re: system

 
navin
Super Advisor

system

Hi ,
Is it possible that the /etc configuration files(especially passwd/nsswitch,etc) would be modified ...when the system crashes.
Thanks
Learning ...
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: system

I don't see how, unless they were being written to when the crash occurred.


Pete

Pete
Bill Hassell
Honored Contributor

Re: system

There's a big difference between a crash and a modified file. If for some crazy reason the system crashed and wrote all over the filesystem, you would never know this because the system could not boot. So the contents of /etc/passwd and /etc/nsswitch.conf would not be slightly changed.

Now there are a couple of possibilities:

1. Someone edited /etc/passwd and left the session running. The machine reboots and the passwd file is left in the state it was when the vi session started, perhaps days ago.

2. There are custom startup scripts that replace certain files on reboot.

HP-UX does not care about files like passwd. It is just a place where login can look to authenticate a user and if OK, start a shell. Users change file contents.


Bill Hassell, sysadmin
A. Clay Stephenson
Acclaimed Contributor

Re: system

Is is possible? Yes. Is it probable? Most decidedly not. Often these words are used interchangably when the meaning is quite different. If is far more probable that a filesystem might become corrupt upon a crash --- or that a corrupt filesystem might trigger a crash. It is most improbable that somehow the crash managed to zero in on these files. On the other hand, these are just the files that might be altered either intentionally or unintentionally by a user with super-user access --- or by an ordinary user if the mode on these files were incorrectly set.
If it ain't broke, I can fix that.