[sudo-users] HOWTO put many editors easily
Todd C. Miller
Todd.Miller at courtesan.com
Wed Nov 17 17:54:22 EST 2004
The best way to do this is to use sudo 1.6.8 or higher and give them
access to sudoedit. E.g.
Cmnd_Alias RESOLV = sudoedit /etc/resolv.conf
Then the user can run "sudoedit /etc/resolv.conf" and it will use
what the VISUAL or EDITOR environment variable says to use. The
editor will run as the invoking user so there is no problem with
shell escapes.
- todd
More information about the sudo-users
mailing list