Hi,

It seems that samba is using /root/tmp to make it's temp. files... Check
the debugging info below, and the (antique) mail that gave me a hint
that this might be the issue I'm experiencing...

TIA,

Stefan


[2001/04/26 22:46:55, 3] smbd/process.c:process_smb(831)
  Transaction 1 of length 158
[2001/04/26 22:46:55, 3] smbd/process.c:switch_message(650)
  switch message SMBnegprot (pid 31309)
[2001/04/26 22:46:55, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [DOS LM1.2X002]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [DOS LANMAN2.1]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [Windows for Workgroups 3.1a]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(347)
  Requested protocol [NT LM 0.12]
[2001/04/26 22:46:55, 3] smbd/negprot.c:reply_negprot(431)
  Selected protocol NT LM 0.12
[2001/04/26 22:46:55, 3] smbd/process.c:process_smb(831)
  Transaction 2 of length 152
[2001/04/26 22:46:55, 3] smbd/process.c:switch_message(650)
  switch message SMBsesssetupX (pid 31309)
[2001/04/26 22:46:55, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:55, 3] smbd/reply.c:reply_sesssetup_and_X(841)
  Domain=[]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[2001/04/26 22:46:55, 3] smbd/reply.c:reply_sesssetup_and_X(845)
  sesssetupX:name=[STEFAN]
[2001/04/26 22:46:55, 2] smbd/reply.c:reply_sesssetup_and_X(960)
  Defaulting to Lanman password for stefan
[2001/04/26 22:46:55, 4] smbd/password.c:smb_password_ok(433)
  Checking SMB password for user stefan
[2001/04/26 22:46:55, 4] smbd/password.c:smb_password_ok(461)
  smb_password_ok: Checking NT MD4 password
[2001/04/26 22:46:55, 4] smbd/password.c:smb_password_ok(468)
  NT MD4 password check failed
[2001/04/26 22:46:55, 4] smbd/password.c:smb_password_ok(474)
  Checking LM MD4 password
[2001/04/26 22:46:55, 4] smbd/password.c:smb_password_ok(486)
  LM MD4 password check succeeded
[2001/04/26 22:46:55, 4] passdb/pampass.c:proc_pam_start(160)
  PAM: Init user: stefan
[2001/04/26 22:46:55, 4] passdb/pampass.c:proc_pam_start(173)
  PAM: setting rhost to: fanny.eijk.nl
[2001/04/26 22:46:55, 4] passdb/pampass.c:proc_pam_start(181)
  PAM: setting tty
[2001/04/26 22:46:55, 4] passdb/pampass.c:proc_pam_start(188)
  PAM: Init passed for user: stefan
[2001/04/26 22:46:55, 4] passdb/pampass.c:pam_account(246)
  PAM: Account Management for User: stefan
[2001/04/26 22:46:55, 4] passdb/pampass.c:pam_account(265)
  PAM: Account OK for User: stefan
[2001/04/26 22:46:55, 4] passdb/pampass.c:pam_account(280)
  PAM: Account Management SetCredentials for User: stefan
[2001/04/26 22:46:55, 4] passdb/pampass.c:proc_pam_end(144)
  PAM: PAM_END OK.
[2001/04/26 22:46:55, 3] param/loadparm.c:lp_add_home(1823)
  adding home directory stefan at /users/stefan
[2001/04/26 22:46:55, 3] smbd/sec_ctx.c:push_sec_ctx(278)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2001/04/26 22:46:55, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:get_current_groups(161)
  get_current_groups: uid 0 is in 11 groups: 700, 80, 100, 696, 697,
698, 699, 699, 697, 698, 696
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:pop_sec_ctx(416)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:get_current_groups(161)
  get_current_groups: uid 0 is in 11 groups: 700, 80, 100, 696, 697,
698, 699, 699, 697, 698, 696
[2001/04/26 22:46:56, 3] smbd/password.c:register_vuid(305)
  uid 700 registered to name stefan
[2001/04/26 22:46:56, 3] smbd/password.c:register_vuid(307)
  Clearing default real name
[2001/04/26 22:46:56, 3] smbd/password.c:register_vuid(311)
  User name: stefan     Real name: Stefan van der Eijk
[2001/04/26 22:46:56, 3] smbd/process.c:chain_reply(975)
  Chained message
[2001/04/26 22:46:56, 3] smbd/process.c:switch_message(650)
  switch message SMBtconX (pid 31309)
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:56, 4] smbd/reply.c:reply_tcon_and_X(315)
  Got device type ?????
