I did 'sudo usermod -G' instead of '-a -G'
Fire Sam
ubuntu at e17th.com
Tue Aug 2 18:26:48 UTC 2011
On Tue, Aug 2, 2011 at 2:04 PM, PleegWat <pleegwat at telfort.nl> wrote:
> On 08/02/2011 07:45 PM, Firesam wrote:
>
>>
>> I accidently usermod without appened. I only realised the next time I
>> tried sudo and was not in sudoers. I was able to fix it by booting into
>> root account and usermod -a -G admin<user>. My question is what else
>> did I break that needs fixing? Is there a file that might be backed up
>> that I can replace?
>>
>>
>> These are the groups I'm in on my system, apart from the one equal to my
> username:
>
> adm dialout cdrom plugdev lpadmin admin sambashare vboxusers mythtv
>
> The file to back up is /etc/group
>
> PleegWat
I guess each system will be a little different. What about using the GUI
and under users and groups setting account type to administrator? Would
that restore all the default groups? Right now it is custom with only
the groups i manually added from cli.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110802/0ab2dbf7/attachment.html>
More information about the ubuntu-users
mailing list