Dave Ewart
2012-Jun-27 10:59 UTC
[Samba] Windows 7 v. Samba: why is default network profile in 'NETLOGON/Default User.v2' not used?
Setup: - Samba 3.5.6 (Debian Stable release, amd64); - Testing Windows 7 client behaviour, specifically with regard to users who don't yet have profiles. The Windows docs state that a domain logon for a new user will cause the default network profile to be used if available, if not then a default local profile is used instead. The location for the default network profile is NETLOGON/Default User.v2 and I have content in that location. However, a domain logon for a new user does not pick up the default network profile, it falls through to the default local profile, which is not what I want. If I increase log level to 3 for Samba, I see this relating to the default network profile location: -------------------------------------------------------------------------------------- [2012/06/27 11:07:04.787396, 1] smbd/service.c:1070(make_connection_snum) davee7vm (::ffff:10.0.1.90) connect to service netlogon initially as user test1 (uid=1577, gid=100) (pid 14326) [2012/06/27 11:07:04.787427, 3] smbd/sec_ctx.c:310(set_sec_ctx) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2012/06/27 11:07:04.787453, 3] smbd/reply.c:865(reply_tcon_and_X) tconX service=NETLOGON [2012/06/27 11:07:04.788984, 3] smbd/process.c:1485(process_smb) Transaction 77 of length 112 (0 toread) [2012/06/27 11:07:04.789003, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.789015, 3] smbd/sec_ctx.c:310(set_sec_ctx) setting sec ctx (1577, 100) - sec_ctx_stack_ndx = 0 [2012/06/27 11:07:04.789041, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2012/06/27 11:07:04.789256, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2 (fnum = -1) level=1004 call=5 total_data=0 [2012/06/27 11:07:04.789900, 3] smbd/process.c:1485(process_smb) Transaction 78 of length 112 (0 toread) [2012/06/27 11:07:04.789916, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.789927, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005 [2012/06/27 11:07:04.789946, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2 (fnum = -1) level=1005 call=5 total_data=0 [2012/06/27 11:07:04.790968, 3] smbd/process.c:1485(process_smb) Transaction 79 of length 112 (0 toread) [2012/06/27 11:07:04.790983, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.790995, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005 [2012/06/27 11:07:04.791020, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2 (fnum = -1) level=1005 call=5 total_data=0 [2012/06/27 11:07:04.791487, 3] smbd/process.c:1485(process_smb) Transaction 80 of length 112 (0 toread) [2012/06/27 11:07:04.791515, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.791526, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2012/06/27 11:07:04.791544, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2 (fnum = -1) level=1004 call=5 total_data=0 [2012/06/27 11:07:04.792884, 3] smbd/process.c:1485(process_smb) Transaction 81 of length 134 (0 toread) [2012/06/27 11:07:04.792900, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.792910, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2012/06/27 11:07:04.792981, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2/NTUSER.DAT (fnum = -1) level=1004 call=5 total_data=0 [2012/06/27 11:07:04.793628, 3] smbd/process.c:1485(process_smb) Transaction 82 of length 134 (0 toread) [2012/06/27 11:07:04.793643, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.793654, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005 [2012/06/27 11:07:04.793674, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2/NTUSER.DAT (fnum = -1) level=1005 call=5 total_data=0 [2012/06/27 11:07:04.794405, 3] smbd/process.c:1485(process_smb) Transaction 83 of length 134 (0 toread) [2012/06/27 11:07:04.794419, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.794429, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1005 [2012/06/27 11:07:04.794447, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2/NTUSER.DAT (fnum = -1) level=1005 call=5 total_data=0 [2012/06/27 11:07:04.794935, 3] smbd/process.c:1485(process_smb) Transaction 84 of length 134 (0 toread) [2012/06/27 11:07:04.794950, 3] smbd/process.c:1294(switch_message) switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 [2012/06/27 11:07:04.794960, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 [2012/06/27 11:07:04.794978, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) call_trans2qfilepathinfo Default User.v2/NTUSER.DAT (fnum = -1) level=1004 call=5 total_data=0 [2012/06/27 11:07:04.797603, 3] smbd/process.c:1485(process_smb) Transaction 85 of length 142 (0 toread) [2012/06/27 11:07:04.797620, 3] smbd/process.c:1294(switch_message) switch message SMBsesssetupX (pid 14326) conn 0x0 -------------------------------------------------------------------------------------- This reads as if some attempt is being made to look at 'Default User.v2' and then 'Default User.v2/NTUSER.DAT', but I don't really understand what's happening. I'm happy server-side permissions are correct here and that does not appear to be the root of the problem. Can anyone help explain what's going on and what might be required to fix? Happy to post further logs if required, too. Previous poster/thread at http://lists.samba.org/archive/samba/2010-December/159897.html resulted in a suggestion to set 'guest ok = yes' and 'browseable = yes' on the NETLOGON share, but this didn't make any difference in my case: same messages in the logs etc. Cheers, Dave. -- Dave Ewart davee at ceu.ox.ac.uk Computing Manager, Cancer Epidemiology Unit University of Oxford / Cancer Research UK N 51.7516, W 1.2152 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20120627/5eed14a5/attachment.pgp>
Dave Ewart
2012-Jun-29 09:55 UTC
[Samba] Windows 7 v. Samba: why is default network profile in 'NETLOGON/Default User.v2' not used?
On Wednesday, 27.06.2012 at 11:59 +0100, Dave Ewart wrote:> [2012/06/27 11:07:04.794950, 3] smbd/process.c:1294(switch_message) > switch message SMBtrans2 (pid 14326) conn 0x7fa7ba071750 > [2012/06/27 11:07:04.794960, 3] smbd/trans2.c:5099(call_trans2qfilepathinfo) > call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004 > [2012/06/27 11:07:04.794978, 3] smbd/trans2.c:5225(call_trans2qfilepathinfo) > call_trans2qfilepathinfo Default User.v2/NTUSER.DAT (fnum = -1) level=1004 call=5 total_data=0 > [2012/06/27 11:07:04.797603, 3] smbd/process.c:1485(process_smb) > Transaction 85 of length 142 (0 toread) > [2012/06/27 11:07:04.797620, 3] smbd/process.c:1294(switch_message) > switch message SMBsesssetupX (pid 14326) conn 0x0No-one has replied to my thread, so perhaps this is an ususual issue. To help to debug it myself, can someone explain what Samba is 'doing' during the above log section? It looks to be Doing Something with 'Default User.v2/NTUSER.DAT', but it's not a file open or read, because I know what those look like in the logs. What is 'call_trans2qfilepathinfo'? All help appreciated, Thanks, Dave. -- Dave Ewart davee at ceu.ox.ac.uk Computing Manager, Cancer Epidemiology Unit University of Oxford / Cancer Research UK N 51.7516, W 1.2152 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20120629/066178be/attachment.pgp>