home       inleiding       sysadmin       services       links       bash       werk       nothing      

smb-server linux mint 17.3 ubuntu 14.04.4

link: http://old.linux800.be/lx-svs-info-samba.php
 
BUG report and solution:
 
syslog:

Jun  8 20:37:44 173 smbd[3131]:   Bad talloc magic value - access after free
Jun  8 20:37:44 173 smbd[3131]: [2016/06/08 20:37:44.348834,  0] ../source3/lib/
util.c:789(smb_panic_s3)
Jun  8 20:37:44 173 smbd[3131]:   PANIC (pid 3131): Bad talloc magic value - acc
ess after free
Jun  8 20:37:44 173 smbd[3131]: [2016/06/08 20:37:44.351223,  0] ../source3/lib/
util.c:900(log_stack_trace)
Jun  8 20:37:44 173 smbd[3131]:   BACKTRACE: 34 stack frames:

smbclient:

smb: \> get bestand 
getattrib: NT_STATUS_CONNECTION_DISCONNECTED
smb: \> SMBecho failed (NT_STATUS_CONNECTION_DISCONNECTED). The connection is disconnected now

solution:
$ sudo apt-get install libtalloc2

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  libtalloc2
1 upgraded, 0 newly installed, 0 to remove and 321 not upgraded.
Need to get 28,6 kB of archives.
After this operation, 16,4 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtalloc2 amd64 2.1.5-0ubuntu0.14.04.1 [28,6 kB]
Fetched 28,6 kB in 0s (383 kB/s)
(Reading database ... 184125 files and directories currently installed.)
Preparing to unpack .../libtalloc2_2.1.5-0ubuntu0.14.04.1_amd64.deb ...
Unpacking libtalloc2:amd64 (2.1.5-0ubuntu0.14.04.1) over (2.1.0-1) ...
Setting up libtalloc2:amd64 (2.1.5-0ubuntu0.14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

service restart:
$ sudo service smbd restart
smbd stop/waiting
smbd start/running, process 2346
$ sudo service nmbd restart
nmbd stop/waiting
nmbd start/running, process 2367

reason:
forgotten dependency in security update from april19 2016

... and now it works:

$ smbclient //localhost/onzeshare -U user
Enter user's password: 
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu]
smb: \> get bestand 
getting file \bestand of size 17 as bestand (0,9 KiloBytes/sec) (average 0,9 KiloBytes/sec)
smb: \> 

CASE CLOSED