monit-general
[Top][All Lists]
Advanced

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

Re: as uid USERNAME and gid GROUPNAME not working


From: forsaleinsf
Subject: Re: as uid USERNAME and gid GROUPNAME not working
Date: Thu, 24 Feb 2011 14:10:59 -0800 (PST)

thank you for you help and insight.

in the end i used:

"/bin/su -c 'command'deploy"

and it worked no problem - not sure why as uid USERNAME and gid GROUPNAME does 
not work for my environment.

again, thanks for your response.

--- On Tue, 2/22/11, Jan-Henrik Haukeland <address@hidden> wrote:

> From: Jan-Henrik Haukeland <address@hidden>
> Subject: Re: as uid USERNAME and gid GROUPNAME not working
> To: "This is the general mailing list for monit" <address@hidden>
> Date: Tuesday, February 22, 2011, 9:33 AM
> 
> On Feb 22, 2011, at 6:11 PM, forsaleinsf wrote:
> 
> > not sure if i missing something else
> 
> You are probably missing some environment stuff. As it says
> in the wiki FAQ http://mmonit.com/wiki/Monit/FAQ#execution 
> 
> For security reasons monit purges the environment and only
> sets a spartan PATH variable that contains /bin, /usr/bin,
> /sbin and /usr/sbin. If your program or script dies, the
> reason could be that it expects certain environment
> variables or to find certain programs via PATH. If this is
> the case you should set the environment variables you need
> directly in the start or stop script called by monit.
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
> 


      



reply via email to

[Prev in Thread] Current Thread [Next in Thread]