[sudo-users] HOWTO put many editors easily

Ladner, Eric (Eric.Ladner) Eric.Ladner at chevrontexaco.com
Wed Nov 17 17:24:24 EST 2004

If the sudoers file supported full regular expressions, you could do
something like this:

Cmnd_Alias    RESOLV = /usr/bin/@(gedit|vim|vi|whatever)

But it doesn't so you can't.

In situations like this, I always take the hard ass approach and say
"ok, you can either edit it with VI or GEDIT.  That's it."  If they
don't know VI, they can use GEDIT.  Or maybe use VI and NANO.

Eric Ladner, Systems Analyst 
RFMS IT Support

-----Original Message-----
From: sudo-users-bounces at courtesan.com
[mailto:sudo-users-bounces at courtesan.com] On Behalf Of Edilmar Alves -
Sent: Wednesday, November 17, 2004 3:58 PM
To: sudo-users at sudo.ws
Subject: [sudo-users] HOWTO put many editors easily

If I have to allow users to edit the file /etc/resolv.conf, I do this:
Cmnd_Alias      RESOLV = /usr/bin/gedit /etc/resolv.conf, /usr/bin/vim 

Is there some way to create something like this:
Cmnd_Alias      RESOLV = /usr/bin/gedit OR /usr/bin/vim OR ... OR ... 
to specifically put many editors, 3 or more?

sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list