gpasswd
Table of Contents
1. Remove user alan from group foo
gpasswd -d alan foo
2. Check integrity of /etc/group
It will prompt if changes are needed
grpck
alan from group foogpasswd -d alan foo
/etc/groupIt will prompt if changes are needed
grpck