Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

That happened after I managed to install Virtual Box.

I found a part of the answer here : I added my user to another group and then lost my user to sudoers group. The joke is I haven't any root or admin account - my current user was the sole user of my Ubuntu desktop.

share|improve this question
Drop to the root shell on boot and re-add yourself to the admin (adm) group. – Damn Terminal Jul 16 '13 at 23:44
What exactly did you do when adding to another group? What exact command did you run? For example the erroneous command usermod -G cdrom gert would remove me from all supplementary groups (including adm, sudo, etc.) and only add me to cdrom (besides the primary group). – gertvdijk Jul 16 '13 at 23:59


it is a common mistake that happens to many people. you probably missed -a flag in your command :)

This is the right command

sudo usermod -a -G vboxusers username

and this is probably what you typed (-a is keeps all your previous groups)

sudo usermod -G vboxusers username
share|improve this answer
Shame on me I probably did that mistake :( – Steve L Jul 17 '13 at 1:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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