I have one user, which has one primary group & one secondary group, like:
[ testuser Welcome ~ ]$ id uid=2000(testuser) gid=2000(testuser) groups=2000(testuser),27(sudo),2001(testgroup)
Primary group is
testuser & secondary group is
Now, I try to add one more secondary group testgroup2 to that user with below command
usermod -G testgroup2 testuser
but it removed the previous secondary group (
testgroup) & added the new one. My need is that previous secondary group should not be removed & the new secondary group should be added.
I saw in ubuntu, there is one option like
-a which can append the group to user without removing the other group.
Please let me know is it also possible on suse linux or not...?