LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-12-2007, 11:35 AM   #1
newbie_adm
Member
 
Registered: Jun 2006
Posts: 40

Rep: Reputation: 15
ssh root restrictions access


Hi
I would like to ask how can I restrict the root username to be used at login prompts.or ssh connection. I wanted that nobody can access my linux suse server using root access. They should use their user account and later on use su to log as root.

Thanks

Best Regards,
newbie_adm
 
Old 11-12-2007, 11:42 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For ssh, you would edit /etc/ssh/sshd_config and make sure "PermitRootLogin" is set to "no". Also think about giving users some admin privileges using sudo instead of giving them the root password.
 
Old 11-12-2007, 11:52 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I agree with reddazz. I inherited the system administration of a LAN with 5 workstations and all users knew the root password of all machines (indeed, it was written on a post-it sticked on the wall) and all the basic installation along with the directory structure and a lot of useless stuff was messed around. Anyway, to prevent graphical login by root you should edit the file /opt/kde3/share/config/kdm/kdmrc and uncomment the following
Code:
AllowRootLogin=false
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
root access using SSH atrac Linux - Security 2 10-29-2007 11:05 PM
SSH Root Access DediPlace Linux - Security 6 05-29-2005 12:05 PM
Prevent Root access with SSH rshooper Linux - Security 4 11-18-2004 02:05 PM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 05:19 PM
FTP access using root account - restrictions alaerte Linux - Software 7 04-03-2003 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 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