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

 

 

 

Xorg is running as root in Debian 10

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Xorg is running as root in Debian 10

#1 Post by MakeTopSite »

Should not it run under user account, when gdm3 is used ?

Same result when

Code: Select all

$ startx
or

Code: Select all

$ xinit
It needs logind and libpam-systemd according to Stretch manual. https://www.debian.org/releases/stretch ... uires-root
Does apply same requirement for Buster ?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Xorg is running as root in Debian 10

#2 Post by Head_on_a_Stick »

MakeTopSite wrote:Should not it run under user account, when gdm3 is used ?
Yes, that's what I saw in my buster system.

How are you determining the ownership of X?
MakeTopSite wrote:It needs logind and libpam-systemd according to Stretch manual. https://www.debian.org/releases/stretch ... uires-root
Does apply same requirement for Buster ?
Yes. I think it will also work with elogind & libpam-elogind though, or at least it does in Devuan beowulf.

What are you using for PID1?

Code: Select all

cat /proc/1/comm
ls -l /sbin/init
It also needs KMS support for your video card so what are you running?

Code: Select all

lspci -k | grep -iA2 '3d\|vga\|display'
deadbang

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#3 Post by MakeTopSite »

Head_on_a_Stick wrote:
MakeTopSite wrote:Should not it run under user account, when gdm3 is used ?
Yes, that's what I saw in my buster system.

How are you determining the ownership of X?
MakeTopSite wrote:It needs logind and libpam-systemd according to Stretch manual. https://www.debian.org/releases/stretch ... uires-root
Does apply same requirement for Buster ?
Yes. I think it will also work with elogind & libpam-elogind though, or at least it does in Devuan beowulf.

What are you using for PID1?

Code: Select all

cat /proc/1/comm
ls -l /sbin/init
It also needs KMS support for your video card so what are you running?

Code: Select all

lspci -k | grep -iA2 '3d\|vga\|display'
top, htop says Xorg runs as root.
But atop says Xorg runs as user.

Code: Select all

cat /proc/1/comm
systemd

ls -l /sbin/init
lrwxrwxrwx 1 root root 20 Jan 29 15:16 /sbin/init -> /lib/systemd/systemd


lspci -k | grep -iA2 '3d\|vga\|display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
	Subsystem: Micro-Star International Co., Ltd. [MSI] 3rd Gen Core processor Graphics Controller
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GK107M [GeForce GTX 660M]
	Kernel driver in use: nouveau

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Xorg is running as root in Debian 10

#4 Post by Head_on_a_Stick »

Please don't full quote unnecessarily, it degrades the readability of the thread.
MakeTopSite wrote:top, htop says Xorg runs as root.
But atop says Xorg runs as user.
How about ps?

Code: Select all

ps aux | awk '/X/&&!/awk/'
MakeTopSite wrote:

Code: Select all

lspci -k | grep -iA2 '3d\|vga\|display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
	Subsystem: Micro-Star International Co., Ltd. [MSI] 3rd Gen Core processor Graphics Controller
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GK107M [GeForce GTX 660M]
	Kernel driver in use: nouveau
Check the X.Org log to confirm that the Intel card is being used. The location of the most recent log file will also show if X is running under your normal user because in that case it will be found under ~/.local/share/xorg/ rather than /var/log/.
deadbang

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#5 Post by MakeTopSite »

Code: Select all

ps aux | awk '/X/&&!/awk/'
root      1389  0.9  0.9 241344 75036 tty2     Sl+  08:40   0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
Head_on_a_Stick wrote: Check the X.Org log to confirm that the Intel card is being used. The location of the most recent log file will also show if X is running under your normal user because in that case it will be found under ~/.local/share/xorg/ rather than /var/log/.
most recent log file is at /var/log/
It shows that the Intel card is being used.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Xorg is running as root in Debian 10

#6 Post by Head_on_a_Stick »

So the question now is how did you break your system :mrgreen:

Can we see

Code: Select all

loginctl user-status --no-p
apt policy
deadbang

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#7 Post by MakeTopSite »

Head_on_a_Stick wrote:So the question now is how did you break your system :mrgreen:
I'm sorry I don't know :? :)

Code: Select all

 loginctl user-status --no-p
