From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 03:59:08 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA1BD16A4DF for ; Wed, 2 Aug 2006 03:59:08 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay1.av-mx.com (relay1.av-mx.com [137.118.16.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68ED343D46 for ; Wed, 2 Aug 2006 03:59:08 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay1.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 336669521 for questions@freebsd.org; Tue, 01 Aug 2006 23:59:07 -0400 Received: (qmail 31758 invoked from network); 2 Aug 2006 03:59:06 -0000 Received: from dsl17146.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.104.146) by 0 with SMTP; 2 Aug 2006 03:59:06 -0000 X-CLIENT-IP: 216.227.104.146 X-CLIENT-HOST: dsl17146.ywave.com Message-ID: <44D02309.5070300@ywave.com> Date: Tue, 01 Aug 2006 20:59:05 -0700 From: Micah User-Agent: Thunderbird 1.5.0.5 (X11/20060730) MIME-Version: 1.0 To: "Chad Leigh -- Shire.Net LLC" References: <44CFE745.1000206@ywave.com> <974320D7-3E87-4D57-9A79-BD3ED46D1B0C@shire.net> <44D01AC3.5050705@ywave.com> <61130535-366F-4E26-BCD2-2EB31386EB5C@shire.net> In-Reply-To: <61130535-366F-4E26-BCD2-2EB31386EB5C@shire.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: X11+ssh+jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 03:59:09 -0000 Chad Leigh -- Shire.Net LLC wrote: > > On Aug 1, 2006, at 9:23 PM, Micah wrote: > >> >> Nope I didn't su, I just ssh'd in as a regular user and immediately >> tried xclock. I also tried ssh'ing in as root to see if it's a perms >> problem, but root gets the same error. Maybe I've got a configuration >> error somewhere? ezjail mounts much of the file system ro, maybe >> that's causing a problem? >> > > Again, I am not an expert, but make sure you have an .Xauthority file in > the login dir root of the account you are logging in to and that it has > a creation or modification date at the same time you logged in (to make > sure that you really are getting it set). > > Chad Thanks for the idea, here's a test run: test% ll .Xauthority -rw------- 1 bsdmjl bsdmjl 112B Aug 1 20:51 .Xauthority test% rm .Xauthority test% exit logout Connection to 10.0.0.1 closed. trisha% ssh -X 10.0.0.1 Password: Last login: Tue Aug 1 20:51:33 2006 from 10.0.0.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE-p3 (TRISHA) #1: Sat Jul 15 15:48:17 PDT 2006 Welcome to FreeBSD! /usr/X11R6/bin/xauth: creating new authority file /home/bsdmjl/.Xauthority test% ll .Xauthority -rw------- 1 bsdmjl bsdmjl 112B Aug 1 20:51 .Xauthority test% xclock X11 connection rejected because of wrong authentication. X connection to test:10.0 broken (explicit kill or server shutdown). I'll keep looking.... Thanks, Micah