From owner-freebsd-questions@freebsd.org Tue Jul 25 21:53:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61E52D7F6FD for ; Tue, 25 Jul 2017 21:53:03 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter03.peak.org (filter03.peak.org [207.55.16.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CE3468D3A for ; Tue, 25 Jul 2017 21:53:02 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta02.peak.org ([207.55.16.112]) by filter03.peak.org ({a3d4bcbc-467e-4baf-8e5e-c89ccb4fcca2}) via TCP (outbound) with ESMTPS id 20170725214948889_0000 for ; Tue, 25 Jul 2017 14:49:48 -0700 X-RC-FROM: X-RC-RCPT: Received: from zmail-mta02.peak.org (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTPS id 4DD564CBFC for ; Tue, 25 Jul 2017 14:49:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zmail-mta02.peak.org (Postfix) with ESMTP id 34C884D377 for ; Tue, 25 Jul 2017 14:49:47 -0700 (PDT) Received: from zmail-mta02.peak.org ([127.0.0.1]) by localhost (zmail-mta02.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 36VwRADwMGIU for ; Tue, 25 Jul 2017 14:49:47 -0700 (PDT) Received: from mailproxy-lb-07.peak.org (mailproxy-lb-07.peak.org [207.55.17.97]) by zmail-mta02.peak.org (Postfix) with ESMTP id F2AB24CBFC for ; Tue, 25 Jul 2017 14:49:46 -0700 (PDT) Received: from carlj by elm.localnet with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1da7i5-000Oss-H9 for freebsd-questions@freebsd.org; Tue, 25 Jul 2017 14:49:45 -0700 From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: FreeBSD-11, Mate, Terminal, Gvim References: <20170725210647.6f4c8fcd.freebsd@edvax.de> <20170725215338.41ea83f0.freebsd@edvax.de> <20170725230437.88caf5bd.freebsd@edvax.de> <20170725231936.3f571dbc.freebsd@edvax.de> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 25 Jul 2017 14:49:45 -0700 In-Reply-To: <20170725231936.3f571dbc.freebsd@edvax.de> (Polytropon's message of "Tue, 25 Jul 2017 23:19:36 +0200") Message-ID: <86o9s8w5ja.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2017 21:53:03 -0000 Polytropon writes: > On Tue, 25 Jul 2017 21:14:40 +0000, Manish Jain wrote: >> I found the perfect way to do this : - ) >> >> Here is the preparation (as normal user) : >> >> su -m root -c 'pw usershow my_normal_user_name &&\ >> touch /var/xauth.extract && \ >> chown my_normal_user_name /var/xauth.extract' >> >> [ $? -eq 0 ] && xauth extract /var/xauth.extract $DISPLAY >> >> Here is the follow-up (as root) : >> >> xauth merge /var/xauth.extract >> >> Now run whatever X stuff you want as root : - ) > > Yes, working with xauth is much more comfortable than > setting $DISPLAY and using "xhost +" to wide open. :-) I just have /root/.Xauthority as a symbolic link to ~/.Xauthority for my user login. I think that should be safe for me as the sole user on this system, and I don't have to fool with xhost. -- Carl Johnson carlj@peak.org