When using Samba on Linux, there are times that you want to allow user to have a private user directory, but do not want the “homes” directory share to show up. This is relatively simple.
Edit your /etc/samba/smb.conf file with your favorite Linux editor.
Look for the section [homes] and find the line
set this line to browseable = no
Restart Samba (>service smb restart) and your users should now see their personal directory without seeing the homes share.
If you do not have a [homes] section, here is an example on for you –>
hide dot files = no
comment = Home Directories
writeable = yes
delete readonly = yes
valid users = %S
browseable = no