Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Running a Startup Application as Non-Root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Atomic Fusion
n00b
n00b


Joined: 31 Mar 2010
Posts: 18
Location: Alaska, USA

PostPosted: Thu Apr 01, 2010 1:05 am    Post subject: [SOLVED] Running a Startup Application as Non-Root Reply with quote

How would I set an application (Halo Server in Wine) to run on startup, but not run as root?
It's a bad idea to run any Wine thing as root, and I don't want to have to manually start it or enter my password to sudo as a different user.
Should I edit the sudoers file to allow me to run the server without a password as a different user?


Last edited by Atomic Fusion on Thu Apr 01, 2010 1:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15967

PostPosted: Thu Apr 01, 2010 1:50 am    Post subject: Reply with quote

That should work. If I recall correctly, the TuxOnIce hibernate script includes some scriptlets that su to the X user so that they can lock/deactivate the X screensaver. It appears they run: /bin/su "$user" -c "/command/as/non/root --with-arguments". Note that this will produce an entry in the system logs reporting the su event.
Back to top
View user's profile Send private message
Atomic Fusion
n00b
n00b


Joined: 31 Mar 2010
Posts: 18
Location: Alaska, USA

PostPosted: Thu Apr 01, 2010 1:56 am    Post subject: Reply with quote

Thank you so much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum