# We don't want to force the wrong permissions, e.g. remove +x on scripts # The only real requirement is for users to have write access to the directories, # which is set by group 'sambashare' and 'g+s' directory permissions # Execution of scripts due to access misconfiguration can be avoided by umask. fix-permissions: find ./share -type d -not -group sambashare -exec sudo chmod g+rxs {} \; find ./share -type f -not -group sambashare -exec sudo chmod g+r {} \; sudo chown -R :sambashare ./share reload: sudo smbcontrol smbd reload-config restart: sudo systemctl restart smbd nmbd config: sudo vim /etc/samba/smb.conf backup: ....