Re: Solaris, Sudo, and locking the root account

From: Eric Jon Rostetter (eric.rostetter@physics.utexas.edu)
Date: 09/28/01


To: Gordon Ewasiuk <gewasiuk@gnmc.net>
Subject: Re: Solaris, Sudo, and locking the root account
Message-ID: <1001702434.3bb4c422b23fd@mail.ph.utexas.edu>
Date: Fri, 28 Sep 2001 13:40:34 -0500 (CDT)
From: Eric Jon Rostetter <eric.rostetter@physics.utexas.edu>

Quoting Gordon Ewasiuk <gewasiuk@gnmc.net>:

> Hi All,
>
> What is the general feeling towards locking the root account on Solaris
> when using sudo?

My feeling is that it is more trouble than it is worth.

> 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.

Yes, for this and a few other rare cases, I would not lock the root account.

With good access control (no remote root logins, etc), good logging, and good
auditing, you should be able to track anyone as long as they can't login as
root. Locking the root account will not stop most root exploits since they
don't depend on the passwords, so it doesn't buy you a lot in break-in security.

My thoughts for those who want to secure the machine access are:

1) Allow root login only from secure, specific location(s) (e.g. console)
2) Only give the password to those who need to know (usually just one person)
3) Put the password in some form of escrow in case the person(s) knowing the
root password are run over by a bus.
4) Provide sudo for the other folks needed elevated access.

> 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.

As long as there is someone always on duty with the knowledge/skill to do
this when the problem arises, or if you don't need to worry about uptime,
then this might work. But it sure is a pain!
 
> Is this a standard practice or making more trouble then it's worth?

I've not ever heard of this as standard practice, and IMHO it is more
trouble than it is worth. I just restrict root logins to the console (if
they have the console they can get in anyway), restrict the password to
myself, escrow the password for emergency cases, and let them eat sudo.
 
> 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/
> -------------------------------------------------
>

Eric Jon Rostetter
The Department of Physics
The University of Texas at Austin
Austin, Texas 78712-1081

Office: RLM 7.126
Telephone: 512-471-5821
Email: eric.rostetter@physics.utexas.edu



Relevant Pages

  • Re: Card Reader
    ... Running your script ... instead of sudo is worthless because your script *can't do ... And of course it doesn't ask for a root password, ... >> That's just more bullshit Bryan, and you might as well leave ...
    (rec.photo.digital)
  • Re: hi all..
    ... And with sudo, I certainly wouldn't because they already have root. ... If you somehow had access to my account right now, ... install an effective key logger without root. ...
    (Fedora)
  • Re: hi all..
    ... compromise security to achieve it - such as very insecure sudo defaults ... that essentially make any admin group user password a root password. ... IE someone gets your user account password, they can do more than just ...
    (Fedora)
  • Re: Choosing a distribution
    ... 'sudo bash' where I haven't had a proper root account to work with. ... cracked and hence give the intruder root access. ...
    (Ubuntu)
  • Re: Easy way/script to add another user like me?
    ... have to do to give a user sudo privileges is to add them to the ... # Members of the admin group may gain root privileges ... of cracking the root password because they already know the ...
    (Ubuntu)