Samba : gpasswd deletes old group users

Hi there, i have a small issue while adding the group users into my samba server. Here in my Scenario my Samba Server has a group called office, under the office group i have added some users (let's consider it as old users). And when i am try to add some new users using below command, the old users get removed and new users only added

 

gpasswd -M user21,user22 office

So, is there any other command? for adding users into a group but without deleting the old users in that group

Tags: CentOS Samba Chgrp (Change Group)
user image Author :   wyatt
0

You can use the below command for your requirement

useradd -a -G group_name user_name
user image
parthiban June 12, 2018
Add comment