Android zugriff auf smb Share

Hallo,

Versuche mit einem Android Handy / Tablet auf Samba- Shares zuzugreifen.

Auf Samba3 funktioniert es Problemlos, aber auf Samba4 nicht! Ich kann zwar browsen, aber keine Dateien öffnen. Das öffnen bricht sofort mein einem Fehler ab.

Habe bereits verschiedenste Apps probiert, wie zB. Anttek, CifsExplorer.

Samba- LogFile beim öffnen einer Datei:

... ... ... push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017506, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017539, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017581, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017612, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017633, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017664, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017705, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017729, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017749, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017780, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017817, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017840, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017860, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2013/02/19 13:01:39.017939, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.017976, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.018067, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.018111, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.018194, 1, pid=26840] ../source3/smbd/service.c:891(make_connection_snum) 192.168.178.254 (ipv4:192.168.178.254:56444) connect to service Daten initially as user TOM+thomas (uid=2007, gid=5001) (pid 26840) [2013/02/19 13:01:39.018308, 3, pid=26840] ../source3/smbd/reply.c:999(reply_tcon_and_X) tconX service=DATEN [2013/02/19 13:01:39.023816, 3, pid=26840] ../source3/smbd/process.c:1790(process_smb) Transaction 4 of length 88 (0 toread) [2013/02/19 13:01:39.023889, 3, pid=26840] ../source3/smbd/process.c:1393(switch_message) switch message SMBtrans2 (pid 26840) conn 0x1e00ab0 [2013/02/19 13:01:39.023940, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.023982, 4, pid=26840] ../source3/smbd/vfs.c:816(vfs_ChDir) vfs_ChDir to /var/daten/daten [2013/02/19 13:01:39.024036, 4, pid=26840] ../source3/smbd/vfs.c:827(vfs_ChDir) vfs_ChDir got /var/daten/daten [2013/02/19 13:01:39.024081, 3, pid=26840] ../source3/smbd/trans2.c:2350(call_trans2findfirst) call_trans2findfirst: dirtype = 16, maxentries = 200, close_after_first=0, close_if_end = 0 requires_resume_key = 0 backup_priv = 0 level = 0x104, max_data_bytes = 65535 [2013/02/19 13:01:39.024190, 3, pid=26840] ../source3/smbd/vfs.c:1118(check_reduced_name) check_reduced_name [*] [/var/daten/daten] [2013/02/19 13:01:39.024235, 3, pid=26840] ../source3/smbd/vfs.c:1248(check_reduced_name) check_reduced_name: * reduced to /var/daten/daten/* [2013/02/19 13:01:39.024415, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024455, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024477, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024520, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024590, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024622, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024644, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.277532, 3, pid=26840] ../source3/smbd/vfs.c:1118(check_reduced_name) check_reduced_name [Neues Textdokument.txt] [/var/daten/daten] [2013/02/19 13:01:40.277569, 3, pid=26840] ../source3/smbd/vfs.c:1248(check_reduced_name) check_reduced_name: Neues Textdokument.txt reduced to /var/daten/daten/Neues Textdokument.txt [2013/02/19 13:01:40.277816, 3, pid=26840] ../source3/smbd/dosmode.c:160(unix_mode) unix_mode(Neues Textdokument.txt) returning 0666 [2013/02/19 13:01:40.277947, 4, pid=26840] ../source3/smbd/open.c:2423(open_file_ntcreate) calling open_file with flags=0x0 flags2=0x0 mode=0666, access_mask = 0x89, open_access_mask = 0x89 [2013/02/19 13:01:40.278033, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278063, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278084, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278206, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278248, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278272, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278292, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278364, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278407, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278432, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278460, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278532, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278572, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278597, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278617, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278703, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278769, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278797, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278818, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:40.278851, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:40.278990, 2, pid=26840] ../source3/smbd/open.c:914(open_file) TOM+thomas opened file Neues Textdokument.txt read=Yes write=No (numopen=1) [2013/02/19 13:01:40.290768, 3, pid=26840] ../source3/smbd/process.c:1790(process_smb) Transaction 7 of length 63 (0 toread) [2013/02/19 13:01:40.290857, 3, pid=26840] ../source3/smbd/process.c:1393(switch_message) switch message SMBreadX (pid 26840) conn 0x1e00ab0 [2013/02/19 13:01:40.290885, 4, pid=26840] ../source3/smbd/uid.c:296(change_to_user) Skipping user change - already user [2013/02/19 13:01:40.290922, 3, pid=26840] ../source3/smbd/error.c:82(error_packet_set) NT error packet at ../source3/smbd/reply.c(3943) cmd=46 (SMBreadX) NT_STATUS_INVALID_PARAMETER [2013/02/19 13:01:40.298765, 3, pid=26840] ../source3/smbd/process.c:1790(process_smb) Transaction 8 of length 45 (0 toread) [2013/02/19 13:01:40.298859, 3, pid=26840] ../source3/smbd/process.c:1393(switch_message) switch message SMBclose (pid 26840) conn 0x1e00ab0 [2013/02/19 13:01:40.298888, 4, pid=26840] ../source3/smbd/uid.c:296(change_to_user) Skipping user change - already user [2013/02/19 13:01:40.298914, 3, pid=26840] ../source3/smbd/reply.c:4979(reply_close) Close file fd=13 fnum 23573 (numopen=1) [2013/02/19 13:01:40.299027, 2, pid=26840] ../source3/smbd/close.c:850(close_normal_file) TOM+thomas closed file Neues Textdokument.txt (numopen=0) NT_STATUS_OK [2013/02/19 13:01:39.024758, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024784, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024806, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024861, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024914, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.024941, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.024962, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.025047, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.025096, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.025122, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.025144, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.025215, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.025308, 4, pid=26840] ../source3/smbd/sec_ctx.c:216(push_sec_ctx) push_sec_ctx(2007, 5001) : sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.025340, 4, pid=26840] ../source3/smbd/uid.c:406(push_conn_ctx) push_conn_ctx(15434) : conn_ctx_stack_ndx = 0 [2013/02/19 13:01:39.025362, 4, pid=26840] ../source3/smbd/sec_ctx.c:316(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2013/02/19 13:01:39.025394, 4, pid=26840] ../source3/smbd/sec_ctx.c:424(pop_sec_ctx) pop_sec_ctx (2007, 5001) - sec_ctx_stack_ndx = 0 [2013/02/19 13:01:39.025450, 3, pid=26840] ../source3/smbd/dir.c:663(dptr_create) creating new dirptr 256 for path ., expect_close = 1 [2013/02/19 13:01:39.025478, 4, pid=26840] ../source3/smbd/trans2.c:2522(call_trans2findfirst) dptr_num is 256, wcard = *, attr = 22 [2013/02/19 13:01:39.025706, 3, pid=26840] ../source3/smbd/dir.c:1136(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found ./. fname=. (.) [2013/02/19 13:01:39.025822, 3, pid=26840] ../source3/locking/share_mode_lock.c:408(fetch_share_mode_unlocked) Could not fetch share entry [2013/02/19 13:01:39.025856, 3, pid=26840] ../source3/smbd/dir.c:1136(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found ./.. fname=.. (..) [2013/02/19 13:01:39.025951, 3, pid=26840] ../source3/locking/share_mode_lock.c:408(fetch_share_mode_unlocked) Could not fetch share entry [2013/02/19 13:01:39.025980, 3, pid=26840] ../source3/smbd/dir.c:1136(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found ./Neues Textdokument.txt fname=Neues Textdokument.txt (Neues Textdokument.txt) [2013/02/19 13:01:39.026062, 3, pid=26840] ../source3/smbd/dir.c:1136(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[*] found ./Neuer Ordner fname=Neuer Ordner (Neuer Ordner) [2013/02/19 13:01:39.026133, 4, pid=26840] ../source3/smbd/trans2.c:2632(call_trans2findfirst) SMBtrans2 mask=* directory=. dirtype=22 numentries=4 [2013/02/19 13:01:39.032373, 3, pid=26840] ../source3/smbd/process.c:1790(process_smb) Transaction 5 of length 41 (0 toread) [2013/02/19 13:01:39.032412, 3, pid=26840] ../source3/smbd/process.c:1393(switch_message) switch message SMBfindclose (pid 26840) conn 0x1e00ab0 [2013/02/19 13:01:39.032437, 4, pid=26840] ../source3/smbd/uid.c:296(change_to_user) Skipping user change - already user [2013/02/19 13:01:39.032463, 3, pid=26840] ../source3/smbd/trans2.c:8501(reply_findclose) reply_findclose, dptr_num = 256 [2013/02/19 13:01:39.032486, 4, pid=26840] ../source3/smbd/dir.c:259(dptr_close_internal) closing dptr key 256 [2013/02/19 13:01:39.032521, 3, pid=26840] ../source3/smbd/trans2.c:8507(reply_findclose) SMBfindclose dptr_num = -3 [2013/02/19 13:01:40.277340, 3, pid=26840] ../source3/smbd/process.c:1790(process_smb) Transaction 6 of length 136 (0 toread) [2013/02/19 13:01:40.277419, 3, pid=26840] ../source3/smbd/process.c:1393(switch_message) switch message SMBntcreateX (pid 26840) conn 0x1e00ab0 [2013/02/19 13:01:40.277449, 4, pid=26840] ../source3/smbd/uid.c:296(change_to_user) Skipping user change - already user

Ziemlich weit unten ist zu sehen:

[2013/02/19 13:01:40.290922, 3, pid=26840] ../source3/smbd/error.c:82(error_packet_set) NT error packet at ../source3/smbd/reply.c(3943) cmd=46 (SMBreadX) NT_STATUS_INVALID_PARAMETER

Schon jemand Erfahrung mit Samba4 & Android?

Habe nun auf einem debian samba4.0.2 kompiliert, und dort getestet, leider gleicher Fehler :(…

// Edit:
Verwende ich wieder das alte smb Backend anstatt von s3fs, funktioniert der Zugriff plötzlich:

+smb -s3fs

// Edit:
Zur Info: Ich habe nun eine E-Mail an die Samba Liste geschickt.

Mastodon