Marco Gaiarin
2018-Mar-21 10:02 UTC
[Samba] log error about permissions in truncated share path...
In syslog of my DC (2:4.5.12+dfsg-2+deb9u2~bpo8+1) i found sometime rows like: Mar 21 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 09:53:40.826081, 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat of /var/lib/samba/usershares/sysvo failed. Permesso negato Mar 21 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 09:53:40.831949, 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat of /var/lib/samba/usershares/sysvo failed. File o directory non esistente Mar 21 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 09:53:40.837642, 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat of /var/lib/samba/usershares/sysvo failed. File o directory non esistente Mar 21 09:57:21 vdcsv1 smbd[22696]: [2018/03/21 09:57:21.521431, 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 09:57:21 vdcsv1 smbd[22696]: process_usershare_file: stat of /var/lib/samba/usershares/sysvo failed. Permesso negato all works as expected, and the strange came from the truncated path (/var/lib/samba/usershares/sysvo: it misses ever the last char) and the italian locale ('Permesso negato': access denied; 'File o directory non esistente': file or folder not available). What happens? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà , 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Rowland Penny
2018-Mar-21 10:53 UTC
[Samba] log error about permissions in truncated share path...
On Wed, 21 Mar 2018 11:02:02 +0100 Marco Gaiarin via samba <samba at lists.samba.org> wrote:> > In syslog of my DC (2:4.5.12+dfsg-2+deb9u2~bpo8+1) i found sometime > rows like: > > Mar 21 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 09:53:40.826081, > 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 > 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat > of /var/lib/samba/usershares/sysvo failed. Permesso negato Mar 21 > 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 09:53:40.831949, > 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 > 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat > of /var/lib/samba/usershares/sysvo failed. File o directory non > esistente Mar 21 09:53:40 vdcsv1 smbd[22686]: [2018/03/21 > 09:53:40.837642, > 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 > 09:53:40 vdcsv1 smbd[22686]: process_usershare_file: stat > of /var/lib/samba/usershares/sysvo failed. File o directory non > esistente Mar 21 09:57:21 vdcsv1 smbd[22696]: [2018/03/21 > 09:57:21.521431, > 0] ../source3/param/loadparm.c:3244(process_usershare_file) Mar 21 > 09:57:21 vdcsv1 smbd[22696]: process_usershare_file: stat > of /var/lib/samba/usershares/sysvo failed. Permesso negato > > all works as expected, and the strange came from the truncated path > (/var/lib/samba/usershares/sysvo: it misses ever the last char) and > the italian locale ('Permesso negato': access denied; 'File o > directory non esistente': file or folder not available). > > What happens? Thanks. >I think you need to post your smb.conf, I (at least) am struggling to understand why you have moved 'sysvol' from /var/lib/samba/ to /var/lib/samba/usershare/, it isn't a usershare! Rowland
Marco Gaiarin
2018-Mar-21 16:35 UTC
[Samba] log error about permissions in truncated share path...
Mandi! Rowland Penny via samba In chel di` si favelave...> I think you need to post your smb.conf, I (at least) am struggling to > understand why you have moved 'sysvol' from /var/lib/samba/ > to /var/lib/samba/usershare/, it isn't a usershare!I've not done that! root at vdcsv1:/home# samba-tool testparm Press enter to see a dump of your service definitions # Global parameters [global] netbios name = VDCSV1 realm = AD.FVG.LNF.IT server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate workgroup = LNFFVG check password script = /etc/samba/sapascosy-cps password hash gpg key ids = AAAAAAAAAAAAAAAAAAA server role = active directory domain controller template homedir = /home/%U template shell = /bin/bash idmap_ldb:use rfc2307 = yes [netlogon] path = /var/lib/samba/sysvol/ad.fvg.lnf.it/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No I can disable 'usershares'? -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bontà , 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)