u (1000)
	   Since: Thu 2021-03-18 18:42:13 CET; 2min 5s ago
	   State: active
	Sessions: *2
	  Linger: no
	    Unit: user-1000.slice
		  |-session-2.scope
		  | |-1332 gdm-session-worker [pam/gdm-password]
		  | |-1366 /usr/lib/gdm3/gdm-x-session --run-script icewm-session
		  | |-1368 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
		  | |-1377 icewm-session
		  | |-1424 /usr/bin/ssh-agent icewm-session
		  | |-1425 icewmbg
		  | |-1426 icewm --notify
		  | |-1430 lxterminal
		  | |-1442 bash
		  | |-1451 su -
		  | |-1455 -bash
		  | |-1480 /sbin/mount.ntfs /dev/sda1 /media/u/sda1 -o rw,windows_names
		  | `-2191 loginctl user-status --no-p
		  `-user@1000.service
		    |-at-spi-dbus-bus.service
		    | |-1432 /usr/lib/at-spi2-core/at-spi-bus-launcher
		    | |-1437 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
		    | `-1439 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
		    |-dbus.service
		    | `-1375 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
		    `-init.scope
		      |-1342 /lib/systemd/systemd --user
		      `-1348 (sd-pam)

Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:11 localhost /usr/lib/gdm3/gdm-x-session[1366]: gvim 'a.txt'
Mar 18 18:43:14 localhost gvim[2145]: Failed to load module "atk-bridge"
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »

Code: Select all

 apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://repo.skype.com/deb stable/main amd64 Packages
     release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
     origin repo.skype.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 http://ftp.at.debian.org/debian buster/non-free i386 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=i386
     origin ftp.at.debian.org
 500 http://ftp.at.debian.org/debian buster/non-free amd64 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64
     origin ftp.at.debian.org
 500 http://ftp.at.debian.org/debian buster/contrib i386 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=i386
     origin ftp.at.debian.org
 500 http://ftp.at.debian.org/debian buster/contrib amd64 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64
     origin ftp.at.debian.org
 500 http://ftp.at.debian.org/debian buster/main i386 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
     origin ftp.at.debian.org
 500 http://ftp.at.debian.org/debian buster/main amd64 Packages
     release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
     origin ftp.at.debian.org
 100 http://ftp.debian.org/debian buster-backports/main i386 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian buster-backports/main amd64 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=amd64
     origin ftp.debian.org
 500 http://ftp.debian.org/debian buster-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
     origin ftp.debian.org
 500 http://ftp.debian.org/debian buster-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
     origin ftp.debian.org
 500 http://security.debian.org buster/updates/main i386 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://security.debian.org buster/updates/main amd64 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
Pinned packages:

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Xorg is running as root in Debian 10

#8 Post by Head_on_a_Stick »

So perhaps the Skype repository has broken things for you. Can you revert to the backup you made before adding them? Did rootless X ever work for you? Are there any log files under ~/.local/share/xorg/?

Check for non-Debian packages with

Code: Select all

aptitude search '~S ~i !~ODebian'
deadbang

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#9 Post by MakeTopSite »

Head_on_a_Stick wrote:Can you revert to the backup you made before adding them? Did rootless X ever work for you? Are there any log files under ~/.local/share/xorg/?
No I can't.
Yes they did.
Yes, there are some logs.

Code: Select all

