FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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:
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.
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...
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.