Re: ROOT User Question

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 11/21/04


Date: Sun, 21 Nov 2004 07:06:09 +0100

In alt.os.linux Sparky <tyates@newsguy.com>:
> On Sat, 20 Nov 2004 12:15:55 +0100, Sybren Stuvel
> <sybrenUSE@YOURthirdtower.com.imagination> wrote:

>>Sparky enlightened us with:
>>> I would like to disable root from ever logging in directly to my
>>> server. I want a user to "su -" and enter root's password from
>>> their own account. How can I accomplish this?
>>
>>You don't. You don't want people to have full root access - read up on
>>'sudo'.

> Did read up on sudo, going to implement that at some point.

You'll have a hard time implementing the longer you wait if users
get used to unlimited rootly powers. Make a list which commands
users need to execute as root and start configuring sudo. Never
give the permission to use 'vi' or another editor as root, most
can span a shell, giving full root permissions.

>>
>>We can't tell you how to disable root from ever logging in directly,
>>if you don't tell us how someone can log in as root currently.

> Right now a person can log into this server via root from XDMCP,
> telnet, ssh (putty) to name a few. What I want is to "su -" once
> already logged in via my own id for example but I'd like a log of who
> became root (from what user did they become root).

Disable XDMCP, run in runlevel 3 (change /etc/inittab
"id:5:initdefault:" --> "id:3:initdefault:"). No need to run X on
a server. You can still run remote X apps redirected to another
display, but there's no need to run the whole flipping thing on a
server.

Disable telnet completely, far to insecure. Anything including
the root password will travel in clear text over the wire.

Add to /etc/ssh/sshd_config "PermitRootLogin no" and
restart/reload sshd.

Configure pam (pam_wheel.so) to only allow members of the wheel
group to su root.

Try a google search for "Linux rute" and get this admin guide as
start.

Good luck

-- 
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 355: Boredom in the Kernel.


Relevant Pages

  • RFX NETWORKS ALERT
    ... below was posted to some security websites. ... | in security and scalable server management on varying levels. ... Got Root? ... Your Server login ID is: ...
    (alt.linux)
  • Solaris Sparc 9 12/3 Core ./installer failing due Java?
    ... system SUNWadmr System & Network Administration Root ... system SUNWapchd Apache Web Server Documentation ... system SUNWapchu Apache Web Server (usr) ... system SUNWaudd Audio Drivers ...
    (comp.unix.solaris)
  • core install of Solaris 9 (sparc) package list can be trimmed ?
    ... This is a server that will have very specific reasons ... system SUNWadmr System & Network Administration Root ... system SUNWeu8os American English/UTF-8 L10N For OS Environment User Files ... system R SUNWfcip Sun FCIP IP/ARP over FibreChannel Device Driver ...
    (comp.unix.solaris)
  • [Full-Disclosure] RFX Networks
    ... | in security and scalable server management on varying levels. ... | monitor to take action during situations of service failure. ... Got Root? ... Your Server login ID is: ...
    (Full-Disclosure)
  • RFX Networks/ RackAdmin.com ALERT
    ... below was posted to some security websites. ... | in security and scalable server management on varying levels. ... Got Root? ... Your Server login ID is: ...
    (comp.os.linux)