I need to change group membership for a bunch of users.
How do I
- list all users?
- change multiple users to
nogroup
primary group? - add secondary/auxiliary groups to multiple users?
Basically I need to change all the users that are currently in the clients
group to nogroup
and add clients
as an auxiliary group to them.
Can this be done via shell without individually editing each user?