[2001/04/26 22:46:56, 4] smbd/password.c:password_ok(581)
  Null passwords not allowed.
[2001/04/26 22:46:56, 3] smbd/password.c:authorise_login(811)
  ACCEPTED: validated uid ok as non-guest
[2001/04/26 22:46:56, 3] smbd/service.c:make_connection(482)
  Connect path is /root/tmp
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:push_sec_ctx(278)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2001/04/26 22:46:56, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:get_current_groups(161)
  get_current_groups: uid 0 is in 11 groups: 700, 80, 100, 696, 697,
698, 699, 699, 697, 698, 696
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:pop_sec_ctx(416)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:get_current_groups(161)
  get_current_groups: uid 0 is in 11 groups: 700, 80, 100, 696, 697,
698, 699, 699, 697, 698, 696
[2001/04/26 22:46:57, 4]
rpc_server/srv_srvsvc_nt.c:get_share_security(192)
  get_share_security: using default secdesc for IPC$
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(239)
  se_access_check: user sid is
S-1-5-21-4002399123-3972838360-4125768123-2400
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2401
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-1161
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-1201
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2393
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2395
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2397
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2399
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2399
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2395
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2397
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-21-4002399123-3972838360-4125768123-2393
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-1-0
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-2
[2001/04/26 22:46:57, 3] lib/util_seaccess.c:se_access_check(242)
  se_access_check: also S-1-5-11
[2001/04/26 22:46:57, 3] smbd/vfs.c:vfs_init_default(94)
  Initialising default vfs hooks
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (700, 700) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:set_sec_ctx(315)
  11 user groups:
  700 80 100 696 697 698 699 699 697 698 696
[2001/04/26 22:46:57, 3] smbd/vfs.c:vfs_ChDir(638)
  vfs_ChDir to /root/tmp
[2001/04/26 22:46:57, 0] smbd/service.c:make_connection(592)
  fanny (192.168.1.12) Can't change directory to /root/tmp (Permission
denied)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:57, 3] smbd/connection.c:yield_connection(54)
  Yielding connection to IPC$
[2001/04/26 22:46:57, 3] smbd/error.c:error_packet(123)
  error string = Permission denied
[2001/04/26 22:46:57, 3] smbd/error.c:error_packet(136)
  error packet at line 163 cmd=117 (SMBtconX) eclass=1 ecode=67
[2001/04/26 22:46:57, 3] smbd/process.c:timeout_processing(1055)
  end of file from client
[2001/04/26 22:46:57, 3] smbd/sec_ctx.c:set_sec_ctx(310)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/04/26 22:46:57, 2] smbd/server.c:exit_server(440)
  Closing connections
[2001/04/26 22:46:57, 3] smbd/connection.c:yield_connection(54)
  Yielding connection to
[2001/04/26 22:46:57, 3] smbd/server.c:exit_server(473)
  Server exit (normal exit)


=====
TMPDIR environment variable

Laszlo Vecsey [EMAIL PROTECTED]
Sat, 28 Mar 1998 19:37:32 -0500 (EST) 

     Previous message: hardware 
     Next message: nethood invisible while Samba is local master 
     Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 

This one kept me wondering, so I thought I might save people some
trouble.
If you change your system to use a TMPDIR environment variable, you'll
find that samba will use that path for making temporary files with the
guest account. Of course this wont work since the main reason people use
TMPDIR is to point it to a private directory that no other account can
access (/tmp/root, or /root/tmp with 700 permissions in this case)

Is there a way to override this path in the smb.conf file itself? I
tried
making an [IPC$] entry with what testparm showed me was the defaults,
only
overriding the path, but it didnt work.

The workaround at the moment seems to be to set TMPDIR to the path of
your
guest account that samba is using, before loading smbd/nmbd.

- lv

     Previous message: hardware 
     Next message: nethood invisible while Samba is local master 
     Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Reply via email to