johnridley: (antikythera)
[personal profile] johnridley
it's "sudo usermod -aG (groups) user"

Do not forget the "a". Otherwise this group list will REPLACE the old groups.

You don't want to get kicked out of the sudo group, really. But if you do, boot to a live CD, then mkdir /ubuntu, mount (linux root) /ubuntu, chroot /ubuntu, then you can usermod -aG sudo user.

Date: 2009-11-23 04:38 am (UTC)
From: [identity profile] erikvolson.livejournal.com
Ahh, Linux. Needing special tools to edit /etc/group, and forgetting that the "can become root" group is called "wheel".



Date: 2009-11-23 11:59 am (UTC)
From: [identity profile] johnridley.livejournal.com
I could rename "admin" to "wheel" but it's just words. Blame Stallman. Everyone else does.

I have hand edited group before, the commands are just easier. The one they warn you about is hand editing sudoers.

June 2025

S M T W T F S
1234567
891011121314
15161718192021
2223242526 2728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 17th, 2025 10:15 pm
Powered by Dreamwidth Studios