On Wed, Mar 2, 2011 at 6:43 PM, Matt Lawrence <m...@technoronin.com> wrote:

> On Wed, 2 Mar 2011, Phil Pennock wrote:
>
> > 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.
>
> Oddly enough, I don't get any output or errors when I do "sudo -u ggs -i
> ls".  Looks like I need a different solution.
>

Are there any files in ggs's home directory?  And what is ggs's login shell
set to?  If the login shell isn't a shell which can execute commands as
normal, the above will fail, as it's passed to the login shell of the ggs
user.

Colm


-- 
Colm Buckley / c...@tuatha.org / +353 87 2469146
_______________________________________________
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