Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2017 19:32:36 -0600
From:      JD <jd1008@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD-11, Mate, Terminal, Gvim
Message-ID:  <5977F134.2020804@gmail.com>
In-Reply-To: <86o9s8w5ja.fsf@elm.localnet>
References:  <a973035703bd510d1226163df5ac9a34.squirrel@webmail.harte-lyne.ca> <20170725210647.6f4c8fcd.freebsd@edvax.de> <VI1PR02MB1200A48204221928325FC148F6B80@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170725215338.41ea83f0.freebsd@edvax.de> <VI1PR02MB1200CA799271D535917ED023F6B80@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170725230437.88caf5bd.freebsd@edvax.de> <VI1PR02MB12001763910BE8FB395166D4F6B80@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170725231936.3f571dbc.freebsd@edvax.de> <86o9s8w5ja.fsf@elm.localnet>

next in thread | previous in thread | raw e-mail | index | archive | help


On 07/25/2017 03:49 PM, Carl Johnson wrote:
> Polytropon <freebsd@edvax.de> 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.
On Fedora, root does not need normer user permission to run gui apps.
Very DANGEROUS :(



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