On 2011-03-02 at 11:54 -0600, Matt Lawrence wrote:
> Is there some sort of special handling for su?  Is there a good 
> workaround?  They really want to do "su - <user>" so that the environment 
> is being set correctly.

sudo -u ggs -i
sudo -u ggs -i <cmd>

The -i option, "simulate initial login", may prove useful.

-Phil
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to