LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing of any file in /etc directory will disturb our root login? (http://www.linuxquestions.org/questions/linux-newbie-8/editing-of-any-file-in-etc-directory-will-disturb-our-root-login-569407/)

Karthi_India 07-14-2007 10:47 PM

Editing of any file in /etc directory will disturb our root login?
 
Hi All,

Is there any files available(in /etc dir.) to deny our root login if we edit them?
If yes, Can you tell me what are those files and what entry make them to not allow.

Please help me to know this.

Thanks in advance!!!


Karthi

jschiwal 07-14-2007 11:15 PM

/etc/security/access.conf

Or use the usermod program to lock out root, which prepends an exclamation point before the password hash in /etc/shadow. I think this is what Ubuntu does.

Be careful you don't totally lock yourself out. You might want to have root logged into a terminal before making the changes and then not log out until after testing.

Please read "man access.conf" and "man usermod" first.

Karthi_India 07-14-2007 11:24 PM

Thank you very much jschiwal


All times are GMT -5. The time now is 12:40 AM.