UserRC is a small program which is run from the FreeBSD rcng system to dispatch users rc scripts at bootup/shutdown.
A feew checks are made on the scripts before they are executed:
- Is the script owned by right person?
- Are the file permissions restrictive enough?
A user's RC files are placed in $HOME/rc.d and UserRC, after forking for the user, sets its UID to be that of the owner of the rc script.
Installation
- Compiliing
Just type "make install"
- Activiting
- Add
$userrc_enable="YES" to your /etc/rc.conf file
- Running
/etc/rc.d/userrc start :will start any user services as that user /etc/rc.d/userrc stop :will stop all user services.
Any comments or suggestions to matt@root-access.ws
