Great Circle Associates Firewalls
(August 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: root account and routine work
From: Steve Simmons <scs @ lokkur . dexter . mi . us>
Date: Wed, 24 Aug 1994 19:58:41 -0400 (EDT)
To: Firewalls @ GreatCircle . COM
In-reply-to: <199408241221 . IAA09091 @ lokkur . dexter . mi . us> from "Steve Simmons" at Aug 24, 94 08:21:46 am

>Since we're talking favorite 'run a job as root' tools, I love `op'.
>It gives you much finer control than any other tool I've seen.

40 mail messages requested more detail... so much for brevity being
the soul of wit.

What makes op good:

Op runs based on an access table with a format like so:

===============================================================
# People we allow to manage the net
startppp        /etc/root/.bin/startppp ; users=scs,clif,ruth,jnd
killppp         /etc/root/.bin/killppp $* ; users=scs,clif,ruth,jnd
mount           /etc/mount $* ; users=scs
umount          /etc/umount $* ; users=scs
#
# For shutdowns
#
shutdown        /etc/shutdown -h +1 "Shutdown by user action" ; users=scs,clif,ruth
#
# For steve only
tcsh            /usr/bin/tcsh -l ; users=scs password
===============================================================

The first column is the name of the op command people can give, eg,
`op shutdown'.  The second is the action that is taken when the command
is given.  The third (following the semicolon) is the access control.
In the first two entries, we allow select users to turn the PPP link
on and off.  In the second two, I allow myself do do any mounts/umounts
I want without having to su to root.  I can use whatever mount parameters
I want.

The shutdown entry permits trusted folks to shut down the machine, but
restricts them to the parameters shown.

The tcsh entry is analogous to 'su -', but only works for me *and* requires
I type my personal password when giving it.

Op has other neat features as well; the man page bears careful reading.

I've put a copy on ftp.msen.com in pub/packages/utils/op.tar.gz.  Enjoy.


References:
Indexed By Date Previous: Root accounts ... In reply to 9408240659.a
From: R.ROSSMAN/ARSC @ cgsmtp . comdt . uscg . mil
Next: Where to find sudo
From: dm @ intex . com (Daniel Melnechuk)
Indexed By Thread Previous: Re: root account and routine work
From: matt @ uts . EDU . AU (Jas (Matthew K))
Next: Re: root account and routine work
From: Marcus J Ranum <mjr @ tis . com>

Google
 
Search Internet Search www.greatcircle.com