The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to prevent local root from su to an NIS user? nfw UNIX for Advanced & Expert Users 3 01-08-2008 09:38 AM
Logging off users outtacontrol AIX 1 02-09-2007 05:39 AM
Locking a file when using VI to prevent multiple-edit sessions by diff users Browser_ice AIX 14 11-23-2006 06:43 AM
How to prevent root users from editing files (logs) vehchi UNIX for Dummies Questions & Answers 4 12-06-2005 02:29 PM
Prevent root login directly skotapal UNIX for Dummies Questions & Answers 4 09-27-2002 03:53 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: Apr 2007
Location: England
Posts: 16
Stumble this Post!
Prevent users logging in as root

I would like to know how to prevent users connecting to a server using SSH as root.

I would still like them to be able to login with their username and then change to su.

But I would like to prevent them logging in directly as root.

I have searched the forum and read that I should set PermitRootLogin to no.

I am using Solaris 10 and have opened 'sshd_config' to find the line 'PermitRootLogin' which is already set to 'no' but I can log in as username root.

Any ideas?

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: Jul 2007
Posts: 93
Stumble this Post!
in file: /etc/default/login uncomment CONSOLE statement.

Code:
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console
Reply With Quote
  #3 (permalink)  
Old 06-05-2008
Registered User
 

Join Date: Oct 2002
Posts: 670
Stumble this Post!
You need to send a HUP signal to sshd or restart sshd.
Reply With Quote
  #4 (permalink)  
Old 06-05-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,314
Stumble this Post!
Quote:
Originally Posted by dangral View Post
You need to send a HUP signal to sshd or restart sshd.
on solaris 10 better use:

Code:
svcadm restart ssh
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0