First, install Samba:
sudo apt-get install samba
Now, you have to setup Samba to be accessed only by your user (that we'll call whatyouhide
). First, be sure that the whatyouhide
Unix user exists. Then, set a Samba password for it:
sudo smbpasswd -a whatyouhide
You can now add all the shares you want and restrict them to the whatyouhide
Samba user. In /etc/samba/smb.conf
:
[hard-drives]
comment = All hard drives
path = /mnt
read only = no
writeable = yes
browseable = yes
valid users = whatyouhide
create mask = 0755
directory mask = 0755
Restart the Sambda daemon and you're done.
sudo service smbd restart
These steps are taken from this AskUbuntu answer.