-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ~ Dear List, ~ My Win2k and WinXP workstations are endlessly complaining about can't ~ create central copy of the user profile, because of ..., or something ~ like that (in hungarian). When I'm trying, even as root to change the ~ acls of anything in the profile share I get an error, with other shares ~ this is working perfectly (I have ACLs enabled, on XFS fs). My profiles ~ related lines from smb.conf: ~ [global] ~ domain master = yes ~ domain logons = yes ~ logon script = %U.bat ~ logon path = \\%L\Profiles\%U ~ passdb backend = tdbsam smbpasswd guest # the same happens with ldapsam ~ dos charset = CP852 ~ unix charset = ISO8859-2 ~ csc policy = disable ~ profile acls = yes #the same happens without this ~ log file = /var/log/samba3/log.%m ~ log level = 10 ~ max log size = 50 ~ [Profiles] ~ path = /var/lib/samba3/profiles ~ browseable = no ~ guest ok = yes ~ root preexec = PROFILE=/var/lib/samba3/profiles/%u; if [ ! -e $PROFILE ~ ]; then mkdir -pm700 $PROFILE; chown %u.%g $PROFILE; fi # Without this ~ workstation complains about not founding an user profile, and loging in ~ with local copy, then saying that it cannot be found, and loging in with ~ a temporary one. ~ ls -ald /var/lib/samba3/profiles/ gives: ~ drwxrwxrwt 3 root root 18 okt 21 15:19 /var/lib/samba3/profiles/ ~ I've attached a level 10 log of the part with clients communication, which in my opinion could be related to the profile: [2003/10/21 15:20:29, 10] lib/util.c:dump_data(1825) ~ [000] 00 6F 00 EC 03 00 00 00 00 5C 00 6B 00 69 00 6E .o.?.... .\.k.i.n ~ [010] 00 67 00 61 00 5C 00 4E 00 54 00 55 00 53 00 45 .g.a.\.N .T.U.S.E ~ [020] 00 52 00 2E 00 44 00 41 00 54 00 00 00 .R...D.A .T... [2003/10/21 15:20:29, 3] smbd/process.c:switch_message(685) ~ switch message SMBtrans2 (pid 23269) [2003/10/21 15:20:29, 4] smbd/uid.c:change_to_user(122) ~ change_to_user: Skipping user change - already user [2003/10/21 15:20:29, 3] smbd/trans2.c:call_trans2qfilepathinfo(1915) ~ call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(114) ~ unix_convert called on file "\kinga\NTUSER.DAT" [2003/10/21 15:20:29, 3] lib/util.c:unix_clean_name(580) ~ unix_clean_name [/kinga/NTUSER.DAT] [2003/10/21 15:20:29, 10] smbd/statcache.c:stat_cache_lookup(251) ~ stat_cache_lookup: lookup failed for name [KINGA/NTUSER.DAT] [2003/10/21 15:20:29, 10] smbd/statcache.c:stat_cache_lookup(281) ~ stat_cache_lookup: lookup succeeded for name [KINGA] -> [kinga] [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(188) ~ unix_convert begin: name = kinga/NTUSER.DAT, dirpath = kinga, start NTUSER.DAT [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(323) ~ New file NTUSER.DAT [2003/10/21 15:20:29, 8] lib/util.c:is_in_path(1473) ~ is_in_path: kinga/NTUSER.DAT [2003/10/21 15:20:29, 8] lib/util.c:is_in_path(1477) ~ is_in_path: no name list. [2003/10/21 15:20:29, 3] lib/util.c:unix_clean_name(580) ~ unix_clean_name [kinga/NTUSER.DAT] [2003/10/21 15:20:29, 3] smbd/trans2.c:call_trans2qfilepathinfo(1934) ~ call_trans2qfilepathinfo: SMB_VFS_STAT of kinga/NTUSER.DAT failed (No such file or directory) [2003/10/21 15:20:29, 10] smbd/trans2.c:set_bad_path_error(1802) ~ set_bad_path_error: err = 2 bad_path = 0 [2003/10/21 15:20:29, 3] smbd/error.c:error_packet(94) ~ error string = No such file or directory [2003/10/21 15:20:29, 3] smbd/error.c:error_packet(118) ~ error packet at smbd/trans2.c(1808) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND [2003/10/21 15:20:29, 5] lib/util.c:show_msg(456) [2003/10/21 15:20:29, 5] lib/util.c:show_msg(466) ~ size=35 ~ smb_com=0x32 ~ smb_rcls=52 ~ smb_reh=0 ~ smb_err=49152 ~ smb_flg=136 ~ smb_flg2=51265 ~ smb_tid=1 ~ smb_pid=616 ~ smb_uid=112 ~ smb_mid=12416 ~ smt_wct=0 ~ smb_bcc=0 [2003/10/21 15:20:29, 6] lib/util_sock.c:write_socket(407) ~ write_socket(5,39) [2003/10/21 15:20:29, 6] lib/util_sock.c:write_socket(410) ~ write_socket(5,39) wrote 39 [2003/10/21 15:20:29, 10] lib/util_sock.c:read_smb_length_return_keepalive(463) ~ got smb length of 120 [2003/10/21 15:20:29, 6] smbd/process.c:process_smb(889) ~ got message type 0x0 of len 0x78 [2003/10/21 15:20:29, 3] smbd/process.c:process_smb(890) ~ Transaction 196 of length 124 [2003/10/21 15:20:29, 5] lib/util.c:show_msg(456) [2003/10/21 15:20:29, 5] lib/util.c:show_msg(466) ~ size=120 ~ smb_com=0xa2 ~ smb_rcls=0 ~ smb_reh=0 ~ smb_err=0 ~ smb_flg=24 ~ smb_flg2=51207 ~ smb_tid=1 ~ smb_pid=616 ~ smb_uid=112 ~ smb_mid=12480 ~ smt_wct=24 ~ smb_vwv[ 0]= 255 (0xFF) ~ smb_vwv[ 1]=57054 (0xDEDE) ~ smb_vwv[ 2]= 8704 (0x2200) ~ smb_vwv[ 3]= 4096 (0x1000) ~ smb_vwv[ 4]= 0 (0x0) ~ smb_vwv[ 5]= 0 (0x0) ~ smb_vwv[ 6]= 0 (0x0) ~ smb_vwv[ 7]= 0 (0x0) ~ smb_vwv[ 8]= 4097 (0x1001) ~ smb_vwv[ 9]= 0 (0x0) ~ smb_vwv[10]= 0 (0x0) ~ smb_vwv[11]= 0 (0x0) ~ smb_vwv[12]= 0 (0x0) ~ smb_vwv[13]= 0 (0x0) ~ smb_vwv[14]= 0 (0x0) ~ smb_vwv[15]= 1792 (0x700) ~ smb_vwv[16]= 0 (0x0) ~ smb_vwv[17]= 256 (0x100) ~ smb_vwv[18]= 0 (0x0) ~ smb_vwv[19]= 0 (0x0) ~ smb_vwv[20]= 8192 (0x2000) ~ smb_vwv[21]= 512 (0x200) ~ smb_vwv[22]= 0 (0x0) ~ smb_vwv[23]= 0 (0x0) ~ smb_bcc=37 [2003/10/21 15:20:29, 10] lib/util.c:dump_data(1825) ~ [000] 00 5C 00 6B 00 69 00 6E 00 67 00 61 00 5C 00 4E .\.k.i.n .g.a.\.N ~ [010] 00 54 00 55 00 53 00 45 00 52 00 2E 00 44 00 41 .T.U.S.E .R...D.A ~ [020] 00 54 00 00 00 .T... [2003/10/21 15:20:29, 3] smbd/process.c:switch_message(685) ~ switch message SMBntcreateX (pid 23269) [2003/10/21 15:20:29, 4] smbd/uid.c:change_to_user(122) ~ change_to_user: Skipping user change - already user [2003/10/21 15:20:29, 10] smbd/nttrans.c:reply_ntcreate_and_X(601) ~ reply_ntcreateX: flags = 0x10, desired_access = 0x100100 file_attributes = 0x0, share_access = 0x7, create_disposition = 0x1 create_options = 0x200000 root_dir_fid = 0x0 [2003/10/21 15:20:29, 10] smbd/nttrans.c:map_create_disposition(343) ~ map_create_disposition: Mapped create_disposition 0x1 to 0x1 [2003/10/21 15:20:29, 10] smbd/nttrans.c:map_share_mode(424) ~ map_share_mode: FILE_SHARE_DELETE requested. open_mode = 0x8000 [2003/10/21 15:20:29, 10] smbd/nttrans.c:map_share_mode(469) ~ map_share_mode: Mapped desired access 0x100100, share access 0x7, file attributes 0x0 to open_mode 0x8040 [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(114) ~ unix_convert called on file "\kinga\NTUSER.DAT" [2003/10/21 15:20:29, 3] lib/util.c:unix_clean_name(580) ~ unix_clean_name [/kinga/NTUSER.DAT] [2003/10/21 15:20:29, 10] smbd/statcache.c:stat_cache_lookup(251) ~ stat_cache_lookup: lookup failed for name [KINGA/NTUSER.DAT] [2003/10/21 15:20:29, 10] smbd/statcache.c:stat_cache_lookup(281) ~ stat_cache_lookup: lookup succeeded for name [KINGA] -> [kinga] [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(188) ~ unix_convert begin: name = kinga/NTUSER.DAT, dirpath = kinga, start NTUSER.DAT [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled(269) ~ is_mangled NTUSER.DAT ? [2003/10/21 15:20:29, 10] smbd/mangle_hash2.c:is_mangled_component(208) ~ is_mangled_component NTUSER.DAT (len 10) ? [2003/10/21 15:20:29, 5] smbd/filename.c:unix_convert(323) ~ New file NTUSER.DAT [2003/10/21 15:20:29, 3] smbd/dosmode.c:unix_mode(110) ~ unix_mode(kinga/NTUSER.DAT) returning 0744 [2003/10/21 15:20:29, 5] smbd/files.c:file_new(122) ~ allocated file structure 6269, fnum = 10365 (1 used) [2003/10/21 15:20:29, 10] smbd/open.c:open_file_shared1(848) ~ open_file_shared: fname = kinga/NTUSER.DAT, share_mode = 8040, ofun 1, mode = 744, oplock request = 0 [2003/10/21 15:20:29, 8] lib/util.c:is_in_path(1473) ~ is_in_path: kinga/NTUSER.DAT [2003/10/21 15:20:29, 8] lib/util.c:is_in_path(1477) ~ is_in_path: no name list. [2003/10/21 15:20:29, 3] lib/util.c:unix_clean_name(580) ~ unix_clean_name [kinga/NTUSER.DAT] [2003/10/21 15:20:29, 4] smbd/open.c:open_file_shared1(1014) ~ calling open_file with flags=0x0 flags2=0x0 mode=0744 [2003/10/21 15:20:29, 5] smbd/files.c:file_free(385) ~ freed files structure 10365 (0 used) [2003/10/21 15:20:29, 10] smbd/trans2.c:set_bad_path_error(1802) ~ set_bad_path_error: err = 2 bad_path = 0 [2003/10/21 15:20:29, 3] smbd/error.c:error_packet(94) ~ error string = No such file or directory [2003/10/21 15:20:29, 3] smbd/error.c:error_packet(118) ~ error packet at smbd/trans2.c(1808) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_NAME_NOT_FOUND [2003/10/21 15:20:29, 5] lib/util.c:show_msg(456) [2003/10/21 15:20:29, 5] lib/util.c:show_msg(466) ~ size=35 ~ smb_com=0xa2 ~ smb_rcls=52 ~ smb_reh=0 ~ smb_err=49152 ~ smb_flg=136 ~ smb_flg2=51201 ~ smb_tid=1 ~ smb_pid=616 ~ smb_uid=112 ~ smb_mid=12480 ~ smt_wct=0 ~ smb_bcc=0 ~ Thanks for any ideas, ~ Geza Gemes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/lTuq/PxuIn+i1pIRAmnAAJ0aPNB3Cl2advPkxywRk7lk4TNmSACeKF3N jcpmr//i0y8I/7KrnlaywXg=xt8f -----END PGP SIGNATURE-----
Gémes Géza
2003-Oct-21 22:31 UTC
[Samba]Samba3+Win2k/XP profiles issues caused by my stupidity
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear List, Thereby sorry for being stupid ;-). All my Win2k/XP profile issues were caused by forgetting to specify writable = yes on the profiles share. Regards, Geza Gemes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/lbOj/PxuIn+i1pIRApT6AKCE/WTqFoPMOtS3HHL4Bx99oUHWQQCgs399 ScsMDFwuIo32ensbZ9s8eRw=s5W5 -----END PGP SIGNATURE-----