Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

That happened after I managed to install Virtual Box.

I found a part of the answer here : http://ubuntuforums.org/showthread.php?t=1376802. 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
add comment

1 Answer 1

Yes

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
add comment

Your Answer

 
discard

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.