Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permit non-priviledged user to add service?
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
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Fri Dec 19, 2014 7:29 am    Post subject: Permit non-priviledged user to add service? Reply with quote

Generally, "rc-update add" or "systemctl enable" is executed by root.
I want to permit non-priviledged user to run these commands for some specified service, such as "mplugd", which monitors web page changes and do some operations. Every user can have his own mplugd daemon, which runs when the system starts and runs as that user's UID.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Dec 19, 2014 3:42 pm    Post subject: Reply with quote

Not via rc scripts. But you can do it the Unix way with a crontab @reboot line, and maybe start-stop-daemon to put it in the background if needed. The only special privilege needed for that is putting users in the cron group.
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