From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: bug#24049: GuixSD - problem with X11 forwarding Date: Thu, 21 Jul 2016 12:49:07 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHCh-0006rt-UI for bug-guix@gnu.org; Thu, 21 Jul 2016 12:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQHCc-00056P-RT for bug-guix@gnu.org; Thu, 21 Jul 2016 12:52:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHCc-00056L-OL for bug-guix@gnu.org; Thu, 21 Jul 2016 12:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQHCc-0003iO-J1 for bug-guix@gnu.org; Thu, 21 Jul 2016 12:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHC5-0006Mg-Eo for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQHC0-000529-CM for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:42423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQHC0-00051m-0u for bug-guix@gnu.org; Thu, 21 Jul 2016 12:51:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bQHBo-000209-JL for bug-guix@gnu.org; Thu, 21 Jul 2016 18:51:12 +0200 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2016 18:51:12 +0200 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2016 18:51:12 +0200 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 24049@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This is still open so I am moving it from user to bugs ... From: myglc2 Subject: Re: guixSD - problem with X11 forwarding Newsgroups: gmane.comp.gnu.guix.user To: help-guix@gnu.org Date: Mon, 29 Feb 2016 21:12:51 -0500 (20 weeks, 2 days, 14 hours ago) ludo@gnu.org (Ludovic Courtès) writes: > myglc2 skribis: > >> On guixSD, with no packages installed in the login user profile, I get >> 'X11 forwarding request failed on channel 0' > > [...] > >> debug1: channel 0: new [client-session] >> debug1: Entering interactive session. >> debug1: Requesting X11 forwarding with authentication spoofing. >> debug1: Sending environment. >> debug1: Sending env LANG = en_US.UTF-8 >> X11 forwarding request failed on channel 0 > > Right, I see that as well. > > lshd gives some clues in /var/log/messages: > > Feb 23 18:14:09 localhost lshd[430]: lshd: Updating utmp for login failed (errno = 2): No such file or directory > Feb 23 18:14:09 localhost lshd[430]: lshd: xauth invocation failed: exit code: 127 > Feb 23 18:14:33 localhost lshd[430]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory > Feb 23 18:14:33 localhost lshd[430]: lshd: write_buffer: Attempt to write data to closed buffer. > Feb 23 18:14:33 localhost lshd[430]: lshd: Disconnect for reason 11: disconnected by user > > Indeed, server_x11.c in lsh reads: > > #ifndef XAUTH_PROGRAM > # define XAUTH_PROGRAM "/usr/X11R6/bin/xauth" > #endif > > I believe this is fixed by commit da35acf. [...] Not, at lease, in my setup. I am running GuixSD built from git checkout ... b006ba5 [behind 15] pull: Update the version string. On the client, ssh produces ... 'X11 forwarding request failed on channel 0' On the headless server (g1) in /var/log/messages ... Jul 21 12:24:51 localhost lshd[381]: lshd: Failed to cd to `/tmp/.X11-unix' (errno = 2): No such file or directory Jul 21 12:24:51 localhost lshd[381]: lshd: Updating utmp for login failed (errno = 2): No such file or directory With this workaround ... sudo mkdir /tmp/.X11-unix sudo chmod 777 /tmp/.X11-unix ... if I log out and back in X11 forwarding "works" and in /var/log/messages ... Jul 21 12:33:44 localhost lshd[381]: lshd: Updating utmp for login failed (errno = 2): No such file or directory When I logout, in /var/log/messages I see ... Jul 21 12:36:06 localhost lshd[381]: lshd: Updating utmpx for logout failed (errno = 2): No such file or directory Jul 21 12:36:06 localhost lshd[381]: lshd: write_buffer: Attempt to write data to closed buffer. Jul 21 12:36:06 localhost lshd[381]: lshd: Disconnect for reason 11: disconnected by user Of course, the workaround needs to be re-applied each time the server is rebooted. The system and user configs are attached below ;-) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=g1.scm Content-Transfer-Encoding: base64 KHVzZS1wYWNrYWdlLW1vZHVsZXMKIGFzcGVsbAogYmFzZQogc2NoZW1lIDs7IHNpY3AKIGVtYWNz ICA7OyBnZWlzZXItbmV4dAogKQoocGFja2FnZXMtPm1hbmlmZXN0CiAobGlzdAogIGFzcGVsbC1k aWN0LWVuIDsgYmVjYXVzZSBlbWFjcyBkb2Vzbid0IGZpbmQgc3lzdGVtIGluc3RhbGwKICBnZWlz ZXItbmV4dCAgICA7IHRlbXBvcmFyeSBmb3IgJ0MtYyBDLWQgQy1kJyB0byB3b3JrCiAgc2ljcCAg ICAgICAgICAgOyBTSUNQIGluIHRleGluZm8KICApKQo= --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=system.scm Content-Transfer-Encoding: base64 Ozs7IGcxIHN5c3RlbSBjb25maWcKKHVzZS1tb2R1bGVzIChnbnUpKQoodXNlLXNlcnZpY2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