brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: id shows the groups you have now, so new permissions need a new login

Permissions
~/tips/tip-permissions-id-groups-after-usermod

id

Compares the groups of the current session with the groups stored for the account.

After usermod -aG docker alice the permissions are still denied. The running session simply does not have the new group yet.

id
id -nG alice
newgrp docker

id shows the groups of the current process, and id -nG alice shows what the group database says for the account. If the two lists differ, log out and in again, or start a shell with the group using newgrp. A service has the same problem: restart it after you change its user’s groups.

Further reading: id manual page

More Permissions tips sudo su -s /bin/bash www-data sudo setfacl -R -d -m g:media:rwX /srv/media sudo cp -r /srv/site /srv/site.r ls -ln /srv/data newgrp media All Permissions tips (30) All topics

Link