LinuxQuestions.org
Share your knowledge at the LQ Wiki.

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 access 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.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

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.

Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Reply
 
Thread Tools
Old 05-14-2008, 11:23 AM   #1
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 13
Auto login to root


[Log in to get rid of this advertisement]
Hi guys. I am using Fedora Core 9 and I am wondering if there is any way that I can make my system auto logging as root. Sorry for the ignorance newbie
Pytheas is offline     Reply With Quote
Old 05-14-2008, 11:54 AM   #2
forrestt
Member
 
Registered: Mar 2004
Location: Newport News, Virginia, USA
Distribution: Fedora, Kubuntu, RedHat, SuSe
Posts: 770
You REALLY don't want to log into root if you don't have to (and you really DON'T have to). If you need to do something as root, a permission dialog will pop up asking for the root password. If you enter it, you can do whatever is needed to do as root without being logged in as root.

Linux is NOT Windows. In Windows you HAVE to log in as an administrator to do almost anything. In Linux this is NOT the case. This is one of the things that makes Linux more secure than Windows. In Windows, if you are logged in as administrator, EVERYTHING you run has the potential to totally take over your entire system. The same is true if you run as root in Linux. If however, you run as a normal user, the only thing that can be taken over is your account. And, you can still do all the things that are needed to administer your system by entering the root password (which has a timeout associated with it, so you don't have to do it for every command).

If you are so determined to log in as root as your standard user and you go online, YOU WILL BE HACKED. If this is for some computer that you keep in a closet and it will never go on the internet, then O.K.

I have not logged into a root GUI account in probably 10 years (and even that was only for a short period of time).

Forrest
forrestt is online now     Reply With Quote
Old 05-14-2008, 12:33 PM   #3
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 13
well thanks but it really is a computer locked in a closet to which only I have acces and i m not surfing with it. But I trully need to log in as root automatically... Is there any way?
Pytheas is offline     Reply With Quote
Old 05-14-2008, 12:52 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,636
What that need might be. Amazingly enough only new to *nix seem to have "truly need to login as root". Maybe we can help you to eliminate this need and set up your computer in a sane way?
Emerson is offline     Reply With Quote
Old 05-14-2008, 01:50 PM   #5
juergen
Member
 
Registered: Sep 2001
Posts: 35
The answer depends very much on what you would like to log in to.
For a regular tty, you can look for the lies that set up the tty's in /etc/inittab (typically near the bottom) and replace the line that sets up tty1 (for example) with something like:
Code:
1:2345:respawn:/bin/login -f root </dev/tty1 >/dev/tty1 2>&1
I must admit that I haven't tried that specifically on FC9, but the method should be pretty portable.

Good luck!
juergen is offline     Reply With Quote
Old 05-14-2008, 02:12 PM   #6
forrestt
Member
 
Registered: Mar 2004
Location: Newport News, Virginia, USA
Distribution: Fedora, Kubuntu, RedHat, SuSe
Posts: 770
If you truly "need" to log in as root, your system isn't configured correctly. It is much better (and in the long run easier) to reconfigure your system to remove that need. I'll be more than happy to help you do that. I'm not going to tell you how to log into a GUI automatically because someone else who isn't using a computer locked in a closet may find the information, and I want my stance to be perfectly clear, "IT IS A VERY VERY VERY BAD IDEA!!!".

Also, I didn't say "surfing with it". I said "never go on the internet", meaning, you are in no way networking this computer.

HTH

Forrest

p.s. Search Google for "autologin root" if you really don't want to take our advice.
forrestt is online now     Reply With Quote
Old 05-14-2008, 07:21 PM   #7
chrism01
Senior Member
 
Registered: Aug 2004
Location: Brisbane
Distribution: Fedora 8
Posts: 4,060
Just tell us why you think you need to do this, its extremely rare that its actually the case.
chrism01 is offline     Reply With Quote
Old 05-15-2008, 11:23 AM   #8
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 13
ok guys thanks for nothing...
Pytheas is offline     Reply With Quote
Old 05-15-2008, 02:15 PM   #9
bsdunix
Member
 
Registered: May 2006
Distribution: Mac OS X, OpenBSD, Slackware, Solaris
Posts: 667
Found this doing a Google search:

Automatic Login not working on Fedora 9
http://www.fedoraforum.org/forum/sho...72&postcount=4

Disclaimer: I've never tried it and I don't recommend auto logins.
bsdunix is offline     Reply With Quote
Old 05-15-2008, 02:21 PM   #10
Takebacker
LQ Newbie
 
Registered: May 2008
Posts: 5
Sorry, but can anyone tell me how to become root on ubuntu? Thanks! ^^
Takebacker is offline     Reply With Quote
Old 05-15-2008, 02:32 PM   #11
bsdunix
Member
 
Registered: May 2006
Distribution: Mac OS X, OpenBSD, Slackware, Solaris
Posts: 667
Quote:
Originally Posted by Takebacker View Post
Sorry, but can anyone tell me how to become root on ubuntu? Thanks! ^^
Please start a new thread for a different topic.

By default, the root account password is locked in Ubuntu.
https://help.ubuntu.com/community/RootSudo
bsdunix is offline     Reply With Quote

Reply

Submit thread to Digg | Submit thread to del.icio.us | Submit to LQ Bookmarks

« Back to Top »

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 11 01-04-2007 05:59 AM
Auto login as root lmanwarren Fedora 2 04-10-2005 06:05 PM
auto login as root Whisky_Drinker Linux - Newbie 15 01-19-2005 04:20 PM
Auto login once as root... dano1970 Linux - General 2 10-28-2004 05:19 AM
Auto Login Root In Level 3 dezeque Linux - General 1 04-27-2004 08:25 PM



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 10:23 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration