Re: /etc/init.d scripts
On 17 Apr 1999, Jean Charles Delepine wrote:
> > Assume I'm running as root and have made the changes to let it happen w/o
> > a password. I'm going to get an error here that it can't find
> > "start-stop-daemon". Alternatively, if I change the "daemon" script to
> > point to /sbin/start-stop-daemon then it works fine. I tried this with
> > /etc/init.d/bind
>
> So you should use ssh capablity :
>
> man ssh :
> Additionally, ssh reads /etc/environment and
> $HOME/.ssh/environment, and adds lines of the format VAR
> NAME=value to the environment. Some systems may have
>
> So, puting your wanting PATH in /root/.ssh/environement should do the
> job.
Thanks, I already had a solution to my particular problem, and this was
it. As in, I already did this -- but I wasn't asking for help in my
particular problem, and this doesn't work for rsh.
I still think the policy, modified a bit to make the PATH statement
appending rather than overriding is a good thing to have.
--
Brock Rozen brozen@torah.org
Director of Technical Services (410)358-9800
Project Genesis http://www.torah.org/
Reply to: