Not require sudo for running specific application as root
Dotan Cohen
dotancohen at gmail.com
Thu Apr 22 15:12:23 UTC 2010
A user needs to run a specific application as root. I have finally
convinced him not to run the whole desktop as root, but now he must
precede the command to run the application with "sudo -i".
Is there a way to configure the system not to require the "sudo -i"
for this particular application? I know that I can remove the need for
a password for sudo, but that does not help as he still needs to give
the proper environment with "-i".
Yes, I am aware that there probably is "a better way" but I am trying
to get this user into the better habit of not running the desktop as
root.
My current idea is to add $HOME/.bin to his path, then mask the
command with a bash script that simply calls "sudo -i" before calling
the original command. I would disable sudo passwords for his account.
Any other ideas?
--
Dotan Cohen
http://bido.com
http://what-is-what.com
More information about the ubuntu-users
mailing list