Results 1 to 7 of 7

Thread: How do i log in as root user?

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Posts
    4

    How do i log in as root user?

    how do i log in as root in the login screen, is says root login not allowed, i need to make a folder under /usr/ to be writable......

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Gee, you wouldn't want to read any of the other posts where this question is already answered, just post and expect people to write the information for you. I doubt if you could have come up with another question where the answer was as easy to find.

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    4
    i know, ive been looking at all of those other threads, but none of them work for me, and none tell how to login as root and the main login page....

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    you do NOT need to login as root for that. just type
    Code:
    sudo comand
    for your specific problem perhaps
    Code:
    sudo konqueror
    you now have konqueror as root, when you shot it down you are not root anymore.

  5. #5
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    spacedude89,

    Your question is "kinda" what everyone is getting un-nerved about, it deals with getting "root access", thus, it is like "root password" subjects...

    First, are you running off the Live CD, or have you hard drive installed?

    Depending on your above answer, here is your answers:

    Live CD
    You realizes that root doesnt have a password, and thus, making any changes to the OS will not be maintained during a reboot - i.e. your directory / folder you create, wont exist after you reboot, right ?

    If you are running the Live CD, there is no root password, to get root, you use the su or the sudo commands in a users Konsole screen. To get what you want to do with the Live CD, you would do the following:

    ( 1 ) Start a regular user Konsole, text, and is "like" a DOS screen in Windows.
    ( 2 ) Type one of the following:

    su
    mkdir somedirectory


    or

    sudo mkdir somedirectory

    replacing "somedirectory" with the path / and folder you want to create, like this... if you wanted to create a folder under /usr named scrappy - then the two above examples would look like this:

    su
    mkdir /usr/scrappy
    exit


    or

    sudo mkdir /usr/scrappy

    Now, if you hard drive installed, things change a little bit, considering that "during a hard drive install", you create a root user account, and create its own password ( it is part of the install )

    Hard Drive Installed
    To get what you want, you dont have to log out, and re-login as a root, you can do the same thing mentioned in the Live CD above, as you can if you did a hard drive install, the only differance is, that, you DO have a root password in a hard drive install, and thus, may be required to enter that password in doing some commands.

    One of the big things that newbies to this whole "root / user" thing in Linux, and in Knoppix, is, that people think they have to BE root all the time, or have to LOGIN specifically as root, to do things... As you learn about Linux, you begin to realize its not so much BEING root all the time, but, rather, being ABLE to be root when you NEED IT ( which is not ALWAYS, and being root ALWAYS is a security risk ) -=- So, you get root when you NEED IT, and drop being root, when you DONT need it...

    So, if you have a hard drive install, and want to create a folder, follow the same examples as I displayed in the Live CD area above, except, this MAY BE what you will see doing them:

    su
    please enter password: (enter root password)
    mkdir /usr/scrappy
    exit


    or

    sudo mkdir /usr/scrappy
    please enter password: (enter root password)


    Again, its not the fact that you have to login as root specifically, you dont have to, you can get root, anytime you want it, or need it, as long as you have the root password, or are "permitted" to becoming root - the "knoppix" user ( on the Live CD boot ) is permitted to becoming root, because it is in the sudo users file, if you hard drive install Knoppix, you can add other users to this file, and allow them to be root, if they want to, but, as the file will tell you, you dont want EVERYONE to have this ability, it can turn into a serious security risk...

    Hopefully, this helps,
    Ms. Cuddles

  6. #6
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Root Tip

    <<One of the big things that newbies to this whole "root / user" thing in Linux, and in Knoppix, is, that people think they have to BE root all the time, or have to LOGIN specifically as root, to do things... As you learn about Linux, you begin to realize its not so much BEING root all the time, but, rather, being ABLE to be root when you NEED IT ( which is not ALWAYS, and being root ALWAYS is a security risk ) -=- So, you get root when you NEED IT, and drop being root, when you DONT need it... >>

    Good points. My first couple of HD installs I just HAD to have a root log in mode. Then, after a lot of playing and tinkering it dawned on me I didn't. It was getting too confusing. I had my email set up in root, but when I wanted to do wine programs, I had to be in user mode. Two log ins was WAY more trouble than it was worth.

    I now only log in as user. But.... I do like to get into root a lot, so here is what I did. I dragged a link from the Super User mode file manager to my task bar. Now it is right there for easy access. When it asks me for a password I also click the "keep password" box so I only have to give the root password once per session.

    If I need the console, I just press F4 within Super User File Manager. No additional password typing needed this way.

    Best of both worlds.

    sakiZ

  7. #7
    Junior Member registered user
    Join Date
    Jan 2004
    Location
    Tacoma, WA
    Posts
    29

    How to be full ROOT

    If you want to be full root, just visit this post for detailed instruction how to be full root and much more:

    http://www.knoppix.net/forum/viewtopic.php?t=17024

Similar Threads

  1. How to change user to root
    By Wavform in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 05-19-2005, 03:44 AM
  2. Root User
    By NewGuy in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 12-25-2004, 02:59 AM
  3. Cannot log into user account..only root
    By rrfish72 in forum General Support
    Replies: 6
    Last Post: 09-17-2004, 08:15 PM
  4. help with root user
    By zuzo in forum General Support
    Replies: 6
    Last Post: 12-21-2003, 05:19 PM
  5. pon and poff as non-root user
    By fingers99 in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 08-11-2003, 07:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5 picture

LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5

$139.99



E5-2699V4 Intel Xeon Processor  55M Cache, 2.20 GHz SR2JS CM8066002022506 picture

E5-2699V4 Intel Xeon Processor 55M Cache, 2.20 GHz SR2JS CM8066002022506

$155.00



Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011 picture

Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011

$62.95



Dell T7810 Workstation 1x E5-2603 v3 16GB RAM Nvidia QUADRO +cables picture

Dell T7810 Workstation 1x E5-2603 v3 16GB RAM Nvidia QUADRO +cables

$120.00



Intel Xeon E5-2640v4 2.4GHz 10-Core 25MB 90W SR2NZ picture

Intel Xeon E5-2640v4 2.4GHz 10-Core 25MB 90W SR2NZ

$5.45



Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W picture

Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W

$15.99



Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor picture

Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor

$14.99



Intel Xeon E5-2699 v3 2.3GHz 18-Core 45MB 145W LGA2011-3 CPU/Processor SR1XD picture

Intel Xeon E5-2699 v3 2.3GHz 18-Core 45MB 145W LGA2011-3 CPU/Processor SR1XD

$40.99



HP Z440 Workstation Xeon E5-1603 v4 QC 2.80GHz CPU 32GB RAM Quadro K2200 picture

HP Z440 Workstation Xeon E5-1603 v4 QC 2.80GHz CPU 32GB RAM Quadro K2200

$79.99



Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU picture

Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU

$29.89