LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i login as the root user (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-login-as-the-root-user-87097/)

Robin01 08-29-2003 06:03 PM

how do i login as the root user
 
Hello everybody,

everytime the pc is booted it logs in as the user i created initially/.. from the terminal how do i login as the root user...

also.. when i installed redhat 9 i dont remember it asking me for a user name but i do remember it asking me for a root password...

anyideas

Odd_Bloke 08-29-2003 06:07 PM

Don't login as root ever. Things go horribly wrong.

Type 'su -' at the console to get to the root account temporarily. But ensure you close it after you're finished, don't use it to run any programs it doesn't need to (thankfully gtk-gnutella warned me :p).

pnh73 08-29-2003 06:20 PM

Hi,

Strange that you cannot recall it asking for a root password. Any way, to temporarily login as root from a terminal then you can do the following:

Code:

[user@server dir]$ su
Password:

then enter the password that you set (or think you could of set :D )

or you can do this from the terminal (not recommended as you could end up trashing your system by logging in as root, you just have too much power.

Code:

[user@server dir]$ logout
after doing this you will be presented with a login prompt.

Hope that helps

Odd_Bloke 08-29-2003 06:34 PM

Oh, sure, explain what you mean. ;) Like that'll help newbies. :rolleyes:

You can also get to a super-user file manager (at least on KDE on Red Hat 9) by going to Menu>System Tools>More System Tools>File Manager - Super User Mode. Dunno if that'll help.

pnh73 08-29-2003 06:40 PM

Quote:

Originally posted by Odd_Bloke
[B]Oh, sure, explain what you mean. ;) Like that'll help newbies. :rolleyes:
I am guessing he knows how to use the terminal to some degree, and he is asking how to login into root from the terminal, so i answered his question. :rolleyes:

I dont wish to get into an argument with you or anybody else, but i will defend my position.

I merely assisted him in what he asked.

Odd_Bloke 08-29-2003 06:44 PM

I was just kidding! Thus the liberal sprinkling of smilies.

Sorry for the misunderstanding. :D

pnh73 08-29-2003 06:45 PM

Ok, no hard feelings :D


All times are GMT -5. The time now is 08:22 PM.