LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 08: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 08:14 PM.
 
Old 06-28-2005, 10:50 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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, 02:21 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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



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

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

All times are GMT -5. The time now is 06:51 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
Open Source Consulting | Domain Registration