<p>Add a dummy account, copy the default groups, then remove the account.  Do not directly edit /etc/groups on a modern system as that can hose shadow group files, etc.  Ben, your command was just missing the -a.<br>
On Nov 30, 2011 2:38 PM, "Marshal Newrock" <<a href="mailto:marshal@zordio.com">marshal@zordio.com</a>> wrote:<br>
><br>
> On Wed, 30 Nov 2011 14:08:56 -0500<br>
> Clay Dowling <<a href="mailto:clay@lazarusid.com">clay@lazarusid.com</a>> wrote:<br>
><br>
> > On 11/30/11 11:58 AM, Ben Chavez wrote:<br>
> > > Hi Linux Users.<br>
> > > I would appreciate an advice, my problem started when I was trying<br>
> > > to add my user to a new group. The command I issued was usermod -G<br>
> > > groupname username. However the usermod -G removed my user from the<br>
> > > all other groups I was in, as result when I type my login info I am<br>
> > > not able to access anything. I would like to issue the command<br>
> > > again but I am not sure what is the syntax I should be typing to<br>
> > > gain full access to everything again. I will appreciate your help.<br>
> > > Thank you in advance.<br>
> > I don't have my box in front of me at the moment, so I'm not sure what<br>
> > groups you should be a member of on a typical Linux box.<br>
> ><br>
> > In the future, however, you should just edit /etc/groups to add<br>
> > yourself to a group.  It's usually safer.<br>
><br>
> Even better is using gpasswd, eg 'gpasswd -a user group' to add a user<br>
> to a group.<br>
><br>
> Probably you have a group with the same name as your username that you<br>
> need to belong to.  In addition, on my computer, 'groups' tell me:<br>
> cdrom floppy sudo audio dip video plugdev netdev fuse<br>
><br>
> Marshal<br>
><br>
> --<br>
> Marshal Newrock<br>
> Zordio, LLC - <a href="http://www.zordio.com">http://www.zordio.com</a><br>
><br>
> _______________________________________________<br>
> linux-user mailing list<br>
> <a href="mailto:linux-user@egr.msu.edu">linux-user@egr.msu.edu</a><br>
> <a href="http://mailman.egr.msu.edu/mailman/listinfo/linux-user">http://mailman.egr.msu.edu/mailman/listinfo/linux-user</a><br>
><br>
</p>