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

running a command with sudo

On Tue, Apr 22, 2008 at 12:55:17AM +0100, Chris Lamb wrote:
> Alex Owen wrote:
> > The above should work... but read visudo man page...
> This is all totally pointless. Just append your line to /etc/sudoers in a
> live-initramfs hook: this is what it does itself, so it's difficult to see
> why you could have any qualms about doing so too.

To quote a previous message of mine:

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.

That is: any better Debian-blessed way for a package to edit
/etc/sudoers ? I prefer to put my changes in packages and not in
"one-time" scripts, as this makes them also usable outside of the
specific environment of debian-live. And the whole point of Debian-Live
is to use unmodified Debian.

               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

Reply to: