Sample Header Ad - 728x90

Xorg failed to find /root/.local/share/xorg/Xorg.0.log Advice

0 votes
0 answers
165 views
I am currently working on a display manager for linux using the startx command. The program is running as _root_ (as a display manager normally does) and then drops to a normal user (in this case _kuglatec_). I tested and verified it using whoami which returned kuglatec. Then I started the x server but it cant locate the log file at /root/.local/share/xorg/Xorg.0.log which it shouldn't actually do since xorg isn't running as root and the log file is located an /home/kuglatec/.local/share/xorg/Xorg.0.log. I think that xorg somehow runs as root and tries to access the nonexistent file. Any ideas? Source code of the operating function: https://pastebin.com/GqT28xyq
Asked by Kuglatec (11 rep)
Jan 17, 2024, 07:41 PM
Last activity: Jan 30, 2024, 09:55 PM