I have several users say: A,B,C,D, etc. and 2 group: master, slave.
Each user belongs to only one of these groups (exclusively).
How can I programmatically change this belonging?
For example: user A belongs to group “master”
How to remove it from group “master” and add it to group “slave”?
From the man page of
usermod:If for some reason this isn’t pre-installed on your system it is a command from the
pwdutilspackage.