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
.smbcredentials
has600
priviledges - Replace all
[XYZ]
constants (such as[IP]
) with proper values - In case of any
Permission denied
errors try to change proviledges to shared folder on server to770
andchgrp
to proper group (serverusers
in case of this example)