Results 1 to 5 of 5

Thread: Default root password?

  1. #1
    Join Date
    Jul 2013
    Beans
    13

    Default root password?

    Noob question:
    I recently installed Ubuntu 12.04 on my laptop. I can install things using the password for the user account I created. However, when at command prompt, if I type 'su' it asks for a password. I've tried the password I chose, it doesn't work. Is there a default password? If not, how do I gain root using 'su'.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Default root password?

    The root account password is locked by default. Instead of su you can use sudo. Please see: community/RootSudo for more details.

  3. #3
    Join Date
    Apr 2008
    Location
    Norwich CT
    Beans
    1,579
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Default root password?

    IF your laptop is a Chromebook, the default password is 'user.' The Ubuntu OS does not grant the user root access, even if your user type is Administrator, without that user's password. The command you need to use is sudo (Super User DO), which will ask for your password and grant you temporary root access.

    To use su, for example:

    sudo su

    It will ask for a password, which is not echoed to the screen, no asterisks either. You then have a root shell. Be aware that the root shell in particular assumes that you know exactly what you're doing.

    "With great power comes great responsibility."

    I drink my Ubuntu black, no sugar.
    Ubuntu user 28819

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Default root password?

    One thing to consider is that the preferred method to get a root shell in Ubuntu isn't to use 'su' or 'sudo su'.

    If for some reason you do need to get to a root shell you should use the command...
    Code:
    sudo -i
    Cheesemill

  5. #5
    Join Date
    Jul 2013
    Beans
    13

    Re: Default root password?

    Thanks guys, that's what I was looking for!

    It's a Dell Laptop that I installed Ubuntu 12.04 on.

    I used to use Red Hat 6 probably 10+ years ago and used 'su'. Sounds like 'sudo' should be all that I need.

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
  •