https://pimylifeup.com/raspberry-pi-nas/ Install Samba sudo apt-get update sudo apt-get install samba samba-common-bin Create a directory to share Sudo mkdir -m 1777 /Data 1: sets the sticky bit. This set on a directory ensures that users can only delete files they own. 7: sets RWX read , write and execute for the user owner 7: sets RWX read , write and execute for the group owner 7: sets RWX read , write and execute for others Edit the Samba Config, smb.conf (Location is /etc/samba/smb.conf) Move the smb file to a backed up state so you can fall back to orig config. sudo mv /etc/samba/smb.conf /etc/samba/smb.conf/$(date +%F) ls /etc/samba/smb.conf.2019-XX-XX sudo bash grep -ve ^# -ve ‘^;’ -ve ^$ smb.conf.2103-11-26 > smb.conf Understanding the GREP Filter The command may look a little messy but is really useful to us. -ve ^# : First we remove lines that start with a # -ve ‘^;’ : The we do the same for lines beginning with ; Note the quotes here as the ; has other meanings so we escape the semi-colon in the quotes -ve ^$ : Finally we remove empty lines > : This is used to redirect the output to the new smb.conf. We go from and incredible 333 lines in the original file to a minute 34 lines in the new file. This way, the result is quick and we have not lost out documentation as it is in the backup. Adding a share definition edit /etc/samba/smb.conf and add /data directory [data] comment = Data share path = /data browseable = yes read only = no use "testparm" ? Restart Samba service Service samba restart Creating samba users smbpasswd -a root smbpasswd -a pi check samba users sudo pdbedit -L Test the connection w smbclient smbclient -L localhost