• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

During startup, how do I start a service as another user?

aceO07

Diamond Member
I'm using ubuntu and want some commands and services to start up at boot, but I don't want them to be running under root. I'm currently using rc.local to start them up. How do I get them to run as another user?

edit: SOLVED.
 
In your script you can su to the user you want to run the service as and execute the command that starts the service as the new user.

You can do something like

su ace -c "/path/to/executable -parameters"

and it will execute the command as the user ace.
 
Back
Top