Through Virtualbox didn't allow me use USB because my account wasn't a vboxuser group, I've to run this command:

$sudo usermod -G vboxusers brallan

After I needed to access to superuser privileges and wasn't impossible. I'm the only user in my computer and simply I can't have administrator permission. What can I do?


PD.: when I try to use $sudo <command> I obtain this: brallan is not in the sudoers file. This incident will be reported. It's IMPOSSIBLE to use sudo command.


In virtual box, right click your virtual machine and go to settings. Change settings to use the host's CD drive and enable boot from CD. Now insert Ubuntu live CD in your disk drive and start your virtual machine. It would boot from the CD/DVD and start live Ubuntu session. Mount your virtual harddisk and edit the sudoers file on the virtual harddisk. So if you mounted the virtual HD to /mnt/vhdd then the sudoers file will be at /mnt/vhdd/etc/sudoers. Edit this file and add the following line to its end

brallan     ALL=(ALL) ALL

Save this file and shutdown the virtual machine. Remove the CD from the drive and start the virtual machine. Things should be back to normal now and you should now have sudo rights for everything.

Sorry but I missunderstood the question. I thought the problem was with guest OS and not host. For host computer you can boot your computer from live CD and follow the same steps i.e mount your hdd and edit sudoers file and add the above mentioned line to to it to grant user brallan sudo rights.

  • @enzotib well then he should do the same for host i.e boot from live cd and grant brallan sudo access. not very difficult to translate these steps to host, is it? – binW Jan 5 '12 at 8:21
  • Excellent! I've the power again XD. Thank you very much. – Brallan Aguilar Jan 5 '12 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.