it's the little things that defeat me.
Thanks,
-Scott
--
Scott Sawyer o: 928 226 0404
Owner c: 602 920 0083
Scott Sawyer Photography http://www.scottsawyerphotography.com
Capturing today's moments, forever
On Thu, 4 Dec 2003, Kevin Brown wrote:
> > anyone know how with su or sudo to set the home directory to be something
> > other than what is in /etc/passwd or the executing PWD? Specifically in
> > an init script starting a service as an alternative user such as webapp
>
> I would think adding the HOME= variable to the head of the script would do that.
>
> e.g.
>
> #!/bin/bash
> HOME=/opt/home/apache
> cd
> ./command
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>