Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-07-2008, 01:37 AM   #1
Registered: May 2008
Posts: 35

Rep: Reputation: 15
Question How to disable remore ssh login access of "root" user.

Hi friends,
Kindly help me regarding how to disable remore ssh login access of "root" user. i.e. the user has to login by a normal account and then do a su.
Old 10-07-2008, 01:43 AM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
PermitRootLogin no

in sshd_config.
Old 10-07-2008, 03:40 AM   #3
LQ Newbie
Registered: Oct 2008
Posts: 9

Rep: Reputation: 0
There is also the option allowusers which i perfer to use
allowusers test

This will only allow the user test to login via ssh
Old 10-07-2008, 09:55 AM   #4
Registered: May 2008
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks a lot..


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 06:35 AM
SSH Keybased authentication for "root" user on linux. adastane Linux - Networking 2 12-13-2007 04:57 AM
I've set the "Turn off login" for root user in YaST :( lesnakupa SUSE / openSUSE 2 10-31-2006 10:09 AM
"su root" fails when I connect with normal user thru SSH AlinFaur Linux - Security 5 02-23-2006 12:26 AM
Howto disable "Graphical Login" or "Standard Login?" the_gripmaster Red Hat 1 07-08-2004 03:55 PM

All times are GMT -5. The time now is 08:16 AM.

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