LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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.

Notices


Reply
  Search this Thread
Old 05-14-2008, 11:23 AM   #1
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 27

Rep: Reputation: 15
Auto login to root


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
 
Old 05-14-2008, 11:54 AM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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
 
Old 05-14-2008, 12:33 PM   #3
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 27

Original Poster
Rep: Reputation: 15
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?
 
Old 05-14-2008, 12:52 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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?
 
Old 05-14-2008, 01:50 PM   #5
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
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!
 
Old 05-14-2008, 02:12 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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.
 
Old 05-14-2008, 07:21 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just tell us why you think you need to do this, its extremely rare that its actually the case.
 
Old 05-15-2008, 11:23 AM   #8
Pytheas
LQ Newbie
 
Registered: Jul 2005
Posts: 27

Original Poster
Rep: Reputation: 15
ok guys thanks for nothing...
 
Old 05-15-2008, 02:15 PM   #9
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
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.
 
Old 05-15-2008, 02:21 PM   #10
Takebacker
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
Sorry, but can anyone tell me how to become root on ubuntu? Thanks! ^^
 
Old 05-15-2008, 02:32 PM   #11
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
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
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:12 PM.

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