Setup Network Shares
Install Samba 🔗
sudo apt install samba
Configure Samba 🔗
- Backup Samba Config
sudo cp /etc/samba/smb.conf ~
- Create folder for share
mkdir ~/folder_to_share
- Edit config see pattern below of config file after you open it
sudo nano /etc/samba/smb.conf
- Restart samba for changes to take effect
sudo service smbd restart
Permissions 🔗
IMPORTANT: ENSURE THE USER HAS PERMISSIONS TO ALL PARENT FOLDERS LEADING TO THE SHARED FOLDER.
Permissions are controlled using OS Users and Groups see User and Groups for how to add users and put them into groups. Typically, you’ll want to use special purpose users that are not able to log in locally. Also you probably want to set their logon password to something unusable like a random string of characters.
Set samba password for a user 🔗
sudo smbpasswd -a user
See users configured to use samba 🔗
Leave off -v
if you do not want verbose output
sudo pdbedit -L -v