Hi,
Wanted to remove a user from a group , but no GUI , must use command line
Hi,
Wanted to remove a user from a group , but no GUI , must use command line
You can use the -G option to usermod to specify a comma separated list of secondary groups you want the user to be a member of - i.e. include all their previous secondary group memberships excluding the group you want to remove them from.
I always just vi /etc/group directly. Far easier than specifying a list of secondary groups to usermod.
Cheers,
ZB
Its a good idea to change /etc/group file. But, the changes to this file doesnt get into effect immediately. For example, if root delete an user from a group, the user has to logout and login back to get the changes into effect.
Any suggestions for instant update of changes made??