This was a small and simple recipe to add a user to a group, and to check the groups to which a user belongs. Once you know the group a user belongs to, you can treat that user in a certain way. I have not included the commands with syntax as they are the same as those of the previous ones; a complete set of commands is available in the code files.