Find the answer to your Linux question:
Results 1 to 7 of 7
I've just got a Danish version of Knoppix (Dappix). When I tried to change some things, I needed to log in as root. The problem is, that it asks for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    Roskilde, Denmark
    Posts
    93

    How to log in as root?


    I've just got a Danish version of Knoppix (Dappix). When I tried to change some things, I needed to log in as root. The problem is, that it asks for the root password, but I don't know what it is. I've not logged in as root before. Is there something you have too do the first time?

  2. #2
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    Knoppix by default does not have a root password set. If you waqnt to run a command that needs root permissions you can use 'sudo':
    Code:
    # sudo [command]
    To set the root password you can run:
    Code:
    # sudo passwd
    Then you'll be prompted to write the new root password.

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Location
    Roskilde, Denmark
    Posts
    93
    Ok, thanks.

  4. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by nalg0rath
    To set the root password you can run:
    Code:
    # sudo passwd
    Then you'll be prompted to write the new root password.
    Would that set the password for root? or the user?
    Code:
    sudo passwd root
    will set the password for root definatly (though the first might work).
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  5. #5
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    Code:
    # sudo passwd
    works in every distro I've tried this in so far and one of them is Knoppix.

  6. #6
    Just Joined!
    Join Date
    Mar 2005
    Location
    Roskilde, Denmark
    Posts
    93
    I tried
    Code:
    sudo passwd root
    It worked fine, but is it possible to save the password, so that it will be there next time I boot Knoppix?

  7. #7
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    It is not possible unless you have installed Knoppix to your harddrive (not running it from a CD). The Knoppix CD is not a writable media and all the information the computer uses that is specific to your computer is located in your RAM -memory.

Posting Permissions

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