RE: Solaris, Sudo, and locking the root account
From: Leon Halford (leon.halford@btinternet.com)Date: 09/28/01
- Previous message: Gordon Ewasiuk: "Solaris, Sudo, and locking the root account"
- In reply to: Gordon Ewasiuk: "Solaris, Sudo, and locking the root account"
- Next in thread: James Puckett: "Re: Solaris, Sudo, and locking the root account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Leon Halford" <leon.halford@btinternet.com> To: <focus-sun@securityfocus.com> Subject: RE: Solaris, Sudo, and locking the root account Date: Fri, 28 Sep 2001 19:24:46 +0100 Message-ID: <INECKKNFOEIGFDAADPCNIEMNCHAA.leon.halford@btinternet.com>
I personally wouldnt lock the root account for the very reasons
you suggest. Always leave the console available for emergency
root logins or maintenance (unless it is a workstation).
So, assuming the console is in a secure location,
Either:
Add a PAM module via /etc/pam.conf - a surefire method.
Different modules already exist on the net to either limit
usage of the su command to "wheel" or alternatively
restrict the login device to only "/dev/console" for any
login method listed in pam.conf - the later being the best.
It's quite simple C code to restrict root access to the
console using the PAM framework if you're a programmer.
Or alternatively (if PAM isnt your scene):
set CONSOLE=/dev/console in /etc/default/login
chmod u-s /usr/bin/su
echo "root" >>/etc/ftpusers
You will then find it quite hard to become root on this machine
anywhere apart from the console.
-----Original Message-----
From: Gordon Ewasiuk [mailto:gewasiuk@gnmc.net]
Sent: 27 September 2001 18:27
To: focus-sun@securityfocus.com
Subject: Solaris, Sudo, and locking the root account
Hi All,
What is the general feeling towards locking the root account on Solaris
when using sudo? We use sudo on Solaris everwhere and lock the root
account. This forces all users to sudo -s for a root shell - BUT - after
an abnormal shutdown, if a filesystem comes up dirty, it might need a
manual fsck pass. This, of course, requires the root password to enter
maint. mode.
I've got no problems booting from a CD, mounting the root FS, and
unlocking/NP the root acct but a veteran sysadmin kinda looked at me funny
when I explained it to him.
Is this a standard practice or making more trouble then it's worth?
TIA,
-Gordon
--------------------------------------------------
Gordon Ewasiuk, Certifed Sun Fanatic, Winstar VHC
The REAL office number is here-----> 703.893.4901
Tired of BSODs, My Computer, and Code Red?
http://www.sun.com/solaris/binaries/
-------------------------------------------------
- Previous message: Gordon Ewasiuk: "Solaris, Sudo, and locking the root account"
- In reply to: Gordon Ewasiuk: "Solaris, Sudo, and locking the root account"
- Next in thread: James Puckett: "Re: Solaris, Sudo, and locking the root account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|