AMP AMP
AMP
0
AMP

Adding multiple users to group in Samba

I have created the new group in samba and i need to add 24 users in that group.....

Is that possible with any command....????

Samba Add a comment
a sample image
oliver
asked Jan 30 2017

Answer

AMP
0
AMP

You can use gpasswd command as follows, # gpasswd -M user1,user2,user3,.....,user24 group_name Orelse the below script may help you.....

# !/bin/sh for USER in user1 user2 user3 user4 .... user24; do usermod -G group_name $USER done

Jus run this script, it will add the respective users to that group...!!!!

Add a comment
a sample image
jagan
asked Jan 30 2017
edited Oct 05 2018
Post your Answer