On Wed, January 16, 2008 4:39 pm, Carl Lowenstein wrote: > On Jan 16, 2008 4:09 PM, Lan Barnes <[EMAIL PROTECTED]> wrote: >> >> On Wed, January 16, 2008 12:10 pm, James G. Sack (jim) wrote: >> > Lan Barnes wrote: >> >> I want to have a non-root user start a program on start up. I suspect >> >> that >> >> there is some mojo I can add to a line in rc.local that will have the >> >> line >> >> executed by someone other than root. >> >> >> >> Anybody? Anybody? Bueller? >> >> >> > >> > Maybe you're thinking it's more complicated than it is? Howbout: >> > # su lan -c 'proggie args' >> >> This isn't working: >> >> su perforce -c 'p4d -r /data/p4/ -p 1666 &' >> >> It works at the CLI. >> > > Simple-minded question. assuming you are trying this in rc.local: > Have you tried specifying the full path to "p4d"? > > Implications behind this question: > Never assume that $PATH is the same in a script as it is in your own > login environment. > "su - perforce" to grab the environment belonging to user "perforce". > > carl
That did it. Thanks. -- Lan Barnes SCM Analyst Linux Guy Tcl/Tk Enthusiast Biodiesel Brewer -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
