[arch-general] Permanently allow root access
Damjan
gdamjan at gmail.com
Mon Feb 10 13:10:30 EST 2014
On 01.02.2014 04:55, piruthiviraj natarajan wrote:
> I want to run root X application in a terminal.
>
> [root at archbox ~]# smplayer
> smplayer: cannot connect to X server
> [root at archbox ~]#
>
>
> I followed the wiki
> https://wiki.archlinux.org/index.php/Running_X_apps_as_root
>
> added export XAUTHORITY=/home/archie/.Xauthority to /etc/profile.
>
> After this I am not able to login with my user account archie through gdm.
> Deleting the added line to /etc/profile let me log back in.
> How can I get this thing working as I wish?
>
> I definitely don't prefer the method given under temporarily allow root
> access as per the wiki page, since in other distribution I can start the X
> applications in a root terminal without a hitch. I would like to start
> root X applications in a terminal.
why don't you just use sudo?
$ sudo env
...
DISPLAY=:0
XAUTHORITY=/home/damjan/.Xauthority
...
those are propagated by default (I don't remember setting this up)
--
дамјан
More information about the arch-general
mailing list