+ 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
    931
    Thank Post
    59
    Thanked 122 Times in 86 Posts
    Rep Power
    85

    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,688
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    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,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    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,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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
    931
    Thank Post
    59
    Thanked 122 Times in 86 Posts
    Rep Power
    85
    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,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    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,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    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
    931
    Thank Post
    59
    Thanked 122 Times in 86 Posts
    Rep Power
    85
    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
    931
    Thank Post
    59
    Thanked 122 Times in 86 Posts
    Rep Power
    85
    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
  •