FreeBSD-11, Mate, Terminal, Gvim
JD
jd1008 at gmail.com
Wed Jul 26 01:32:37 UTC 2017
On 07/25/2017 03:49 PM, Carl Johnson wrote:
> Polytropon <freebsd at 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 :(
More information about the freebsd-questions
mailing list