Add path to be shared to /etc/samba/smb.conf (see server/smb.conf file)
Restart service (see server/restart.service.sh file)
Mount the share (see client/mount.sh file)
Add share to fstab (see client/fstab file)
Create .smbcredentials file to avoid directly providing password
- Make sure
.smbcredentialshas600priviledges - Replace all
[XYZ]constants (such as[IP]) with proper values - In case of any
Permission deniederrors try to change proviledges to shared folder on server to770andchgrpto proper group (serverusersin case of this example)