LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-21-2005, 04:57 AM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
how to start x as user and not root?


How can I start x as myself and not as root? It always starts with root. I can't seem to find a config file to edit to change this. I boot into console mode logged in as myself and start x with "startx". Thanks.
 
Old 06-21-2005, 05:05 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you boot to console as a normal user, then startx should start
the X server as that user. Is your prompt in console a $ or # ?
Did you create a normal user? And why do you think it starts X
as root and not user?

Hope I read your post right...
 
Old 06-21-2005, 05:15 AM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally posted by Chinaman
If you boot to console as a normal user, then startx should start
the X server as that user. Is your prompt in console a $ or # ?
Did you create a normal user? And why do you think it starts X
as root and not user?

Hope I read your post right...
I have a # in console mode. Acutually, no I didn't create a normal user, I cheated and did like I do with Mandrake and edited the /etc/shadow and /etc/passwd files so I have the same priviledges as root so I don't have to log myself in as root to have these priviledges. Also, I use "Autologin" from the Mandrake distribution.
X starts as root because when I open a terminal it shows root in the root directory.
 
Old 06-21-2005, 05:52 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
There's the problem. If you didn't create a normal user account,
it is impossible to login as user. There is a difference between a
user and myself, which is just a name you gave to root. If you're
open to learning some more about Linux, here are some links:

http://www.icon.co.za/~psheer/book/node14.html.gz

http://en.tldp.org/HOWTO/Unix-and-In...ml#permissions

If you want to run your computer as root, that's your choice. I
suppose the same type person would prefer to drive their car
without seatbelts or doors.

The way to start X as user and not root:
Boot to root, type "adduser <username>", answer the questions,
exit from root to user, type "startx" and hit Enter key (not to be
confused with the Any Key)

Last edited by Bruce Hill; 06-21-2005 at 05:54 AM.
 
Old 06-22-2005, 05:57 AM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Odd, KDE and IceWM start fine with me as user, in my home directory. My problem lies with Gnome. Maybe there's a Gnome configuration file I can edit...
 
Old 06-22-2005, 04:17 PM   #6
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
gnome

Have you set gnome as your default desktop? The way to do so is (as your non-priveledged self, not as root) type <i>switchdesk-gnome</i> to set kde as the default desktop, <i>switchdesk-kde</i> (no spaces). You should be able to boot directly to the GUI, if that is you desire. To do so become root and type <i>init 5</i> . BTW, running X programs as root is considered a security lapse, remember, those programs run with the permissions of their user. NEVER do ordinary tasks as root. Looking at the internet, reading mail and playing freecell should be done only as a non-priveledged user. Happy computing , Kurt
 
  


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
Firefox doesn't start as non-root user! theseer540 Linux - Software 6 02-23-2005 09:20 PM
X won't start as user, works as root... gsk Linux - General 19 10-06-2004 01:25 AM
I can start X with root but not with another user pewillette Linux - Newbie 4 04-21-2004 06:58 PM
Can't start X as non-root user. Please help! yitzhakbg Linux - Software 6 12-04-2003 11:06 AM
allow non-root user to start gdm kc8tbe Linux - General 5 10-21-2003 09:49 AM

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

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