Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-08-2005, 10:03 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
How to login as root?

Alright, I am very new to this and this is a really stupid question. But How do I login to root?
Old 10-08-2005, 10:08 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Undex *nix, it is standard to log in as a regular user. Then when you need to do something as root, you use the
su -
command, then enter the root password. When you're finished, you type exit and go back to being a regular user.
Old 10-08-2005, 10:37 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,471
Blog Entries: 15

Rep: Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452
Going to really basic answer which is what I think you were after.

You should see a "login:" prompt if in text mode or a box that prompts for login (or logon or user) if in a GUI. Type in the name "root" as the user. It should then prompt you for password. Assuming you put in a password for root when you did the install you'll need to know what that password is and use it. If you didn't then just hitting enter at the prompt for password may work.

As the prior poster noted it is best to login as a separate non-root user (you are usually prompted to create one during install) then do "su -" to become root only when you need to be root. The "su -" will prompt you for root's password like the above. Doing the login as the other user works just like the root login method described above but of course you substitue the other user name for "root" and use the password you created for that user which should be different than the one you created for root.

If you didn't do the install then the person that did it likely has the root password. Note that this password is not usually given to anyone not responsible for maintaining the whole OS.
Old 10-08-2005, 11:56 PM   #4
LQ Newbie
Registered: Jan 2003
Distribution: Slackware 10.2
Posts: 14

Rep: Reputation: 0
depending on the distro your using the root password may be changed easily by some boot-time command line manipulation even if you lost your root password...
Old 10-09-2005, 08:30 PM   #5
LQ Newbie
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
problem solved, thanks alot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration