running a command with sudo
On Mon, Apr 21, 2008 at 04:50:46PM +0100, Alex Owen wrote:
> In theory you should use "visudo" to edit /etc/sudoers.. this adds
> file locking and verification.
That's not really what I care about . Nothing elase is running and I did
verify it off-line. I tried fitting a sed one-liner as an EDITOR, but
that doesn't seem to work:
debian:~# EDITOR="sed -i -e '\$awww-data ALL=NOPASSWD:/usr/share/rapid-scripts/sudo_helper' " visudo
visudo: specified editor (sed -i -e '$awww-data ALL=NOPASSWD:/usr/share/rapid-scripts/sudo_helper' ) doesn't exist!
But that's a really technical issue. My main issue is with the fact that
my package needs to edit /etc/sudors . Works? sure. Elegant? no. Will
work for the live CD. Will fail later in real life.
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir