Results 1 to 2 of 2
We currently have a customer which requires our service's state to be modifiable via non-root users (e.g. stop/start/restart). What is the preferred way of accomplishing this on linux? Running the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-16-2012 #1
- Join Date
- Apr 2012
Linux service script execution via non-root users
What is the preferred way of accomplishing this on linux? Running the /etc/init.d/foo script directly doesn't work because the user does not have permissions to touch the /var/lock/subsys/ lock.
Along these same lines, do programs which support 'service' scripts allow control via other paths?
service sshd start
If so, how can graceful shutdowns be supported since the /var/lock/subsys locks are not touched?
- 04-17-2012 #2
Look into SUDO. There you can give normal users the rights to execute programs and at the same time you can limit the programs they are allowed to execute.
The adventure of a life time.
Linux User #296285