Hi everyone, I have the exact same problem as this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154 But the Samba version is different and much newer (Debian Wheezy 2:4.1.17+dfsg-1~bpo70+1). B asically many errors appear about non existing usershares. These fake usershares are just the user name, but truncated of the last character. process_usershare_file: stat of /var/lib/samba/usershares/netlogo failed. No such file or directory There are so many messages that the server performance drops dramatically! Our friend L.P.H. van Belle (who lurks here, I know) did an answer to this bug report that I don't completely understand, though. So this isn't a bug, alright. What is causing this? Are the client machines trying to access these shares, or create it? I don't understand either (or find in the documentation) how to disable these usershares. Any help and explanation appreciated. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180525/be667d78/attachment.sig>
I forgot the smb.conf, but really there's nothing special in there. Other machines with similar settings don't show such errors. ; ; /etc/samba/smb.conf ; ; Sample configuration file for the Samba suite for Debian GNU/Linux ; ; Please see the manual page for smb.conf for detailed description of ; every parameter. ; [global] block size = 4096 disable spoolss = yes dns proxy = no domain master = no encrypt passwords = true guest account = nobody idmap gid = 10000-20000 idmap uid = 10000-20000 invalid users = root load printers = no local master = no max log size = 1000 name resolve order = wins lmhosts host bcast nt acl support = yes obey pam restrictions = yes os level = 20 panic action = /usr/share/samba/panic-action %d passdb backend = tdbsam passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . passwd program = /usr/bin/passwd %u preferred master = no preserve case = yes printcap name = /dev/null printing = bsd security = user server string = %h server (Samba %v) short preserve case = yes syslog = 0; syslog only = no template shell = /bin/false unix password sync = yes winbind cache time = 10 winbind enum groups = yes winbind enum users = yes winbind separator = + wins server = 127.0.0.1 wins support = no workgroup = WORKGROUP [Masters] writeable = yes path = /mnt/raid/Masters Le Fri, 25 May 2018 17:39:24 +0200 Emmanuel Florac via samba <samba at lists.samba.org> écrivait:> Hi everyone, > > I have the exact same problem as this: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154 >-- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180525/e0a84b31/attachment.sig>
On Fri, 25 May 2018 17:39:24 +0200 Emmanuel Florac via samba <samba at lists.samba.org> wrote:> > Hi everyone, > > I have the exact same problem as this: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154 > > But the Samba version is different and much newer (Debian > Wheezy 2:4.1.17+dfsg-1~bpo70+1). B > > asically many errors appear about non existing usershares. These fake > usershares are just the user name, but truncated of the last > character. > > process_usershare_file: stat of /var/lib/samba/usershares/netlogo > failed. No such file or directory > > > There are so many messages that the server performance drops > dramatically! > > Our friend L.P.H. van Belle (who lurks here, I know) did an answer > to this bug report that I don't completely understand, though. So this > isn't a bug, alright. What is causing this? Are the client machines > trying to access these shares, or create it? > > I don't understand either (or find in the documentation) how to > disable these usershares. Any help and explanation appreciated. >If you must use such an old EOL version of Samba, try what it says in that Debian bugreport. A better cure would be to update Samba to a currently supported version (4.6.x, 4.7.x or 4.8.x) Rowland
Le Fri, 25 May 2018 16:55:04 +0100 Rowland Penny via samba <samba at lists.samba.org> écrivait:> > > > I don't understand either (or find in the documentation) how to > > disable these usershares. Any help and explanation appreciated. > > > > If you must use such an old EOL version of Samba, try what it says in > that Debian bugreport. A better cure would be to update Samba to a > currently supported version (4.6.x, 4.7.x or 4.8.x) >That was my plan initially, but the bug report is about Samba 3.6, and Louis said "it's not a bug, it's a feature". As apparently the problem still is the same with a 4.1 version, so I'm wondering if upgrading will help much... if that's a configuration problem that I don't really understand. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180525/2e657a74/attachment.sig>
On Fri, 25 May 2018 17:54:49 +0200 Emmanuel Florac via samba <samba at lists.samba.org> wrote:> > I forgot the smb.conf, but really there's nothing special in there. > Other machines with similar settings don't show such errors. > > > ; > ; /etc/samba/smb.conf > ; > ; Sample configuration file for the Samba suite for Debian GNU/Linux > ; > ; Please see the manual page for smb.conf for detailed description of > ; every parameter. > ; > > [global] > block size = 4096 > disable spoolss = yes > dns proxy = no > domain master = no > encrypt passwords = true > guest account = nobody > idmap gid = 10000-20000 > idmap uid = 10000-20000 > invalid users = root > load printers = no > local master = no > max log size = 1000 > name resolve order = wins lmhosts host bcast > nt acl support = yes > obey pam restrictions = yes > os level = 20 > panic action = /usr/share/samba/panic-action %d > passdb backend = tdbsam > passwd chat = *Enter\snew\sUNIX\spassword:* %n\n > *Retype\snew\sUNIX\spassword:* %n\n . > passwd program = /usr/bin/passwd %u > preferred master = no > preserve case = yes > printcap name = /dev/null > printing = bsd > security = user > server string = %h server (Samba %v) > short preserve case = yes > syslog = 0; > syslog only = no > template shell = /bin/false > unix password sync = yes > winbind cache time = 10 > winbind enum groups = yes > winbind enum users = yes > winbind separator = + > wins server = 127.0.0.1 > wins support = no > workgroup = WORKGROUP >Nice standalone server, is it supposed to be one ? If it is, then you don't need the deprecated 'idmap gid' & 'idmap uid' Also you are telling Samba to use the wins server running on 127.0.0.1 and then telling Samba not to start its wins server, this is extremely odd. Rowland
Le Fri, 25 May 2018 16:55:04 +0100 Rowland Penny via samba <samba at lists.samba.org> écrivait:> > > > I don't understand either (or find in the documentation) how to > > disable these usershares. Any help and explanation appreciated. > > > > If you must use such an old EOL version of Samba, try what it says in > that Debian bugreport. A better cure would be to update Samba to a > currently supported version (4.6.x, 4.7.x or 4.8.x)Oh ahd there is another server with the same version that doesn't have the problem... decidedly weird. -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180525/2a524f67/attachment.sig>
Hi Emmanuel,> > I have the exact same problem as this: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154 > > But the Samba version is different and much newer (Debian > Wheezy 2:4.1.17+dfsg-1~bpo70+1). B > > asically many errors appear about non existing usershares. These fake > usershares are just the user name, but truncated of the last character. > > process_usershare_file: stat of /var/lib/samba/usershares/netlogo > failed. No such file or directoryIt is not a bug per se, but I'd say it does not have the best default parameter value. Try adding the following parameter in your [global] section (the default value here is 100 on my Debian package) and restart smbd: [global] .... usershare max shares = 0 Cheers, Denis> There are so many messages that the server performance drops > dramatically! > > Our friend L.P.H. van Belle (who lurks here, I know) did an answer > to this bug report that I don't completely understand, though. So this > isn't a bug, alright. What is causing this? Are the client machines > trying to access these shares, or create it? > > I don't understand either (or find in the documentation) how to disable > these usershares. Any help and explanation appreciated. > > >-- Denis Cardon Tranquil IT Systems Les Espaces Jules Verne, bâtiment A 12 avenue Jules Verne 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.55 http://www.tranquil.it Samba install wiki for Frenchies : https://dev.tranquil.it WAPT, software deployment made easy : https://wapt.fr
On Fri, May 25, 2018 at 07:01:53PM +0200, Denis Cardon via samba wrote:> Hi Emmanuel, > > > > > I have the exact same problem as this: > > > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154 > > > > But the Samba version is different and much newer (Debian > > Wheezy 2:4.1.17+dfsg-1~bpo70+1). B > > > > asically many errors appear about non existing usershares. These fake > > usershares are just the user name, but truncated of the last character. > > > > process_usershare_file: stat of /var/lib/samba/usershares/netlogo > > failed. No such file or directory > > It is not a bug per se, but I'd say it does not have the best default > parameter value. Try adding the following parameter in your [global] section > (the default value here is 100 on my Debian package) and restart smbd: > > [global] > .... > usershare max shares = 0It was set to 100 so that desktop Linux users could use the file manager to right click and "Share As.." by default without configuring the server. Did that back when I was in Novell selling SuSE Linux.
Le Fri, 25 May 2018 19:01:53 +0200 Denis Cardon <dcardon at tranquil.it> écrivait:> It is not a bug per se, but I'd say it does not have the best default > parameter value. Try adding the following parameter in your [global] > section (the default value here is 100 on my Debian package) and > restart smbd: > > [global] > .... > usershare max shares = 0 >On thing I don't get is that this server is only accessed remotely and only through Samba. Can the users create shares remotely, through samba, using only the Windows explorer or the Mac Finder? -- ------------------------------------------------------------------------ Emmanuel Florac | Direction technique | Intellique | <eflorac at intellique.com> | +33 1 78 94 84 02 ------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Signature digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20180525/e0ff007b/attachment.sig>
Possibly Parallel Threads
- weird messages in logs
- wbinfo -i returns the same id for all users, authentication doesn't seem to go through winbind at all
- wbinfo -i returns the same id for all users, authentication doesn't seem to go through winbind at all
- Issues with mounting Samba shares after update
- wbinfo -i returns the same id for all users, authentication doesn't seem to go through winbind at all