Subj : Running SBBS as non-root To : Sardaukar Siet From : Angus McLeod Date : Wed Aug 03 2005 09:23 am Re: Running SBBS as non-root By: Sardaukar Siet to All on Wed Aug 03 2005 05:09:00 > - How can I run SBBS as non-root? When I try, all I get is this : Under the [UNIX] section of the /sbbs/ctrl/sbbs.ini file, set User= and Group= accordance with your wishes. Start it as root and it will give up root privs as soon as it's bound the reserved ports. Or, add the un and ug options to the CLI. I use the following script to make it easy to run from a non-root shell: #!/bin/bash export SBBSCTRL=/sbbs/ctrl if [ "$UID" == "0" ]; then cd /sbbs/exec && \ /sbbs/exec/sbbs lt else echo "Must start as 'root' user." /bin/su - -c $0 fi If you run it and you are not root, it asks for the root password before it proceeds. > - How can I have a script to place in /etc/init.d/ to use like /etc/init.d/s > {start|stop|status}? I was told one is available in the install directory, b > I can't find it (no files, just two sub-folders) I believe Deuce has written one. Ask him to post it or e-mail it to you. > - How can I package this as an RPM, meaning which files are strictly necessa > (I built from CVS, so I'm guessing I have a lot of "cvs garbage" around... The developers will have to answer that for you. But why would you want to do that? You should *not* be distributing binaries of SBBS, so once you have it built, there shouldn't normally be any need to package it up. --- þ Synchronet þ Synchronet Track-and-field: Discus event at The ANJO BBS .