Bug 10987 - process_usershare_file: stat of /var/lib/samba/usershares/netlogo failed. No such file or directory
Summary: process_usershare_file: stat of /var/lib/samba/usershares/netlogo failed. No ...
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.6.6
Hardware: x64 Linux
: P5 trivial
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 15:54 UTC by Marco Gaiarin
Modified: 2018-05-31 19:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Gaiarin 2014-12-05 15:54:09 UTC
After upgrading from debian squeeze to debian wheezy (samba version 3.6.6-6+deb7u4; but i get the same thing on a newly installed debian wheezy server), i can see on the logs many row like:

[2014/11/29 09:29:07.026230,  0] param/loadparm.c:9114(process_usershare_file)
  process_usershare_file: stat of /var/lib/samba/usershares/netlogo failed. No such file or directory

note that:

1) i've no 'usershares' defined in smb.conf:
 root@armitage:~# testparm | grep usershare
 Load smb config files from /etc/samba/smb.conf
 rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
 Can't find include file /etc/samba/smb.conf.
 Processing section "[printers]"
 Processing section "[print$]"
 Processing section "[netlogon]"
 Processing section "[larpch]"
 Processing section "[homes]"
 Processing section "[profiles]"
 Processing section "[wpkg]"
 Processing section "[Users]"
 Loaded services file OK.
 Server role: ROLE_DOMAIN_BDC
 Press enter to see a dump of your service definitions

2) note the missing last character, eg '/var/lib/samba/usershares/netlogo' and not '/var/lib/samba/usershares/netlogon'.

Apart log flood, all works as expected, it is only annying.

Thanks.
Comment 1 Mathieu Parent 2018-05-31 10:03:16 UTC
There are two problems here:
- share name is truncated
- log is too verbose

This was also reported at https://bugs.debian.org/900396.
Comment 2 Mathieu Parent 2018-05-31 10:09:13 UTC
Also note that Debian changes the default of "usershare max shares" from 0 to 100.

Ref: https://salsa.debian.org/samba-team/samba/blob/master/debian/patches/usershare.patch
Comment 3 Björn Jacke 2018-05-31 10:17:35 UTC
thanks Mathieu for pointing this out, I'm closing this bug accordingly.
Comment 4 Mathieu Parent 2018-05-31 19:10:35 UTC
I'm not sure this should be closed. There are still those two issues (see comment 1).