View Full Version : FC6 sudo restart initscript

1st November 2006, 04:39 PM
Dear reader,

How can I execute command as root by a script, started by a process that runs in the background and has been started by an user. (I use xbindkeys, am logged on as user, and want to restart an initscript by means of a launch key)


In FC5 I coud do: sudo /etc/init.d/NetworkManager restart
In FC6 this still works in an terminal but does no longer work when excecuted by a backgroud process (xbindkeys, .xbindkeysrc).

The changes I made in /etc/sudoers in FC6 are the same as in FC5 and I am using te same user and group settings.

I hope someone knows.