Announcement

Collapse
No announcement yet.

Did unattended install on VirtualBox and user is not in sudoers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Did unattended install on VirtualBox and user is not in sudoers

    How Can I get root access without being in sudoers? Am I out of luck? Time to start over? Don't do unattended?

    #2
    Here's how I fixed it:

    Use the settings gear in VirtualBox to change the boot order to put CDROM first. Select the Kubuntu boot iso image to be associated with the CDROM.

    Boot the Kubuntu boot iso.

    Choose "try kubuntu" from the first menu.

    Once Kubuntu is running, open a shell

    sudo su root

    fdisk -l

    For me, the virtual disk was /dev/sda3, so...

    mkdir /mnt/drive
    mount /dev/sda3 /mnt/drive
    cd /mnt/drive/etc
    nano sudoers
    Add my username to the list by copying the root line and adding this:

    myuser ALL=(ALL:ALL) ALL


    Now I can install stuff.

    Comment


      #3
      Got to love Linux! Glad you solved your own problem. Welcome to KFN!
      Using Kubuntu Linux since March 23, 2007
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment

      Working...
      X