Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2000 14:40:18 -0400
From:      Peter Radcliffe <pir@pir.net>
To:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: X-display from laptop to desk
Message-ID:  <20000702144018.C13133@pir.net>
In-Reply-To: <20000702191902.A34291@keltia.freenix.fr>; from roberto@keltia.freenix.fr on Sun, Jul 02, 2000 at 07:19:02PM %2B0200
References:  <Pine.BSF.4.21.0007011813061.500-100000@heaven.gigo.com> <m2bt0gy1qp.fsf@reader.ptw.com> <20000702191902.A34291@keltia.freenix.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Ollivier Robert <roberto@keltia.freenix.fr> probably said:
> Instead of ssh-ing as root, use some utility such as calife (found
> in ports/security/calife) or sudo to become root. That way, the
> authentication is not a problem anymore.

I like keeping my enviroment when I su (yes, I know there are pitfalls
with this and I allow for them) so use 'su -m' on a FreeBSD box (there
are ways to do with with most any UNIX OS, but they're all different).

This retains $HOME, so $HOME/.Xauthority is still valid, so ssh X
forwarding still works.

The only problem I've had was in testing OpenSSH; it seems to use per
session Xauthority files. While this isn't a bad idea in itself, it
breaks xauth through an su which means it's useless to me.

Anyone hit this already and found a way to work around it ?

P.

-- 
pir                  pir@pir.net                    pir@net.tufts.edu



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000702144018.C13133>