Results 1 to 8 of 8

Thread: Change root password

  1. #1
    Join Date
    Jun 2012
    Beans
    84

    Change root password

    My first install of Ubuntu was on an old pce 500mb ram and only just runs. However, I still like to use it from time to time.

    I discovered today that the root password was not what I expected it to be, i.e. I have appeared to forgotten it.

    Is there a way to change the root password?

    Thanks in advance for your help.

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Change root password

    Ubuntu doesn't use the root account. The first user created during install has the permissions to run system commands when the word 'sudo' is used before the command in terminal, or 'gksu' before GUI commands.

    For example:
    sudo fdisk -l (small L)

    It will ask you to enter your password again and it will execute the command.

    Users that were created later don't have this permission by default but can be given the permission.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Jun 2012
    Beans
    84

    Re: Change root password

    Ok, but if I wanted to change the root password how do I do that?

  4. #4
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Change root password

    There is no root password, the root user is disabled. You confirm system commands with the first user. And you run system commands as the first user.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  5. #5
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Change root password

    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  6. #6
    Join Date
    Jun 2012
    Beans
    84

    Re: Change root password

    Ok, I have not read the link yet but I will.

    So if I type

    su
    I get
    Password:
    If I now type the password that it should be then I get
    su: Authentication failure

    How do I change the password for this user.

    Will read the link now, it may answer what I am asking.

    It is just on my laptop, it I enter 'su' I type in the password
    Then I get
    root@mylaptop:/home#

    This is what I want the password for ??????

  7. #7
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Change root password

    You don't use 'su' on ubuntu. How many times I have to say it, forget about the root user. Try with:
    sudo -i
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  8. #8
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,899
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Change root password

    As Darkod has been saying, Ubuntu locks the root account, what is it exactly that you think you need root for?
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

Bookmarks

Posting Permissions

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