BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Auto-starting bb as non-root user on Slackware linux



Stephen Bates wrote:
> 
> bb 1.2a is working very well - great system, and thanks to all for the on-going
> support.
> 
> If anyone knows how to get bb to auto start when the host boots, without being
> owned by root, I'd appreciate some help.
> 
> Currently I have this in rc.local
> ---------------------------------------------------------------------------
> #!/bin/sh
> #
> # /etc/rc.d/rc.local:  Local system initialization script.
> #
> # Put any local setup commands in here:
> #
> # start Big Brother
> echo "starting Big Brother client..."
> #su bb
> #cd /home/bb
> /home/bb/runbb.sh
> ---------------------------------------------------------------------------
> 
> the "su bb", etc. where my attempt to get bb to start using user "bb", which I
> have defined in the system. I can readily start bb manually using the bb
> account, so there seems to be nothing wrong there.
> 

assuming you have version 1.2b (or a version that supports
runbb.sh start"
You probably need this line

su - bb -c "cd /home/bb;./runbb.sh start"

you may require sourcing the .profile

su - bb -c ". ./.profile;cd /home/bb;./runbb.sh start"

check the man page for su
-- 
Robert-Andre Croteau	BSD,MOTU		robert@unix.sh
Services Conseils Informatiques MOTU Inc. 	robert@motu.ca
(514) 465-3057					rcroteau@videotron.ca
http://www.motu.ca/                             http://www.bb4.com
	Si le bonheur ne s'achete pas alors louez le.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index