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

running a command with sudo


I need to allow the web interface in my live CD to run a few priviliged

I prepared a separate sudo_helper scriptand would like to run it through
sudo. Is there any nicer way more proper than editing /etc/sudoers
directly in a postinst script or a live CD chroot hook?

The current edit command:

LINE="www-data ALL=NOPASSWD:/usr/share/rapid-scripts/sudo_helper"
if ! fgrep -q "$LINE" /etc/sudoers ; then
  echo "$LINE" >> /etc/sudoers

               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: