, All commands must be done as root (precede each command with sudo or use sudo su). , , Install Samba , , sudo apt-get update , sudo apt-get install samba , , Note: Samba uses a separate set of passwords than the standard Linux system accounts (stored in /etc/samba/smbpasswd) , , Set a password for your Samba user: sudo smbpasswd -a pete , , check samba users: sudo pdbedit -w -L , , Make a safe backup copy of the original smb.conf file to your home folder, in case you make an error , , sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak , , sudo nano /etc/samba/smb.conf , , Once DQsmb.confDQ has loaded, add this to the very end of the file: , , 2tb , comment = 2tb , path = /media/pete/2tb , browsable =yes , create mask = 0660 , directory mask = 0771 , writable = yes , guest ok = yes , , Restart the samba: systemctl restart smbd , , , Once Samba has restarted, use this command to check your smb.conf for any syntax errors , , testparm , , To access your network share , , sudo apt-get install smbclient , # List all shares: , smbclient -L localhost , # connect: , smbclient /// -U , ,