I have a windows 10 pc with a shared folder accessible to everyone.
no access problem from other windows pc, from hp netprinter and from android too.
when i try to acces from linux(I say linux because I tried from Oma/Rosa and Mint) it works only sometimes.
Here is a smbclient example where I can acces to the folder, but list give me different results(no file, some file, all file retrieved) in the same session:
smb: \> l
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing \*
smb: \> l
cli_list: Error: unable to parse name from info level 260
. D 0 Mon Mar 28 14:52:06 2016
.. D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:12 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:31 2016
59578 blocks of size 8388608. 51081 blocks available
smb: \> l
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing \*
smb: \> l
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing \*
smb: \> l
. D 0 Mon Mar 28 14:52:06 2016
.. D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:12 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:31 2016
scan0005.pdf A 693333 Sun Mar 27 10:47:20 2016
scan0006.pdf A 635813 Sun Mar 27 10:52:48 2016
scan0007.pdf A 239955 Mon Mar 28 13:01:57 2016
59578 blocks of size 8388608. 51081 blocks available
smb: \> l
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing \*
smb: \>
It seems a very unstable situation, but I do not know what depends
and what is the meaning of
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing \*
Same unstable result with dolphin/samba shares obviously.
Any idea?
I cannot test right now. Will try later.
Have you the same behaviour with smbclient4?
Could you try to launch smbclient[4] with a higher debug level? Let’s say -d 4
$ smbclient4 \\\\ELENA-PC\\SCANSIONI
Password for [BDEV\ilprof]:
smb: \> ls
. D 0 Mon Mar 28 14:52:06 2016
.. D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:13 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:32 2016
scan0005.pdf A 693333 Sun Mar 27 10:47:21 2016
scan0006.pdf A 635813 Sun Mar 27 10:52:49 2016
scan0007.pdf A 239955 Mon Mar 28 13:01:58 2016
122016255 blocks of size 4096. 104630468 blocks available
smb: \> ls
. D 0 Mon Mar 28 14:52:06 2016
.. D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:13 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:32 2016
scan0005.pdf A 693333 Sun Mar 27 10:47:21 2016
scan0006.pdf A 635813 Sun Mar 27 10:52:49 2016
scan0007.pdf A 239955 Mon Mar 28 13:01:58 2016
122016255 blocks of size 4096. 104630468 blocks available
smb: \> ls
. D 0 Mon Mar 28 14:52:06 2016
.. D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:13 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:32 2016
scan0005.pdf A 693333 Sun Mar 27 10:47:21 2016
scan0006.pdf A 635813 Sun Mar 27 10:52:49 2016
scan0007.pdf A 239955 Mon Mar 28 13:01:58 2016
122016255 blocks of size 4096. 104630468 blocks available
Here is smbclent with higher debug level:
$ smbclient -d4 \\ELENA-PC\SCANSIONI
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file “/etc/samba/smb.conf”
Processing section “[global]”
doing parameter workgroup = BDEV
doing parameter server string = Samba Server
doing parameter hosts allow = 192.168.0. 127.
doing parameter printcap name = /etc/printcap
doing parameter load printers = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter smb passwd file = /etc/samba/smbpasswd
doing parameter dns proxy = no
pm_process() returned Yes
added interface eth0 ip=192.168.0.101 bcast=192.168.0.255 netmask=255.255.255.0
Client started (version 4.1.21).
Enter ilprof’s password:
tdb(/var/lib/samba/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/gencache.tdb: Permesso negato
resolve_lmhosts: Attempting lmhosts lookup for name ELENA-PC<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name ELENA-PC<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name ELENA-PC<0x20>
Connecting to 192.168.0.169 at port 445
session request ok
Doing spnego session setup (blob length=320)
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
got principal=
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_NTLM2
NTLMSSP_NEGOTIATE_TARGET_INFO
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_NTLM2
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_NTLM2
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
Domain=[ELENA-PC] OS=[Windows 10 Home 10586] Server=[Windows 10 Home 6.3]
session setup ok
tconx ok
smb: > l
cli_list: Error: unable to parse name from info level 260
. D 0 Mon Mar 28 14:52:06 2016
… D 0 Mon Mar 28 14:52:06 2016
fatt.n.33 anno 2016.pdf A 838675 Sun Mar 27 08:59:12 2016
ordinanza 10.02.16 - notific.25.03.16.pdf A 1330173 Sun Mar 27 09:21:23 2016
scan0003.pdf A 257009 Sun Mar 27 09:06:31 2016
59578 blocks of size 8388608. 51089 blocks available
Total bytes listed: 2425857
smb: > l
cli_list: Error: unable to parse name from info level 260
NT_STATUS_NO_MEMORY listing *
so it seems a smbclient issue and probably also smb protocol use it somehow.
[quote=“luca, post:3, topic:366”]
tdb(/var/lib/samba/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/gencache.tdb: Permesso negato[/quote]
Maybe a cache problem?
Seriously, I’m not sure that is the real cause but smbclient4 doesn’t use this file. However you might try to run smbclient as root or change the permissions of /var/lib/samba/gencache.tdb.
| /var/run/samba/gencache.tdb: Permission denied
You should eb able to just ignore this. If the gencache tdb
can't be opened, we just won't use any name resolution caching.
But things should work as normal.
I just tested with W10 and I confirm the issue. The only useful info I found is this thread that suggests to compare the network traces. I had no time to do it.
It seems there is patch but but I don’t see it.
Anyway, for dolphin, the issue should be reported upstream. It could be worth testing with another distro before.