Lost some groups on my system

Christopher Lemire christopher.lemire at gmail.com
Fri Aug 27 10:33:09 UTC 2010


On Fri, Aug 27, 2010 at 5:29 AM, Christopher Lemire <
christopher.lemire at gmail.com> wrote:

>
>
> On Thu, Aug 26, 2010 at 10:26 PM, Jordon Bedwell <jordon at envygeeks.com>wrote:
>
>>   On 8/26/2010 9:30 PM, Christopher Lemire wrote:
>> > Hello Ubuntu users, I was trying to change the groups the git user (I
>> > created for a git repository) belonged to. I thought I was changing
>> which
>> > groups that user belonged to but I ended up removing a lot of groups
>> from my
>> > system. Now I can't use sudo because one of the groups, admin, was
>> deleted.
>> > I made a temporary fix to that by enabling the root user account and
>> using
>> > it when needed. How can I restore to default? I thought that dpkg
>> > --configure -a would do it, but it did not.
>> >
>>
>> You should have /etc/groups.orig and /etc/passwd.orig I don't remember
>> the command off the top of my head but there is a command to do it too,
>> try searching for it in /sbin and /usr/sbin
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
> 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.
>
> Anyways, I do not have any original files created.
>
> chris at lucid:~/Downloads$ su -
> Password:
> root at lucid:~# updatedb
> updatedb: can not find group `mlocate'
> root at lucid:~# locate group.org
> root at lucid:~# locate groups.org
> root at lucid:~# locate passwd.org
> root at lucid:~# find /etc/ -name "group.org\|groups.org\|passwd.org"
> root at lucid:~#
>
> --
> Christopher Lemire <christopher.lemire at gmail.com>
> Ubuntu 64 bit Linux Raid Level 0
>
> gpg --recv-keys E13B0909
>
> Key fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F 18B3 E13B 0909
>

I just realized I typed the file names wrong.

root at lucid:~# locate groups.orig
root at lucid:~# locate group.orig
root at lucid:~# locate passwd.orig
root at lucid:~# find /etc/ -name "group.orig\|groups.orig\|passwd.orig"
root at lucid:~#

-- 
Christopher Lemire <christopher.lemire at gmail.com>
Ubuntu 64 bit Linux Raid Level 0

gpg --recv-keys E13B0909

Key fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F 18B3 E13B 0909
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100827/f15807e0/attachment.html>


More information about the ubuntu-users mailing list