users restarting a 'nobody' owned process

  • Thread starter Thread starter ZuG
  • Start date Start date

ZuG

ZuG

Associate
Joined
18 Oct 2002
Posts
683
Location
Cardiff/St Helens
How can I restart a process as a standard user? I need to allow users on the linux machines to restart openvpn which runs as nobody. However, I don't really want to give them all sudo rights. Any ideas?

At the moment I get access kill : access denied when trying to restart as a non root user.
 
Create a group called openvpn.
Make the 'group' of the file you need to run 'openvpn'.
Check that the group has rights to execute the file.
Add users that need this access to the openvpn group.
Not sure this will work if you're not restarting the process directly.

Or
Just give everyone sudo rights to only that executable/script.

Or
Setuid as root on the executable/script. (bad idea really)
 
Last edited:
i am going with the sudo idea. Didn't realise you could do that.
Thanks a lot!
 
Back
Top Bottom