X11forwarding in ssh

Roger Oberholtzer roger
Tue Sep 20 07:14:20 PDT 2005


On Tue, 2005-09-20 at 13:34, Man-wai Chang wrote:
> 1. Is the file /home/user/.Xauthority created by sshd whenever I login?
> 
> 2. X11forwarding works automatically after logging in via ssh, but after
> I ran su, it would fail.  I had to manually set the environment variable
> to /home/login-user/.Xauthority to get it working. Is there an automatic
> way to do it?

Run 'su -m', perhaps?

+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
? Kapellgr?nd 7              ?                               ?
? P. O. Box 4205             ?    Phone: Int + 46 8   314223 ?
? 102 65 Stockholm           ?   Mobile: Int + 46 733 621657 ?
? Sweden                     ?      Fax: Int + 46 8   314223 ?
+????????????????????????????+???????????????????????????????+



More information about the Linux-users mailing list