This what TCLUG is for!
I'm glad you got everything figured out too.

 I guess /etc/sudoers has my name rather than uid listed, so I was in, made
> changes, golden.
>

As far as I understand, */etc/sudoers* assigns privileges bases on user
name and group name.
So, yes. You don't have to worry about your *uid* or your *gid* in that
regard.

-> Jake

On Wed, Jun 13, 2012 at 2:14 PM, Mike Miller <mbmiller+l at gmail.com> wrote:

> On Wed, 13 Jun 2012, Mike Miller wrote:
>
>  I had somehow accidentally created two copies of the group "staff", one
>> with gid 50 and another with gid 1000.  So I wanted to get rid of the one
>> with gid 1000 and change everyone over to the group with gid 50.
>>
>> When I edited /etc/passwd, I changed every :1000: to :50: because when I
>> looked at the file I thought they were all groups, but it turns out that
>> exactly one was not -- it was my uid.  So I changed my record in the passwd
>> file such that my uid is now 50 instead of 1000, but I am logged in as
>> 1000, which no longer exists.  So when I try to sudo, it won't let me,
>> always saying:
>>
>> sudo: unknown uid: 1000
>>
>> I suppose I can boot to Live CD and change the /etc/passwd file
>> appropriately.  Is there any easier way to do it?
>>
>
>
> Yes - figured it out.  I logged in remotely via ssh via my username.  It
> then assigned me to the new uid I had created.  I guess /etc/sudoers has my
> name rather than uid listed, so I was in, made changes, golden.
>
> Sorry to bug you with this!
>
>
> Mike
> ______________________________**_________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/**mailman/listinfo/tclug-list<http://mailman.mn-linux.org/mailman/listinfo/tclug-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20120613/23fc51d2/attachment-0001.html>