aptitude search '~S ~i !~ODebian'
i   burn                                                           - command-line tool for writing optical media                             
i   cclive                                                         - lightweight command line video extraction tool                          
i A cpp-4.8                                                        - GNU C preprocessor                                                      
i A cpp-4.9                                                        - GNU C preprocessor                                                      
i A cpp-6                                                          - GNU C preprocessor                                                      
i   ecryptfs-utils                                                 - ecryptfs cryptographic filesystem (utilities)                           
i A gcc-4.8                                                        - GNU C compiler                                                          
i   gcc-4.8-base                                                   - GCC, the GNU Compiler Collection (base package)                         
i A gcc-4.9                                                        - GNU C compiler                                                          
i   gcc-4.9-base                                                   - GCC, the GNU Compiler Collection (base package)                         
i A gcc-4.9-base:i386                                              - GCC, the GNU Compiler Collection (base package)                         
i A gcc-4.9-multilib                                               - GNU C compiler (multilib files)                                         
i A gcc-6                                                          - GNU C compiler                                                          
i A gcc-6-base                                                     - GCC, the GNU Compiler Collection (base package)                         
i A gcc-6-base:i386                                                - GCC, the GNU Compiler Collection (base package)                         
i A gcc-6-multilib                                                 - GNU C compiler (multilib support)                                       
i A gksu                                                           - graphical front-end to su and sudo                                      
i   icedove                                                        - mail/news client with RSS and integrated spam filter support            
i   leafpad                                                        - GTK+ based simple text editor                                           
i A lib32asan1                                                     - AddressSanitizer -- a fast memory error detector (32bit)                
i A lib32asan3                                                     - AddressSanitizer -- a fast memory error detector (32bit)                
i A lib32gcc-4.9-dev                                               - GCC support library (32 bit development files)                          
i A lib32gcc-6-dev                                                 - GCC support library (32 bit development files)                          
i   libapt-inst1.5                                                 - deb package format runtime library                                      
i   libapt-pkg4.12                                                 - package management runtime library                                      
i A libasan0                                                       - AddressSanitizer -- a fast memory error detector                        
i A libasan1                                                       - AddressSanitizer -- a fast memory error detector                        
i A libasan3                                                       - AddressSanitizer -- a fast memory error detector                        
i A libavcodec57                                                   - FFmpeg library with de/encoders for audio/video codecs - runtime files  
i A libavutil55                                                    - FFmpeg library with functions for simplifying programming - runtime file
i A libbonobo2-0                                                   - Bonobo CORBA interfaces library                                         
i A libbonobo2-common                                              - Bonobo CORBA interfaces library -- support files                        
i   libbonoboui2-common                                            - Bonobo UI library - common files                                        
i A libboost-date-time1.62.0                                       - set of date-time libraries based on generic programming concepts        
i A libboost-filesystem1.62.0                                      - filesystem operations (portable paths, iteration over directories, etc) 
i   libboost-iostreams1.55.0                                       - Boost.Iostreams Library                                                 
i A libboost-iostreams1.62.0                                       - Boost.Iostreams Library                                                 
i A libboost-program-options1.62.0                                 - program options library for C++                                         
i A libboost-regex1.55.0                                           - regular expression library for C++                                      
i A libboost-system1.62.0                                          - Operating system (e.g. diagnostics support) library                     
i A libcloog-isl4                                                  - Chunky Loop Generator (runtime library)                                 
i   libcryptsetup4                                                 - disk encryption support - shared library                                
i   libdns-export100                                               - Exported DNS Shared Library                                             
i A libecryptfs1                                                   - ecryptfs cryptographic filesystem (library)                             
i A libgcc-4.8-dev                                                 - GCC support library (development files)                                 
i A libgcc-4.9-dev                                                 - GCC support library (development files)                                 
i A libgcc-6-dev                                                   - GCC support library (development files)                                 
i   libgdbm3                                                       - GNU dbm database routines (runtime version)                             
i A libgksu2-0                                                     - library providing su and sudo functionality                             
i   libgnome-2-0                                                   - The GNOME library - runtime files                                       
i A libgnome-keyring-common                                        - GNOME keyring services library - data files                             
i A libgnome-keyring0                                              - GNOME keyring services library                                          
i   libgnome2-0                                                    - The GNOME library - transition package                                  
i   libgnome2-bin                                                  - The GNOME library - binary files                                        
i   libgnome2-common                                               - The GNOME library - common files                                        
i   libgnomevfs2-0                                                 - GNOME Virtual File System (runtime libraries)                           
i   libgnomevfs2-common                                            - GNOME Virtual File System (common files)                                
i   libgnomevfs2-extra                                             - GNOME Virtual File System (extra modules)                               
i A libgtop-2.0-10                                                 - gtop system monitoring library (shared)                                 
i A libhunspell-1.3-0                                              - spell checker and morphological analyzer (shared library)               
i   libicu52                                                       - International Components for Unicode                                    
i A libicu57                                                       - International Components for Unicode                                    
i   libirs-export91                                                - Exported IRS Shared Library                                             
i   libisc-export95                                                - Exported ISC Shared Library                                             
i   libisccfg-export90                                             - Exported ISC CFG Shared Library                                         
i A libisl10                                                       - manipulating sets and relations of integer points bounded by linear cons
i A libisl15                                                       - manipulating sets and relations of integer points bounded by linear cons
i A libjavascriptcoregtk-1.0-0                                     - JavaScript engine library from WebKitGTK+                               
i   libjson-c2                                                     - JSON manipulation library - shared library                              
i   liblogging-stdlog0                                             - easy to use and lightweight logging library                             
i   liblognorm1                                                    - Log normalizing library                                                 
i A libmpfr4                                                       - multiple precision floating-point computation                           
i A liborbit-2-0                                                   - high-performance CORBA implementation - common libraries                
i   libpng12-0                                                     - PNG library - runtime                                                   
i   libprocps3                                                     - library for accessing process information from /proc                    
i   libpsl0                                                        - Library for Public Suffix List (shared libraries)                       
i   libreadline6                                                   - GNU readline and history libraries, run-time libraries                  
i A libsndio6.1                                                    - Small audio and MIDI framework from OpenBSD, runtime libraries          
i   libssl1.0.0                                                    - Secure Sockets Layer toolkit - shared libraries                         
i A libswresample2                                                 - FFmpeg library for audio resampling, rematrixing etc. - runtime files   
i A libva-drm1                                                     - Video Acceleration (VA) API for Linux -- DRM runtime                    
i A libva-x11-1                                                    - Video Acceleration (VA) API for Linux -- X11 runtime                    
i A libva1                                                         - Video Acceleration (VA) API for Linux -- runtime                        
i A libvpx4                                                        - VP8 and VP9 video codec (shared library)                                
i   libwebkitgtk-1.0-0                                             - Web content engine library for GTK+                                     
i A libwebpmux2                                                    - Lossy compression of digital photographic images.                       
i A libx264-148                                                    - x264 video coding library                                               
i A libx265-95                                                     - H.265/HEVC video stream encoder (shared library)                        
i A libx32asan1                                                    - AddressSanitizer -- a fast memory error detector (x32)                  
i A libx32asan3                                                    - AddressSanitizer -- a fast memory error detector (x32)                  
i A libx32gcc-4.9-dev                                              - GCC support library (x32 development files)                             
i A libx32gcc-6-dev                                                - GCC support library (x32 development files)                             
i   libxtables10                                                   - netfilter xtables library                                               
i   licq                                                           - multi-protocol instant messaging client (base files)                    
i A licq-plugin-icq                                                - ICQ/AIM plug-in for Licq                                                
i A licq-plugin-qt4                                                - graphical user interface plug-in for Licq using Qt4                     
i A licq-plugin-qt4-common                                         - common data files for the Qt4 and KDE4 Licq plugins                     
i   linux-compiler-gcc-4.8-x86                                     - Compiler for Linux on x86 (meta-package)                                
i   linux-headers-4.19.0-9-amd64                                   - Header files for Linux 4.19.0-9-amd64                                   
i A linux-headers-4.19.0-9-common                                  - Common header files for Linux 4.19.0-9                                  
i A lynx-cur                                                       - Text-mode WWW Browser (transitional package)                            
i A perl-modules-5.24                                              - Core Perl modules                                                       
i   python-reportbug                                               - Python modules for interacting with bug tracking systems                
i   python-support                                                 - automated rebuilding support for Python modules                         
i   uzbl                                                           - Lightweight Webkit browser following the UNIX philosophy

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Xorg is running as root in Debian 10

