0

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....????

oliver
asked Jan 30, 2017
1 Answer
0

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...!!!!

View More
jagan
answered Jan 30, 2017
Your Answer
||||
 
100:0

Related News in Adding multiple users to group in Samba

Related News in Adding multiple users to group in Samba