I have added my user to the users group using the following command:
sudo usermod -a -G users foo
However, when I then type the id -Gn
command it is not showing the user as being part of the users group. I then try the following and it says it is apart of the users group:
getent group | grep users
Also tried simple id foo command and says it is part of it as well. Why is it not showing in my secondary groups when I use id -Gn
?