How to add specific User for access samba sharing
Need to create Users and you can share directory of that particular user with others. For more detail please follow describe steps.
For Create user and allow user to access directoey of ubuntu over your local network.
sudo adduser --shell /bin/false xp_user
sudo passwd xp_user
sudo smbpasswd -a xp_user ## same password!!
sudo mkdir /home/samba
sudo mkdir /home/samba/xp_user
sudo chmod -R 777 /home/samba
sudo chown xp_user:xp_user /home/samba/xp_user
in /etc/samba/smb.conf
[xp_user]
path = /home/samba/xp_user
force group = xp_user
read only = no
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777
guest ok = yes
(Note this is as leaky as sieve so fine tune permissions once you get it to work. The above to 0770.)
sudo vi /etc/group $$ or whatever text editor you like
xp_user:x:1001:john,tom,alan etc,etc
sudo service smbd restart