#10 Post by Head_on_a_Stick »

Well you've broken it then but I can't see an obvious culprit in that package list :?
deadbang

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#11 Post by MakeTopSite »

Head_on_a_Stick wrote:Well you've broken it then but I can't see an obvious culprit in that package list :?
Nevermind, thank you for your time.

It looks like it's not of critical importance: https://ubuntuforums.org/showthread.php ... st14027258

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#12 Post by MakeTopSite »

Wayland run under user account so I can use it instead of Xorg

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#13 Post by MakeTopSite »

Head_on_a_Stick wrote:So the question now is how did you break your system
Is please any chance that Debian 10 ---> Debian 11 upgrade will fix it ?

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#14 Post by MakeTopSite »

MakeTopSite wrote: 2021-05-12 06:44
Head_on_a_Stick wrote:So the question now is how did you break your system
Is please any chance that Debian 10 ---> Debian 11 upgrade will fix it ?
It did not fix it.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Xorg is running as root in Debian 10

#15 Post by bw123 »

Your pkg list from command shows two different versions of some pkgs, currently installed , and those versions are not even in debian repo anymore. Maybe you've borked a past upgrade, or somehow mixed debian versions or another linux distribution?

Code: Select all

aptitude search '~S ~i !~ODebian'
Upgrading a broken system rarely solves anything, it can cause more problems the longer it's allowed to continue.

I'd take a look at commands like this on files in the list:

Code: Select all

apt policy libapt-pkg4.12
aptitude why libapt-pkg4.12
You could possibly use aptitude to pull them out one at a time like grey hairs but back up important data first.

good luck
resigned by AI ChatGPT

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#16 Post by MakeTopSite »

bw123 wrote: 2021-10-10 14:21 Your pkg list from command shows two different versions of some pkgs, currently installed , and those versions are not even in debian repo anymore. Maybe you've borked a past upgrade, or somehow mixed debian versions or another linux distribution?

Code: Select all

aptitude search '~S ~i !~ODebian'
Upgrading a broken system rarely solves anything, it can cause more problems the longer it's allowed to continue.

I'd take a look at commands like this on files in the list:

Code: Select all

apt policy libapt-pkg4.12
aptitude why libapt-pkg4.12
You could possibly use aptitude to pull them out one at a time like grey hairs but back up important data first.

