Update SambaInstall.md

This commit is contained in:
2024-12-21 17:00:35 +01:00
parent 4926633173
commit 5090a5574c
+9 -3
View File
@@ -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