<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 5:29 AM, Christopher Lemire <span dir="ltr"><<a href="mailto:christopher.lemire@gmail.com">christopher.lemire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div dir="ltr"><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 26, 2010 at 10:26 PM, Jordon Bedwell <span dir="ltr"><<a href="mailto:jordon@envygeeks.com" target="_blank">jordon@envygeeks.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>  On 8/26/2010 9:30 PM, Christopher Lemire wrote:<br>
> Hello Ubuntu users, I was trying to change the groups the git user (I<br>
> created for a git repository) belonged to. I thought I was changing which<br>
> groups that user belonged to but I ended up removing a lot of groups from my<br>
> system. Now I can't use sudo because one of the groups, admin, was deleted.<br>
> I made a temporary fix to that by enabling the root user account and using<br>
> it when needed. How can I restore to default? I thought that dpkg<br>
> --configure -a would do it, but it did not.<br>
><br>
<br>
</div>You should have /etc/groups.orig and /etc/passwd.orig I don't remember<br>
the command off the top of my head but there is a command to do it too,<br>
try searching for it in /sbin and /usr/sbin<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br></div></div>I do have an automatic backup that was made I did not know about, not the original. The auto backups were replaced when I added back the admin group. If I had known about the automatic backups, I would have preserved them.<br>


<br>Anyways, I do not have any original files created.<br><br>chris@lucid:~/Downloads$ su -<br>Password: <br>root@lucid:~# updatedb <br>updatedb: can not find group `mlocate'<br>root@lucid:~# locate <a href="http://group.org" target="_blank">group.org</a><br>


root@lucid:~# locate <a href="http://groups.org" target="_blank">groups.org</a><br>root@lucid:~# locate <a href="http://passwd.org" target="_blank">passwd.org</a><br>root@lucid:~# find /etc/ -name "<a href="http://group.org" target="_blank">group.org</a>\|<a href="http://groups.org" target="_blank">groups.org</a>\|<a href="http://passwd.org" target="_blank">passwd.org</a>"<br>


root@lucid:~# <br><div class="im"><br>-- <br>Christopher Lemire <<a href="mailto:christopher.lemire@gmail.com" target="_blank">christopher.lemire@gmail.com</a>><br>Ubuntu 64 bit Linux Raid Level 0<br><br>gpg --recv-keys E13B0909<br>

<br>Key fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F 18B3 E13B 0909<br>

</div></div>
</blockquote></div><br>I just realized I typed the file names wrong. <br clear="all"><br>root@lucid:~# locate groups.orig<br>root@lucid:~# locate group.orig<br>root@lucid:~# locate passwd.orig<br>root@lucid:~# find /etc/ -name "group.orig\|groups.orig\|passwd.orig"<br>

root@lucid:~# <br><br>-- <br>Christopher Lemire <<a href="mailto:christopher.lemire@gmail.com">christopher.lemire@gmail.com</a>><br>Ubuntu 64 bit Linux Raid Level 0<br><br>gpg --recv-keys E13B0909<br><br>Key fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F 18B3 E13B 0909<br>


</div>