Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > Login as root

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-16-2005   #1 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 11
Login as root

Hi I am a newbie to linux and have installed mandrake 10.1. How do I get to the root prompt? When I startup mandrake automatically starts using autologin. Then what do I do? I only seem to have konsole available and all i get is username@localhost how do I change to login from this? I need an idiots guide to talk me through I have looked online and in books etc but can't seem to find the answer.
Any help really appreciated
Thanks
Andy
swiss is offline  



Reply With Quote
Old 12-16-2005   #2 (permalink)
Banned
 
Join Date: Nov 2004
Location: Belgium
Posts: 1,121
Re: Login as root

Quote:
Originally Posted by swiss
Hi I am a newbie to linux and have installed mandrake 10.1. How do I get to the root prompt? When I startup mandrake automatically starts using autologin. Then what do I do? I only seem to have konsole available and all i get is username@localhost how do I change to login from this? I need an idiots guide to talk me through I have looked online and in books etc but can't seem to find the answer.
Any help really appreciated
Thanks
Andy
Log in as your normal user.
Open a terminal and type:
Code:
su
...this will ask for your root password.
Type it, press enter and that's it.

To login as root outside the GUI:
*press Ctrl-Alt-F3 (this will bring you to a CLI in runlevel 3)
*log in with the name root and give your root password.

In both cases, type exit to get back.
__________________
Those who can make you believe absurdities can make you commit atrocities.
--Voltaire
jens is offline   Reply With Quote
Old 12-16-2005   #3 (permalink)
Linux Engineer
 
adrenaline's Avatar
 
Join Date: Aug 2004
Location: Seattle, Washington
Posts: 1,059
Re: Login as root

Quote:
Originally Posted by jens
Quote:
Originally Posted by swiss
Hi I am a newbie to linux and have installed mandrake 10.1. How do I get to the root prompt? When I startup mandrake automatically starts using autologin. Then what do I do? I only seem to have konsole available and all i get is username@localhost how do I change to login from this? I need an idiots guide to talk me through I have looked online and in books etc but can't seem to find the answer.
Any help really appreciated
Thanks
Andy
Log in as your normal user.
Open a terminal and type:
Code:
su
...this will ask for your root password.
Type it, press enter and that's it.

To login as root outside the GUI:
*press Ctrl-Alt-F3 (this will bring you to a CLI in runlevel 3)
*log in with the name root and give your root password.

In both cases, type exit to get back.

type su -
that will be true root
su is user with some root privs (not all)

__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
adrenaline is offline   Reply With Quote
Old 12-16-2005   #4 (permalink)
Banned
 
Join Date: Nov 2004
Location: Belgium
Posts: 1,121
Re: Login as root

Quote:
Originally Posted by adrenaline
Quote:
Originally Posted by jens
Quote:
Originally Posted by swiss
Hi I am a newbie to linux and have installed mandrake 10.1. How do I get to the root prompt? When I startup mandrake automatically starts using autologin. Then what do I do? I only seem to have konsole available and all i get is username@localhost how do I change to login from this? I need an idiots guide to talk me through I have looked online and in books etc but can't seem to find the answer.
Any help really appreciated
Thanks
Andy
Log in as your normal user.
Open a terminal and type:
Code:
su
...this will ask for your root password.
Type it, press enter and that's it.

To login as root outside the GUI:
*press Ctrl-Alt-F3 (this will bring you to a CLI in runlevel 3)
*log in with the name root and give your root password.

In both cases, type exit to get back.

type su -
that will be true root
su is user with some root privs (not all)

Not everyone agrees that's a safe thing to do
__________________
Those who can make you believe absurdities can make you commit atrocities.
--Voltaire
jens is offline   Reply With Quote
Old 12-16-2005   #5 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 11
root login

Huge big thank you. Such a simple thing that I've found really difficult to find.
I have tried to access the fstab by typing through as the root@localhost, /etc/fstab but I get access denied. Any ideas?
Thanks
Andy
swiss is offline   Reply With Quote
Old 12-16-2005   #6 (permalink)
Linux Engineer
 
Join Date: Nov 2004
Location: Ft. Polk, LA
Posts: 794
Re: Login as root

Quote:
Originally Posted by adrenaline
type su -
that will be true root
su is user with some root privs (not all)
su is true root just as su - is, and as sudo is. The difference is that su - starts as a login shell with a clean environment. If you are root, you are true and full root, there is no halfway there, it's all or nothing. su does have it's advantages over su - because it doesn't clean the environment first, this is quite useful sometimes.
valan is offline   Reply With Quote
Old 12-16-2005   #7 (permalink)
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 12,685
Re: root login

Quote:
Originally Posted by swiss
Huge big thank you. Such a simple thing that I've found really difficult to find.
I have tried to access the fstab by typing through as the root@localhost, /etc/fstab but I get access denied. Any ideas?
Thanks
Andy
Try this:

Code:
su   (enter root password when asked, and press Enter)
vim /etc/fstab
That should get you into fstab with the vim editor. Substitute the name of the editor with any other editor of your choice.

Hope this helps.
ozar is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:12 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1