LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Best: Question about X and top (https://www.linuxquestions.org/questions/slackware-14/best-question-about-x-and-top-104201/)

Scythe 10-15-2003 08:46 AM

Best: Question about X and top
 
I started using slackware in about June. I was reading recently and I noticed that when I run the top command, no matter what user I am logged in as and using X, top says X is always being run by root instead of my current username. Is there a reason for this ? Secondly, how is it that root runs X when I am not logged in as root? I'm really confused about that part of it.

thx for the help in advance

trickykid 10-15-2003 10:29 AM

Do you boot in a graphical mode at boot time? That would determine why its being run as root instead of you as a user. If you use startx, should be running as your username, etc.

rotvogel 10-15-2003 10:44 AM

The Xfree86 binary is suid, so on execution it switches to the owner, which is root. That's the answer for your second question I think.

Scythe 10-15-2003 11:05 AM

Thanks
 
Yeah I use the startx command to start my gui. That's why I found it weird. THx for the replies, I appreciate it


All times are GMT -5. The time now is 12:11 PM.