Files
lk/system/managing_groups.md
2025-08-13 22:09:12 +02:00

624 B

title, tags
title tags
Managing Groups
system

Check which groups you are in, and which are available:

cat /etc/group
groups
cat /etc/group | grep $USER

Remove yourself from all groups, and add yourself back to only wheel, audio, and your own group:

sudo usermod --groups wheel,audio,$USER

Add yourself to the docker group:

su root -c "usermod --append --groups docker $USER"

Add yourself to the network group:

sudo usermod -aG network $USER

The changes have not taken effect, so log into your own account again with su:

groups
sudo su $USER
groups