Hello Chuck, Another thing you can do is to pass init=/bin/bash to the kernel via grub at boot time. / will be mounted ro; remount it and /tmp rw and then edit /etc/group (vi /etc/group, vigroup (sp?), or use usermod by mounting /usr as well). This is why it is a good idea to use grub passwords on public machines ;-). -Adam On May 10, 2006, at 10:24 AM, Chuck Noyes wrote:
Hi All,
I'm running ubuntu (brezzy), and I just shot myself in the foot....
I went to add my username to a new group, but forgot to include the other groups that I belong to in the command. The command I used was 'sudo usermod -G <new-group> <my-username>'. Now I only belong to <new-group>. That removed my username from the other groups I belonged to, including the admin group.
Is there a way undo what I did? I do have a copy of /etc/group before the change.
Thanks, -Chuck _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug