Help with Difficult Startup Script
ggcameron at gmail.com
Mon Jan 2 00:40:34 PST 2006
On 1/2/06, Mike Esquardez <mikeala3 at hotmail.com> wrote:
> Hello, I am trying to make a script that runs the following commands. This
> is difficult for me because I dont know how to switch users. Currently
> are the commands that I am trying to script.
> # fetchmail –d 1000 & (this needs to be run as username mik)
> # su -l root
> # /home/mik/myfilter & (this needs to be run as root)
> I know I have to make the files executable and .sh extension then put them
> in /usr/local/etc/rc.d to get them to run at startup but I am not sure how
> to make these commands run as different users.
> Is there a way to have something like this? (i know runas isnt a real
> runas "mik" fetchmail &
> runas "root" /home/mik/myfilter &
> Any help would be very much helpful. mik
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions