Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like the users of the system to be able to setup processes that run at system startup that they can setup by themselves. How may I do it?

share|improve this question
    
Can you elaborate? Do you actually mean when the system is powered on, or do you mean when the user logs in. Will the users have admin access to the system? Will the users be able to specify any process they want. If they aren't admins and can select any process they want are you willing to accept the risk that they may compromise the security of the system? –  Zoredache Mar 25 '10 at 22:00

3 Answers 3

up vote 1 down vote accepted

A user can specify a script to run on boot via cron. In their crontab (edited by executing 'crontab -e' when logged in), they would specify:

@reboot /home/username/path/to/script.sh
share|improve this answer

Ask them to add it to rc.local ?

share|improve this answer
    
That will not work as rc.local can only be edited by root –  Eduardo Mar 25 '10 at 23:18
    
on a regular system yes, but on his, users are encouraged to add there own processes at startup –  Jimmy Mar 25 '10 at 23:24

Write your own rc.local script to check every user $HOME/rc.local. Then, use su to execute that command under the user account.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.