LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2004, 12:28 AM   #1
isaac_e
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
X running as "root".


Hello Everybody!

I'm using slack for a bout 2 months, pretty happy with it.
I have a little problem though, when I log it into the system, I use a normal user,
and ofcourse execute "startx", as a normal user.

When I execute "ps -aux", I see the line above:
root 1193 0.2 11.5 91916 14544 ? RL Dec04 1:27 X :0

Is really the X server running as root? If yes why? and should I run it as root or normal user?
Thanks in advance.
 
Old 12-05-2004, 12:57 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Yes, X runs as root, as many servers do. It is important to secure the X display to deny unauthorized access.

When I type in the same, here is my line:
root 15142 15.0 2.2 286108 22880 ? SL 14:16 0:26 X :0 -auth /home/jims/.Xauthority -nolisten tcp -nolisten tcp

You may have a security risk, because your X server may not be secured.


Here are a couple articles on using Xauth to secure your X display.
http://www.acm.uiuc.edu/workshops/cool_unix/xauth.html
http://www.die.net/doc/linux/man/man7/xsecurity.7.html

Here is a quick reference guide on Linux Security (cheat sheet ) that you may find informative:
http://linuxsecurity.com/docs/
 
Old 12-05-2004, 02:25 AM   #3
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
Is there a way to sudo X or something?
 
Old 12-05-2004, 07:55 AM   #4
isaac_e
LQ Newbie
 
Registered: Dec 2004
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you very much for the answer.
I'm going to take a look at the links you gave me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Running Tomcat non-root with MSEC setting of "Higher" twbutler Mandriva 0 03-24-2004 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration