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-29-2006, 04:10 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 8

Rep: Reputation: 0
su command help

i'm kinda new at this so sorry if this is a stupid question but

when i try and login as root from the su command i dont know how to type it

for example if the root password was "helpme" what would i type??

would it be something like "su - root helpme"

i just need to know how to write it out
Old 10-29-2006, 04:15 PM   #2
Registered: Jul 2004
Distribution: Slackware 13.0
Posts: 49

Rep: Reputation: 15
When you type su - root, you'll be asked for password. then you must type it.

[23:13:46]ebasi@home:~$ su - root
Old 10-29-2006, 04:25 PM   #3
LQ Newbie
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
i dont know if it makes a difference but i'm doing it from the linux rescue

when i type su - root it says password invalid
Old 10-29-2006, 04:46 PM   #4
Registered: Oct 2006
Distribution: Almost Kubuntu 6.10
Posts: 32

Rep: Reputation: 15
Hmm, I would just type in su. Root is usually the default user. You can check by typing: "man su"

(q exits you from the man entry BTW)

So in your situation I would type:

[s][u][Enter] [h][e][l][p][m][e][Enter]

*NOTE* whenever you type in passwords for any user in the terminal, the terminal does NOT output little asterisks ****. The cursor just sits there like you didn't even type in anything--creepy, huh?

Last edited by yttrium88; 10-29-2006 at 04:49 PM.
Old 10-30-2006, 03:19 PM   #5
LQ Newbie
Registered: Oct 2006
Location: Sokoto, Nigeria
Distribution: RedHat, Mandrake
Posts: 15

Rep: Reputation: 0

Are you sure youre typing the correct password with correct capitalisation?
Are you sure somebody did not temper with your password?
I think you will have to make a new installation becouse there is no way you can recover your password.
Old 10-30-2006, 03:36 PM   #6
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Originally Posted by sykes89
i dont know if it makes a difference but i'm doing it from the linux rescue

when i type su - root it says password invalid
Most of the other questions have already been answered, so I'll do it as code quotes
su -
then hit enter, it should then ask for the root password which you type in and then hit enter again if the prompt changes from $ to # you're there.

Passwords etc are case sensitive.

All this is in other replies.

The only other thing I can think of, is whether you're using gentoo linux? because if you are, and you didn't make sure that your user account is a member of the "wheel" group. If that is the case, you'd have to log out, then back in as root and that'd have to be CLI as you probably can't log in graphically as root (usually disabled by default).

Dunno if any of thats any help or not.




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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 PM.

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