LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-03-2009, 11:55 PM   #1
matt123
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Rep: Reputation: 0
Cannot disable root login, Gentoo


I am trying to disable direct root login access. I have done the following within /etc/ssh/sshd_config:

changed:
Protocol 2,1
to:
Protocol 2

changed:
PermitRootLogin yes
to:
PermitRootLogin no

restarted:

/etc/rc.d/init.d/sshd restart

however I can still login straight in with root.

What am I missing?
Any help is greatly appreciated.

Thanks!
 
Old 09-04-2009, 03:42 AM   #2
hikari
LQ Newbie
 
Registered: Sep 2009
Location: YANAO, Russia
Distribution: Mandriva Linux 2010.1
Posts: 8

Rep: Reputation: 1
What authentification method are you using? Good idea is to disable all other authentification methods except plain login/password and try again. I'm suggesting this because
Code:
PermitRootLogin no
works just as supposed to on my system.
Try modyfing those lines in /etc/ssh/sshd_config
Code:
RSAAuthentication no
PubkeyAuthentication no
ChallengeResponseAuthentication no
UsePAM no
PasswordAuthentication yes
restart sshd and try again.
 
Old 11-09-2009, 04:17 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
What worked? ... Did you find a solution?
 
Old 11-10-2009, 04:48 AM   #4
haverer
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
Hi Guys

Im having the same problem - I cannot disable the root user.

I have changed the etc/ssh/sshd_config file to show:

#LoginGraceTime 120
PermitRootLogin no
StrictModes no

I then issued the command:

/etc/rc.d/init.d/sshd restart


However I can still log in as the root user.

Any ideas?
 
  


Reply



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
disable root login shivanrathore Linux - Security 6 07-15-2008 07:26 AM
Disable Root Login Via SSH = Why? carlosinfl Linux - Security 4 10-11-2006 12:32 PM
Disable root login n00bified Slackware 8 07-17-2006 04:42 AM
disable root login with ssh linuxtesting2 Slackware 3 02-16-2005 12:33 PM
how to make root login disable vijaysh Linux - Security 2 02-08-2005 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration