sudo apt-get install samba
sudo apt-get install samba-common-binBack up and edit config file
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo vim /etc/samba/smb.confAppend this config file and add the following lines:
[hdd]
comment = 1TB shared HDD
path = /mnt/hdd
writeable = Yes
browsable = Yes
public = Yes
force user = nitishchange nitish to your username.
You can goto \192.168.1.150\hdd to view folder contents.