0 {{postValue.vote_count}}

How to add multiple user in samba using shell script

I have try to add multiple user in samba, by using shell script. But i got error while set smb password, if any one knows please help me to solve the issus. This is my shell script code

echo " \nmulti user adding process"
while read user
do
useradd $user
echo -e " $user@123\n" | smbpasswd $user -a
done < /root/user.txt

{{forumCtrl.question_commentErr}}

Your Answer
{{forumCtrl.responseErr}}