LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-28-2005, 09:06 PM   #1
alanalover89
LQ Newbie
 
Registered: Apr 2005
Distribution: Suse 9.2 Eval
Posts: 19

Rep: Reputation: 0
root login?


i installed suse 9.2 and some things require me to be logged in as root...how do i do this, i created a root password but the logon screen only has my user name. im new to linux but need to know how to login as the root user
 
Old 06-28-2005, 09:12 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
If you are already logged into your user account and in a terminal simply type:

$ su <enter>
PW <enter>
#

Notice your prompt will change from '$' to '#' this is the usual indicator that your in the root account.

If you want to get into root initially from the command line interface

Login: root <enter>
PW <enter>
#

Now you are logged in as root from the CLI. Not recommended accept for maint...

KC
 
Old 06-28-2005, 09:13 PM   #3
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
If you want to login as root from the login screen, just type in root as the user and then enter your root password. Something else you may want to consider is the "su" command. If you're using a console and need root access for something, just su first. Entering the su command will prompt you for a password(root password). You're now effectively running as root.

Last edited by Chromezero; 06-28-2005 at 09:14 PM.
 
Old 06-28-2005, 11:50 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
You're far better off to log in as your normal user and then just use "su" when you need to perfom a task requiring root access.
 
Old 06-29-2005, 03:21 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,580

Rep: Reputation: 191Reputation: 191
Moved: This thread is more suitable in a more technical forum like Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

KDM and GDM (the programs for graphical login) have a list of users they allow to log as. Logging in as root is not a very good idea, so root is usually out of the list. If you want to be able to log in as root with such program, you need to change its' settings. Where? It depends on the program you use (KDM or GDM). In most cases it's not needed. You log in as your normal user and then use su (or su frontends) to temprary become root as proposed above.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration