Protect the samba shares under Volumio

Hello,

I have volumio (1.55) distribution on a Raspberry PI 2 with a E10K DAC.

I would like to protect all of my samba shares.

For the moment, I have tried to edit the /etc/samba/smb.conf and add the line

#guest account = root
security = user


#and under each share
valid users = root, volumio, chaz

root and volumio work well but the user chaz doesn’t work

I have create the user with useradd command (useradd -s /bin/false -d /dev/null chaz)
and then I add the user on samba with the command “smbpasswd -a chaz”.

I don’t have a solution for the moment.

Anyone have a solution? Regards

I find a solution,

under samba 4 it is’nt “smbpassword” to add a user but “pdbedit” to add a user correctly.

pdbedit -a user_name

after, test it with the command “smbclient”.