[sllug-members]: Environment/Path help
Stuart Jansen
sjansen at buscaluz.org
Tue Dec 12 12:42:28 MST 2006
On Tue, 2006-12-12 at 12:33 -0700, Steve Dibb wrote:
> Andrew GIlmore wrote:
> > Is there any other way outside of ssh root at host or xauth add <xauth key>
> > to get X applications working for root when you log in as yourself
> > first?
> >
> > I'm thinking of sudo up2date as one example of something that I'd like
> > to work. How about if the user isn't root, but postgres for example? I'd
> > like to do this without using sudo.
>
> For that, I use sux.
Actually, you should be using pam_xauth. Then your users don't have to
remember to use a new command, things just "automagically" work. Red Hat
has enabled pam_xauth for a long time. SUSE used to include the sux
command (< SLES10), starting with SLES10 SUSE also enables pam_xauth by
default. If I remember correctly, Ubuntu doesn't enable pam_xauth, but
it isn't hard to do.
I'm too lazy to explain how you should do it on your distro. But here's
a clue to get you started: you'll need to edit /etc/pam.d/su. That
should be enough for Google.
--
Stuart Jansen e-mail/jabber: sjansen at buscaluz.org
google talk: stuart.jansen at gmail.com
"However beautiful the strategy, you should occasionally look at
the results." -- Winston Churchill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://sllug.org/pipermail/sllug-members/attachments/20061212/2b42fa12/attachment.pgp
More information about the sllug-members
mailing list