Antonio Nikolic
2002-Aug-25 12:52 UTC
[Samba] strange: failing upload of special profile-dirs
Hi to everyone, Something quite strange occured to me this weekend as we wanted to switch our network to w2k ads structure with a sambaserver as main fileserver running winbind. The windowsprofiles are supposed to reside on the sambaserver and the client successfully loads the initial profile. The first time the user logs on to his machine, he gets some default .msi-softwarepackages assigned by the Domaincontroller, which are partly installed or just advertised. A set of folders is created in the application-directory on top of the user's profile-directory. Here is the stucture taken (with du) from the sambaserver, after it has been updated to the fileserver: ./Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C} ./Anwendungsdaten/Microsoft/Installer/{2153B9A4-B05E-4654-B332-611B443791A6} In these directory I can find one or two exe files, obviously containg the icons of the advertised software. If the user logs off and the client tries to write the profile data back to the server, I get the errormessage stating that the above mentioned directories could not be written, for the path would not have been found. The directories in fact are created but the exe-files are not copied to the server. Everything else is in place! I already tried with chmod -R 777 just to make sure permissions aren't all messed up. But actually it is just these dirs; everything else successfully is uploaded so permissions could not be that bad, do they? Where else is the problem? It really occurs only to these directories. Maybe it has something to do with the SID-like directory-syntax? Or maybe there are too many characters in the absolute server path on linux? (Is there any limitation?): 0 samba_data/resources/homes/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C} 0 samba_data/resources/homes/muellerr/Anwendungsdaten/Microsoft/Installer/{2153B9A4-B05E-4654-B332-611B443791A6} But if I connect via smbclient, I am able to put a file in exactly one of these directories... Here are the logfile outputs actually take only with debuglevel of 3. ---snip !!! Here, everything seems to work until..... Transaction 501 of length 76 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1621) call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 257 [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1708) call_trans2qfilepathinfo muellerr/Anwendungsdaten/Microsoft/Internet Explorer level=257 call=7 total_data=0 [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 502 of length 120 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2setfilepathinfo(2396) call_trans2setfilepathinfo(8) muellerr/Anwendungsdaten/Microsoft/Internet Explorer info_level=257 totdata=40 [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 503 of length 45 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBclose (pid 665) [2002/08/24 13:26:52, 3] smbd/reply.c:reply_close(3016) close directory fnum=13247 [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 504 of length 172 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBntcreateX (pid 665) !!__________ HERE IS IT, I guess: [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}] [2002/08/24 13:26:52, 3] smbd/dosmode.c:unix_mode(111) unix_mode(muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}) returning 0744 [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}] [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(91) error string = No such file or directory [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(110) error packet at smbd/nttrans.c(870) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_PATH_NOT_FOUND [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 505 of length 163 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}] [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}] [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1697) call_trans2qfilepathinfo: vfs_stat of muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C} failed (No such file or directory) [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(91) error string = No such file or directory [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(110) error packet at smbd/trans2.c(1699) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 506 of length 172 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBntcreateX (pid 665) [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}] [2002/08/24 13:26:52, 3] smbd/dosmode.c:unix_mode(111) unix_mode(muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}) returning 0744 [2002/08/24 13:26:52, 3] smbd/dosmode.c:unix_mode(111) unix_mode(muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}) returning 0755 [2002/08/24 13:26:52, 2] smbd/open.c:open_directory(1155) open_directory: unable to create muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}. Error was No such file or directory [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(91) error string = No such file or directory [2002/08/24 13:26:52, 3] smbd/error.c:error_packet(110) error packet at smbd/nttrans.c(795) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_PATH_NOT_FOUND [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 507 of length 104 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten] [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten] [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1708) call_trans2qfilepathinfo muellerr/Anwendungsdaten level=257 call=5 total_data=0 [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 508 of length 104 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten] [2002/08/24 13:26:52, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten] [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1708) call_trans2qfilepathinfo muellerr/Anwendungsdaten level=257 call=5 total_data=0 [2002/08/24 13:26:52, 3] smbd/process.c:process_smb(877) Transaction 509 of length 104 [2002/08/24 13:26:52, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:52, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) ---snip and few lines later... first everything's still fine... [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2setfilepathinfo(2396) call_trans2setfilepathinfo(8) muellerr/Anwendungsdaten/Microsoft/Internet Explorer/prf34B.tmp info_level=257 totdata=40 [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) Transaction 1939 of length 132 [2002/08/24 13:26:53, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1708) call_trans2qfilepathinfo muellerr/Anwendungsdaten/Microsoft/Internet Explorer level=257 call=5 total_data=0 [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) Transaction 1940 of length 180 [2002/08/24 13:26:53, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 !! but then: (here are the .exe files I mentioned!! [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}/IconA0D6358E.exe] [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1685) call_trans2qfilepathinfo: check_name of muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}/IconA0D6358E.exe failed (Success) [2002/08/24 13:26:53, 3] smbd/error.c:error_packet(110) error packet at smbd/trans2.c(1687) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) Transaction 1941 of length 181 [2002/08/24 13:26:53, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}/IconA0D6358E1.exe] [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1685) call_trans2qfilepathinfo: check_name of muellerr/Anwendungsdaten/Microsoft/Installer/{A0D6358E-30FB-44D2-BCCB-25800005B23C}/IconA0D6358E1.exe failed (Success) [2002/08/24 13:26:53, 3] smbd/error.c:error_packet(110) error packet at smbd/trans2.c(1687) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) Transaction 1942 of length 9492 [2002/08/24 13:26:53, 3] smbd/process.c:switch_message(684) switch message SMBwriteX (pid 665) [2002/08/24 13:26:53, 3] smbd/reply.c:reply_write_and_X(2851) writeX fnum=13655 num=9424 wrote=9424 [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) Transaction 1943 of length 132 [2002/08/24 13:26:53, 3] smbd/process.c:switch_message(684) switch message SMBtrans2 (pid 665) [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1676) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 257 [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [/muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:53, 3] lib/util.c:unix_clean_name(387) unix_clean_name [muellerr/Anwendungsdaten/Microsoft/Internet Explorer] [2002/08/24 13:26:53, 3] smbd/trans2.c:call_trans2qfilepathinfo(1708) call_trans2qfilepathinfo muellerr/Anwendungsdaten/Microsoft/Internet Explorer level=257 call=5 total_data=0 [2002/08/24 13:26:53, 3] smbd/process.c:process_smb(877) ---snip And here is my smb.conf: [global] server string = Datenserver IBK netbios name = hobbes workgroup = odin security = domain password server = garfield encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 log file = /var/log/samba/log.smbd syslog = 0 debug level = 3 winbind separator = + winbind uid = 10000-20000 winbind gid = 10000-20000 winbind enum users = yes winbind enum groups = yes template shell = /bin/bash template homedir = /home/%D/%U character set = ISO8859-1 client code page = 850 load printers = no veto files = /*.nws/riched20.dll/*.vbs [store] comment = Testfreigabe path = /store [homes] comment = Homeverzeichnisse + Profile path = /samba_data/resources/homes/ writeable = yes browseable = yes wide links = yes veto files = /*.exe/*.com/*.bat locking = yes nt acl support = no Maybe this problem has been talked about before, but I didn't know what exactly to search for... Can anyone figre out what all of this does mean? than you and greetz, tony.n