-   Linux - Software (
-   -   Logging in to Root (

NathanCohen2003 07-10-2004 04:34 PM

Logging in to Root
Hi I have no idea how I can login to root i've been trying forever...can someone please help me with this...

I am using Mandrake 10

reddazz 07-10-2004 05:05 PM

If you are going to login into root at the console/terminal you do it as follows,

<press enter> and then enter roots password.

or to take full control of the system as root, you'd do the following

su -
<press enter> and then enter roots password.

If you want to login graphically, which ideally you shouldn't do, use the desktop manager such as KDM or GDM. If you are using MdkKDM you won't be able to login as root and you may have to change it in your system settings to KDM or GDM.

I recommend you buy a basic Linux or Unix book, because your question is quite basic and there are a lot of online articles about Unix/Linux commands.

btmiller 07-10-2004 05:07 PM

Usually Mandrake hides the root login from you unless you specifically enable it. This is because it's generally not a good idea to run as root, particularly with the GUI. If you need to become root open a command prompt and type "su -" then enter the root password. You will then have root priviliges for anything you run from that terminal. Also, the GUI will usually prompt for the root password when you try to do something priviliged (or at least that's how I recall it being with Mandrake, tho I haven't used it since the 7.2 days).

Reddazz beat me to it -- silly slow fingers :)

J.W. 07-10-2004 05:11 PM

Well, the first question is whether or not you have permission to log in as root. Assuming you're talking about your own machine, then the process is really no different than logging in with your regular user account: you just enter "root" as the username, and whatever password you set up. That's it. As a word of warning though, keep in mind that root has all privileges to do anything without restriction, so be careful about what commands you run otherwise it's very easy to end up hosing your system. My advice would be to only run as root when absolutely necessary (such as when you're installing new packages).

On the other hand, if you are referring to logging in as root on someone else's system without their permission, then you're talking about illegal/criminal activity, which absolutely will not be tolerated here.

I'm pretty certain you're talking about your own machine, but I feel obligated to throw that out anyway. -- J.W.

Edit: And that's good advice from reddazz and btmiller too - I completely spaced on su

All times are GMT -5. The time now is 02:57 PM.