johnridley (
johnridley) wrote2009-11-22 12:58 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Note to self...
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.
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.
no subject
no subject
I have hand edited group before, the commands are just easier. The one they warn you about is hand editing sudoers.