running x as root

Everything about X, Gnome, KDE, ... and everything running on it

running x as root

Postby milomak » 2018-12-15 21:16

debian sid

these 2 variables are set in ~/bashrc
Code: Select all
mac ~ # echo $XAUTHORITY
mac ~ # echo $DISPLAY

but to run an x app in root, i constantly have to do
Code: Select all
mac ~ # rm .Xauthority
mac ~ # cp /home/<user>/.Xauthority . -v
'/home/<user>/.Xauthority' -> './.Xauthority'
mac ~ # xauth generate :0 . trusted
mac ~ # gparted
libparted : 3.2

what has changed that is causing this?
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
Posts: 1972
Joined: 2009-06-09 22:20

Re: running x as root

Postby Segfault » 2018-12-15 21:31

I have no need to run any X apps as root. :? Something is wrong with your habits, not your Debian.
Posts: 907
Joined: 2005-09-24 12:24

Re: running x as root

Postby llivv » 2018-12-16 01:21

This needs root permissions to access /dev/dri/card0
Code: Select all
[    78.097] (II) Initializing extension DRI2
[    78.106] (II) modeset(0): Damage tracking initialized
[    78.106] (II) modeset(0): Setting screen physical size to 338 x 253

systemd takes care of the permissions AFAIKT from the contortions I've seen wrangling with X on sysv in stretch. It's not the same in testing and sid - but it's probably similar when running systemd.

check the X log to see if it helps locate it -
(check the date ls -la of files in .local/share and /var/log to make sure it's the current log )
- or check systemd for how it handles X permissions.
good luck with the mac stuff too - ever dive into darwin at all?
I looked inside a few times when they first released.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
Posts: 5488
Joined: 2007-02-14 18:10
Location: cold storage

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 8 guests