[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

Daniel Müller mueller at tropenklinik.de
Tue Feb 8 07:51:26 MST 2011


So I created the file versuch.docx on the glusterd-vol. At the end of my
smbd.log the file is read only. Only one change in the file possible


My share definition:

[test]
        path=/mnt/glusterfs/windows/test
        readonly=no
        profile acls = YES
        oplocks=NO
        level2 oplocks=NO
        write list="Domain Users" "Domain Admins"
        create mask = 2770
        force group= "Domain Users"



-rwxrw---- 1 root Domain Users 10021  8. Feb 15:42 versuch.docx

Smbd.log:


[2011/02/08 15:40:42.199280,  3]
smbd/trans2.c:5012(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1005
[2011/02/08 15:40:42.199325,  3]
smbd/trans2.c:5225(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo versuch.docx (fnum = 16123) level=1005 call=7
total_data=0
[2011/02/08 15:40:42.199344,  5] smbd/trans2.c:4197(smbd_do_qfilepathinfo)
  smbd_do_qfilepathinfo: versuch.docx (fnum = 16123) level=1005 max_data=24
[2011/02/08 15:40:42.199364,  5] lib/util.c:617(show_msg)
[2011/02/08 15:40:42.199374,  5] lib/util.c:627(show_msg)
  size=84
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51203
  smb_tid=4
  smb_pid=216
  smb_uid=109
  smb_mid=61187
  smt_wct=10
  smb_vwv[ 0]=    2 (0x2)
  smb_vwv[ 1]=   24 (0x18)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    2 (0x2)
  smb_vwv[ 4]=   56 (0x38)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=   24 (0x18)
  smb_vwv[ 7]=   60 (0x3C)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_bcc=29
[2011/02/08 15:40:42.200144,  3] smbd/process.c:1485(process_smb)
  Transaction 12057 of length 45 (0 toread)
[2011/02/08 15:40:42.200217,  5] lib/util.c:617(show_msg)
[2011/02/08 15:40:42.200227,  5] lib/util.c:627(show_msg)
  size=41
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=4
  smb_pid=65279
  smb_uid=109
  smb_mid=61251
  smt_wct=3
  smb_vwv[ 0]=16123 (0x3EFB)
  smb_vwv[ 1]=65535 (0xFFFF)
  smb_vwv[ 2]=65535 (0xFFFF)
  smb_bcc=0
[2011/02/08 15:40:42.200300,  3] smbd/process.c:1294(switch_message)
  switch message SMBclose (pid 2781) conn 0x2b53d94fd900
[2011/02/08 15:40:42.200318,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/02/08 15:40:42.200336,  3] smbd/reply.c:4653(reply_close)
  close fd=28 fnum=16123 (numopen=2)
[2011/02/08 15:40:42.200507,  2] smbd/close.c:656(close_normal_file)
  root closed file versuch.docx (numopen=1) NT_STATUS_OK
[2011/02/08 15:40:42.200531,  5] smbd/files.c:497(file_free)
  freed files structure 16123 (1 used)
[2011/02/08 15:40:42.200559,  5] lib/util.c:617(show_msg)
[2011/02/08 15:40:42.200570,  5] lib/util.c:627(show_msg)
  size=35
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51203
  smb_tid=4
  smb_pid=65279
  smb_uid=109
  smb_mid=61251
  smt_wct=0
  smb_bcc=0
[2011/02/08 15:40:53.742751,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:40:53.743145,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2011/02/08 15:40:53.743585,  5]
auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2011/02/08 15:40:53.743776,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2011/02/08 15:41:13.427755,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:41:13.427998,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2011/02/08 15:41:13.428154,  5]
auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2011/02/08 15:41:13.428467,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2011/02/08 15:42:05.901565,  3] smbd/process.c:1294(switch_message)
  switch message SMBwriteX (pid 2781) conn 0x2b53d94fd900
[2011/02/08 15:42:05.901580,  4] smbd/uid.c:257(change_to_user)
  change_to_user: Skipping user change - already user
[2011/02/08 15:42:05.902421,  3] lib/util.c:1846(fcntl_getlock)
  fcntl_getlock: fd 35 is returned info 2 pid 0
[2011/02/08 15:42:05.902447,  5]
smbd/fileio.c:235(trigger_write_time_update)
  Update write time 2000000 usec later on ~$ersuch.docx
[2011/02/08 15:42:05.902474,  3]
smbd/oplock.c:373(break_level2_to_none_async)
  process_oplock_async_level2_break_message: downgrading fake level 2
oplock.
[2011/02/08 15:42:05.902714,  3] smbd/reply.c:4437(reply_write_and_X)
  writeX fnum=16138 num=54 wrote=54
[2011/02/08 15:42:05.902919,  3] smbd/process.c:1485(process_smb)
  Transaction 12162 of length 76 (0 toread)
[2011/02/08 15:42:05.902938,  5] lib/util.c:617(show_msg)
[2011/02/08 15:42:05.902947,  5] lib/util.c:627(show_msg)
  size=72
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=1
  smb_pid=216
  smb_uid=109
  smb_mid=2375
  smt_wct=15
  smb_vwv[ 0]=    4 (0x4)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    2 (0x2)
  smb_vwv[ 3]=   24 (0x18)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    4 (0x4)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    7 (0x7)
  smb_bcc=7
[2011/02/08 15:42:05.903057,  3] smbd/process.c:1294(switch_message)
  switch message SMBtrans2 (pid 2781) conn 0x2b53d94fe810
[2011/02/08 15:42:05.903073,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:42:05.903087,  5] auth/token_util.c:531(debug_nt_user_token)
  NT user token of user S-1-5-21-1678901364-838636917-1519461565-500
  contains 12 SIDs
  SID[  0]: S-1-5-21-1678901364-838636917-1519461565-500
[2011/02/08 15:42:53.747650,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:42:53.747891,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2011/02/08 15:42:53.748275,  5]
auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2011/02/08 15:42:53.748433,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0


It drives me crazy :-)


-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE] 
Gesendet: Dienstag, 8. Februar 2011 15:16
An: Daniel Müller
Cc: samba at lists.samba.org
Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

On Tue, Feb 08, 2011 at 03:12:00PM +0100, Daniel Müller wrote:
> But even with the force group or force create mode it is still not
possible
> to do it on a glusterd vol.
> I think I will skip glusterd and return to gfs2 and drbd.

Without further analysis I don't think this is appropriate.

Volker



More information about the samba mailing list