[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

running a command with sudo

Hmm... Not sure why you dislike /etc/sudoers so much... that is the
only way to configure sudo!

If you hate sudo that much why not use apache's suexec for example...
or suphp ... again these need configuring.

You may be able to do someting with selinux... but that is beyond
me... mind you it may be more to your liking.

Maybe that helps/maybe it does not... but either way have a good day!

On 21/04/2008, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> 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.
>  --
>                Tzafrir Cohen
>  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
>  _______________________________________________
>  debian-live-devel mailing list
>  debian-live-devel at lists.alioth.debian.org
>  http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply to: