+ Post New Thread
Results 1 to 9 of 9
*nix Thread, root password Ubuntu in Technical; Hi, I am new to this and have found a puzzling problem. I have installed Ubuntu on a virtual machine ...
  1. #1

    NikChillin's Avatar
    Join Date
    Nov 2007
    Location
    on the sofa
    Posts
    959
    Thank Post
    63
    Thanked 128 Times in 91 Posts
    Rep Power
    125

    root password Ubuntu

    Hi,
    I am new to this and have found a puzzling problem. I have installed Ubuntu on a virtual machine and need to do some things as a root account. In the terminal it is asking for the root password which is fine but I haven't set one. I have rei-installed it because I thought that I had missed a step but I haven't. can someone tell me how to overcome this or reset the password?

    Thanks

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,698
    Thank Post
    352
    Thanked 803 Times in 718 Posts
    Rep Power
    348
    Try sudo yourcommand

    or if it insists on a true root password (which is kind of not good) you'll want to run sudo passwd root (and put in your own password first for sudo, and then the one you want to use for root twice)

  3. #3

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,731
    Thank Post
    344
    Thanked 520 Times in 488 Posts
    Rep Power
    180
    Quote Originally Posted by NikChillin View Post
    Hi,
    I am new to this and have found a puzzling problem. I have installed Ubuntu on a virtual machine and need to do some things as a root account. In the terminal it is asking for the root password which is fine but I haven't set one. I have rei-installed it because I thought that I had missed a step but I haven't. can someone tell me how to overcome this or reset the password?

    Thanks
    In Ubuntu you don't ever need to login as root. You use sudo with your password.

    It's basically UAC style.

    Steve

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,819
    Thank Post
    110
    Thanked 588 Times in 509 Posts
    Blog Entries
    1
    Rep Power
    226
    although you can turn it off

    Enable and Disable Ubuntu Root Password

    I usually do this when I'm doing the initial setup. Once the server is deployed on the network I use SSH keys.

  5. #5

    NikChillin's Avatar
    Join Date
    Nov 2007
    Location
    on the sofa
    Posts
    959
    Thank Post
    63
    Thanked 128 Times in 91 Posts
    Rep Power
    125
    Quote Originally Posted by Steve21 View Post
    In Ubuntu you don't ever need to login as root. You use sudo with your password.

    It's basically UAC style.

    Steve
    It's part of an OU study and I need to partition drives as a root user to do that.

  6. #6

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,767
    Thank Post
    873
    Thanked 673 Times in 442 Posts
    Rep Power
    502
    As already stated - sudo <command> should be enough
    to stay in root (not recommended!!) type:

    Code:
    sudo su
    <your password here>
    to leave root - just type exit

  7. Thanks to Gatt from:

    NikChillin (8th June 2012)

  8. #7

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,731
    Thank Post
    344
    Thanked 520 Times in 488 Posts
    Rep Power
    180
    Quote Originally Posted by NikChillin View Post
    It's part of an OU study and I need to partition drives as a root user to do that.
    Sorry, maybe I explained bad You don't "login" with root. You just use it as sudo (e.g. above as @Gatt said )

    Thus never need to know it's default password etc.

    Steve

  9. Thanks to Steve21 from:

    NikChillin (8th June 2012)

  10. #8

    NikChillin's Avatar
    Join Date
    Nov 2007
    Location
    on the sofa
    Posts
    959
    Thank Post
    63
    Thanked 128 Times in 91 Posts
    Rep Power
    125
    Cheers guys, as I said it is for a training course so it isn't a problem with security etc.

  11. #9

    NikChillin's Avatar
    Join Date
    Nov 2007
    Location
    on the sofa
    Posts
    959
    Thank Post
    63
    Thanked 128 Times in 91 Posts
    Rep Power
    125
    Wunderbar! Solved many permission issues I was experiencing too.

SHARE:
+ Post New Thread

Similar Threads

  1. Reset Password Ubuntu Server
    By richard_s in forum *nix
    Replies: 5
    Last Post: 9th December 2009, 10:27 AM
  2. Replies: 1
    Last Post: 15th June 2009, 09:55 AM
  3. [Ubuntu] Default Root Password?
    By FN-GM in forum *nix
    Replies: 11
    Last Post: 17th February 2009, 10:44 AM
  4. Replies: 8
    Last Post: 13th October 2007, 01:05 PM
  5. Now they want my server root password.
    By tickmike in forum General Chat
    Replies: 29
    Last Post: 9th September 2006, 11:23 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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