good luck
I'm sorry I don't remember what has caused that. I've tried install sysvinit some time ago.

Code: Select all

aptitude search '~S ~i !~ODebian'
i   e17                                                  - transitional e17 package                                      
i   e2fslibs                                             - transitional package                                          
i A gcc-8-base                                           - GCC, the GNU Compiler Collection (base package)               
i A gcc-8-base:i386                                      - GCC, the GNU Compiler Collection (base package)               
i   iceweasel                                            - Web browser based on Firefox - Transitional package           
i   iceweasel-l10n-fr                                    - French language package for Iceweasel - Transitional package  
i   libcomerr2                                           - transitional package                                          
i   libffi6                                              - Foreign Function Interface library runtime                    
i   libgcc1                                              - GCC support library                                           
i A libgcc1:i386                                         - GCC support library                                           
i A linux-image-4.19.0-18-amd64                          - Linux 4.19 for 64-bit PCs (signed)                            
i   multiarch-support                                    - Transitional package to ensure multiarch compatibility        
i A phantomjs                                            - minimalistic headless WebKit-based browser with JavaScript API
i A ttf-dejavu-core                                      - transitional dummy package                                    
i A vdpau-va-driver                                      - VDPAU-based backend for VA API    

Code: Select all

$ apt policy libapt-pkg4.12
libapt-pkg4.12:
  Installed: (none)
  Candidate: (none)
  Version table:


$ aptitude why libapt-pkg4.12
Not currently installed
No dependencies require to install libapt-pkg4.12
  

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Xorg is running as root in Debian 10

#17 Post by bw123 »

That looks better since the upgrade. Are you stlll showing Xorg running as root?
You can check running X without gdm by ctrl-alt-F2 and login as regular user

Code: Select all

$ startx xterm
$ ls -l /usr/bin/X*
$ ps ax | grep Xorg
$ top -bn1 | grep X
resigned by AI ChatGPT

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#18 Post by MakeTopSite »

bw123 wrote: 2021-10-10 19:09 That looks better since the upgrade. Are you stlll showing Xorg running as root?
You can check running X without gdm by ctrl-alt-F2 and login as regular user

Code: Select all

$ startx xterm
$ ls -l /usr/bin/X*
$ ps ax | grep Xorg
$ top -bn1 | grep X
Yes htop shows Xorg running as root.

Code: Select all

$ ls -l /usr/bin/X*
lrwxrwxrwx 1 root root       4 13 April 18:07 /usr/bin/X -> Xorg
lrwxrwxrwx 1 root root       1  1 April  2014 /usr/bin/X11 -> .
-rwxr-xr-x 1 root root 2424968 13 April 18:07 /usr/bin/Xephyr
-rwxr-xr-x 1 root root     274 13 April 18:07 /usr/bin/Xorg
-rwxr-xr-x 1 root root 2321928 13 April 18:07 /usr/bin/Xwayland

Code: Select all

$ ps ax | grep Xorg
   9039 tty3     Sl     0:01 /usr/lib/xorg/Xorg -nolisten tcp :0 vt3 -keeptty -auth /tmp/serverauth.pQqB7qNoGc
   9147 pts/3    S+     0:00 grep Xorg

Code: Select all

$ top -bn1 | grep X
   9039 root      20   0  145660  43608  22172 S   0,0   0,5   0:01.55 Xorg

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Xorg is running as root in Debian 10

#19 Post by bw123 »

weird problem,

This one isn't in bullseye, should have been removed by full-upgrade? try aptitude why on it?
i A vdpau-va-driver - VDPAU-based backend for VA API
none of the auth files should be owned by root.

Code: Select all

$ ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*
resigned by AI ChatGPT

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

Re: Xorg is running as root in Debian 10

#20 Post by MakeTopSite »

bw123 wrote: 2021-10-11 12:22 weird problem,

This one isn't in bullseye, should have been removed by full-upgrade? try aptitude why on it?
i A vdpau-va-driver - VDPAU-based backend for VA API
none of the auth files should be owned by root.

Code: Select all

$ ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*

Code: Select all

aptitude why vdpau-va-driver
i   mpv             Depends    libva2 (>= 2.2.0)        
i A libva2          Recommends va-driver-all | va-driver
i A vdpau-va-driver Provides   va-driver 

Code: Select all

ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*
ls: cannot access '/tmp/xauth*': No such file or directory
ls: cannot access '/tmp/serverauth*': No such file or directory
-rw------- 1 maketopsite maketopsite 103 Oct 11 07:43  /home/maketopsite/.Xauthority

Post Reply