View previous topic :: View next topic |
Author |
Message |
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Fri Dec 19, 2014 7:29 am Post subject: Permit non-priviledged user to add service? |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Dec 19, 2014 3:42 pm Post subject: |
|
|
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 |
|
|
|