0

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

CentOS Samba Chgrp (Change Group) Add a comment
wyatt
asked Jun 02 2018

Answer

0

You can use the below command for your requirement

useradd -a -G group_name user_name
Add a comment
parthiban
asked Jun 11 2018
edited Oct 05 2018
Post your Answer