Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

running x as root

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

running x as root

#1 Post by milomak »

debian sid

these 2 variables are set in ~/bashrc

Code: Select all

mac ~ # echo $XAUTHORITY
/root/.Xauthority
mac ~ # echo $DISPLAY
:0.0
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: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: running x as root

#2 Post by Segfault »

I have no need to run any X apps as root. :? Something is wrong with your habits, not your Debian.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: running x as root

#3 Post by llivv »

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.

Post Reply