LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2020, 01:24 PM   #1
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Rep: Reputation: Disabled
I ran startx as root, did I mess something up ?


I ran startx as root(it didn't run) .. then I ran it as a normal user and it worked...

Did I mess something up by running startx as root ? should i fix anything ?
 
Old 08-03-2020, 01:39 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by LegionOfHell View Post
I ran startx as root(it didn't run) .. then I ran it as a normal user and it worked...

Did I mess something up by running startx as root ? should i fix anything ?
What distribution were you using? Just curious about which one didn't even allow you to run the GUI as root. My guess is that the distribution maintainers customized the startx script to detect a root account and (silently?) exit w/o even letting Xorg to run.

I've never had Xorg not run as root. It is not suggested, though, and most distributions I've done that on complain to the user about doing it. You probably haven't harmed anything.

Cheers...
 
1 members found this post helpful.
Old 08-03-2020, 01:47 PM   #3
LegionOfHell
Member
 
Registered: Jul 2020
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rnturn View Post
What distribution were you using? Just curious about which one didn't even allow you to run the GUI as root. My guess is that the distribution maintainers customized the startx script to detect a root account and (silently?) exit w/o even letting Xorg to run.

I've never had Xorg not run as root. It is not suggested, though, and most distributions I've done that on complain to the user about doing it. You probably haven't harmed anything.

Cheers...
I am using Gentoo..
 
Old 08-03-2020, 08:11 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Smile

Quote:
Originally Posted by LegionOfHell View Post
I am using Gentoo..
Not many Linux "newbies" jump into the deep end. [heh]
 
2 members found this post helpful.
Old 08-04-2020, 12:07 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,897
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by rnturn View Post
I've never had Xorg not run as root.
Same here.

Quote:
It is not suggested, though, and most distributions I've done that on complain to the user about doing it.
Hasn't happened to me, but forum helpers seem universally committed to pointing out emphatically one shouldn't deign to do so lest some evil make the PC suffer some irrecoverable misfortune.

Quote:
You probably haven't harmed anything.
With Gentoo, I'd be shocked to learn if he had!
 
Old 08-04-2020, 08:01 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,400
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
OP, what leads you to believe that something is messed up?

I know that many distros block root from logging in directly via a GDM, but, when I can boot to the command line (e.g., Slackware), I've also not encountered any issues starting X as root.

It might be helpful to see the contents of the dot-xinitrc file.

Last edited by frankbell; 08-04-2020 at 08:04 PM.
 
  


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
[SOLVED] I did chown -R root:root /usr - did I screw it up? Lennie Slackware 13 11-08-2012 08:34 AM
Something depends on something else but something else is to be installed javascriptninja Linux - Newbie 3 02-05-2012 04:22 PM
Xorg works fine with startx, but only when ran the first time. Anithen Slackware 21 04-05-2007 11:09 PM
Where Did I mess Up? xsithlordx Ubuntu 1 09-09-2006 10:15 PM
Did I miss something when I did my HCL's? rberry88 LQ Suggestions & Feedback 5 02-11-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 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