diff --git a/SambaInstall.md b/SambaInstall.md index 7571e8d..19abf8e 100644 --- a/SambaInstall.md +++ b/SambaInstall.md @@ -9,6 +9,9 @@ sudo apt install samba smbclient cifs-utils samba-vfs-modules -y mkdir public touch /home/canary/public/finance.xlsx + +sudo chown $USER:$USER public +sudo chmod 755 -R public ``` 3. Edit Samba config file ```bash @@ -54,8 +57,11 @@ sudo nano /etc/samba/smb.conf guest ok = yes read only = yes browseable = yes + force user = canary ``` -4. Edit Rsyslog +4. Set rights (follow instructions) +sudo smbpasswd -a canary +5. Edit Rsyslog ```bash #Backup original file sudo mv /etc/rsyslog.conf /etc/rsyslog.conf.backup @@ -101,7 +107,7 @@ $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # # Set the default permissions for all log files. # -$FileOwner root +$FileOwner syslog $FileGroup adm $FileCreateMode 0640 $DirCreateMode 0755 @@ -162,7 +168,7 @@ mail.err /var/log/mail.err ```bash sudo touch /var/log/samba-audit.log -sudo chown root:adm /var/log/samba-audit.log +sudo chown syslog:adm /var/log/samba-audit.log ``` 6. Reboot device to apply all changes