LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-14-2007, 10:47 PM   #1
Karthi_India
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Rep: Reputation: 15
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
 
Old 07-14-2007, 11:15 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
/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.

Last edited by jschiwal; 07-14-2007 at 11:16 PM.
 
Old 07-14-2007, 11:24 PM   #3
Karthi_India
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you very much jschiwal
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'core' file in root directory mazinoz Linux - Security 3 06-30-2007 02:21 AM
CVS login aborted - no such file or directory thetawaverider Linux - Software 1 07-24-2006 07:43 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-04-2006 12:08 AM
Remote login and editing the file jayesha18 Linux - Networking 0 03-04-2006 07:21 AM
Download file into directory as root? guitarnix Linux - Newbie 3 09-17-2003 09:55 AM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration