Add in the end of the file /etc/samba/smb.conf
[samba]
comment = samba_share
path = /real_path/to/share
read only = no
guest ok = no
valid users user1,user2 (or @users for access group user to access samba share folder)
In a above uncheck line:
security user
With root access in new shell write this:
smbpasswd -a user1
If user1 not in group users write this:
usermod -a -G users user1
Create folder /real_path/to/share and write:
chmod -R 770 share
chown -R test:users share
If you whant to check somebody connect in samba share write this:
smbstatus