Samba errors in syslog

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Cito
Level 1
Level 1
Posts: 23
Joined: Fri Jun 15, 2018 12:20 pm

Samba errors in syslog

Post by Cito » Tue Jul 17, 2018 7:04 pm

Everything works, I can access the shared directory from any pc on network but Linux Mint 19 gives error message when I do. It also gives error messages when Microsoft Security Essentials runs.

Jul 17 18:45:24 cito smbd[9880]: [2018/07/17 18:45:24.278045, 0] ../source3/param/loadparm.c:3350(process_usershare_file)
Jul 17 18:45:24 cito smbd[9880]: process_usershare_file: stat of /var/lib/samba/usershares/downloads failed. Permission denied
Jul 17 18:45:24 cito smbd[9880]: [2018/07/17 18:45:24.285159, 0] ../source3/param/loadparm.c:3350(process_usershare_file)
Jul 17 18:45:24 cito smbd[9880]: process_usershare_file: stat of /var/lib/samba/usershares/music failed. Permission denied
Jul 17 18:45:24 cito smbd[9880]: [2018/07/17 18:45:24.287995, 0] ../source3/param/loadparm.c:3350(process_usershare_file)
Jul 17 18:45:24 cito smbd[9880]: process_usershare_file: stat of /var/lib/samba/usershares/documents failed. Permission denied


Permission on /var/lib/samba directory
drwxr-xr-x 6 root root 4096 Jul 12 20:43 samba

Permission inside the /var/lib/samba/ directory
eric@cito /var/lib/samba $ ls -la
total 1384
drwxr-xr-x 6 root root 4096 Jul 12 20:43 .
drwxr-xr-x 88 root root 4096 Jul 15 16:45 ..
-rw------- 1 root root 421888 Jan 17 2017 account_policy.tdb
-rw------- 1 root root 696 Jan 17 2017 group_mapping.tdb
drwxr-xr-x 10 root root 4096 Jul 12 20:43 printers
drwxr-xr-x 6 root root 4096 Jul 14 20:59 private
-rw------- 1 root root 528384 Jul 12 21:15 registry.tdb
-rw------- 1 root root 421888 Jul 17 18:45 share_info.tdb
drwxrwx---+ 3 root 3000000 4096 Jul 20 2017 sysvol
drwxrwx--T 2 root sambashare 4096 Jul 15 19:27 usershares
-rw-r--r-- 1 root root 205 Jul 20 2017 wins.dat
-rw------- 1 root root 8192 Jul 20 2017 wins.tdb
Permission inside the /var/lib/samba/usershares/ directory
eric@cito /var/lib/samba/usershares $ ls -la
total 20
drwxrwx--T 2 root sambashare 4096 Jul 15 19:27 .
drwxr-xr-x 6 root root 4096 Jul 12 20:43 ..
-rw-r--r-- 1 eric eric 101 Jul 15 19:26 documents
-rw-r--r-- 1 eric eric 127 Jul 15 19:26 downloads
-rw-r--r-- 1 eric eric 121 Jul 15 19:27 music



testparm -s output
eric@cito ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
client max protocol = NT1
dns proxy = No
log file = /var/log/samba/log.%m
map to guest = Bad User
max log size = 1000
name resolve order = bcast wins lmhosts
obey pam restrictions = Yes
os level = 255
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
preferred master = Yes
server role = standalone server
server signing = if_required
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb


[homes]
browseable = No
comment = Home Directories
create mask = 0700
directory mask = 0700
valid users = eric



Anyone have a clue to fix the permission denied errors in the logfile?

I haven't noticed any problems to be honest. I can still copy to and from the shared directories.

The directories are shared using Nemo's right click directory and share capability in my own user account.


I'd love to get rid of the permission denied errors.

Post Reply

Return to “Software & Applications”