[Samba] Unable to reset file permissions

Iain iain at mein.it
Thu Apr 27 11:22:42 GMT 2006


Question regarding file permissions on Samba 3.0.22:

Using a Windows XP client when I attempt to change the file permissions
of a directory (or any single file for that matter) once I click the
'OK' button the properties window closes as expected, but upon opening
the security permissions tab again I notice the permissions have
revented back to how they were beforehand. If I click 'Apply' instead of
the 'OK' button then immediately I see the permissions being reset.

I've attached the debug output from trying to change the permissions the
at the bottom of this message. My smb.conf file is as follows:

*** START ***
[global]
  netbios name  = NETMON2
  workgroup     = MYCORP
  server string = LDAP PDC
  hosts allow   = 172.16.0.0/19

  security = user
  encrypt passwords = yes
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  interfaces = lo eth0
  bind interfaces only = yes
  local master = yes
  os level = 65
  domain master = yes
  domain logons = yes
  preferred master = yes
  null passwords = no
  hide unreadable = yes
  hide dot files = yes
  logon script = %U.bat
  logon drive = H:
  logon home = \\%L\%U
  wins support = yes

  name resolve order = wins lmhosts host bcast
  dns proxy = yes
  time server = yes

  log file = /var/log/samba/log.%m
  max log size = 50
  log level = 5

  add user script = /usr/sbin/smbldap-useradd -m "%u"
  add machine script = /usr/sbin/smbldap-useradd -w "%u"
  add group script = /usr/sbin/smbldap-groupadd -p "%g"
  add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
  delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
  set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

  passdb backend = ldapsam:ldap://127.0.0.1/

  ldap delete dn = Yes
  ldap ssl = no
  ldap suffix = dc=waldocorp,dc=com
  ldap admin dn = cn=Manager,dc=waldocorp,dc=com
  ldap group suffix = ou=Groups
  ldap user suffix = ou=Users
  ldap machine suffix = ou=Computers
  ldap idmap suffix = ou=Users

  printcap name = cups
  load printers = yes
  printing = cups

  admin users = @"Domain Admins"

  kernel oplocks = yes
  oplocks = yes
  level2 oplocks = yes
  strict locking = yes

[printers]
  comment = All Printers
  path = /var/spool/samba
  browseable = yes
  guest ok = yes
  writable = no
  printable = yes
  create mode = 0700
  default devmode = yes

[print$]
  comment = Printer Driver Download Area
  path = /home/samba/printers
  browseable = yes
  read only = yes
  write list = @"Domain Admins"
  guest ok = yes

[netlogon]
  path = /home/samba/netlogon
  guest ok = yes
  browseable = no
  write list = root

[profiles]
  path = /home/samba/profiles
  writeable = yes
  browseable = no
  read only = no
  create mode = 0644
  directory mode = 0755
  guest ok = yes

[homes]
  path = /home/samba/users/%U
  browseable = no
  valid users = %S
  read only = no
  create mask = 0664
  directory mask = 0775

[software]
  comment = Software Repository
  path = /home/samba/software
  guest ok = no
  public = yes
  read only = no
  browseable = yes
  force create mode = 0775
  force directory mode = 6775

[engineering]
  comment = Network Engineering Group Share
  path = /home/samba/groups/engineering
  guest ok = no
  public = yes
  read only = no
  browseable = yes
  force create mode = 0775
  force directory mode = 6775

[finance]
  comment = Finance Group Share
  path = /home/samba/groups/finance
  guest ok = no
  public = yes
  read only = no
  browseable = yes
  force create mode = 0775
  force directory mode = 6775

[labs]
  comment =  Labs Group Share
  path = /home/samba/groups/labs
  guest ok = no
  public = yes
  read only = no
  browseable = yes
  force create mode = 0775
  force directory mode = 6775

[support]
  comment = Support Group Share
  path = /home/samba/groups/support
  guest ok = no
  public = yes
  read only = no
  browseable = yes
  force create mode = 0775
  force directory mode = 6775
*** END ***

*** START ***
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:22, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:22, 3] smbd/trans2.c:call_trans2qfilepathinfo(2799)
  call_trans2qfilepathinfo: TRANSACT2_QFILEINFO: level = 1004
[2006/04/27 13:08:22, 3] smbd/trans2.c:call_trans2qfilepathinfo(2913)
  call_trans2qfilepathinfo tmp/my_test_file.txt (fnum = 10127)
level=1004 call=7 total_data=0
[2006/04/27 13:08:22, 5] smbd/trans2.c:call_trans2qfilepathinfo(3118)
  SMB_QFBI - create: Wed Apr 26 11:33:56 2006
   access: Wed Apr 26 11:33:56 2006
   write: Wed Apr 26 11:33:56 2006
   change: Wed Apr 26 11:33:56 2006
   mode: 20
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=100
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51265
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=6786
  smt_wct=10
  smb_vwv[ 0]=    2 (0x2)
  smb_vwv[ 1]=   40 (0x28)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    2 (0x2)
  smb_vwv[ 4]=   56 (0x38)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=   40 (0x28)
  smb_vwv[ 7]=   60 (0x3C)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_bcc=45
[2006/04/27 13:08:22, 3] smbd/process.c:process_smb(1194)
  Transaction 27090 of length 192
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=188
  smb_com=0xa0
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=6850
  smt_wct=19
  smb_vwv[ 0]=    0 (0x0)
  smb_vwv[ 1]= 2048 (0x800)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=26624 (0x6800)
  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]= 2048 (0x800)
  smb_vwv[10]=    0 (0x0)
  smb_vwv[11]=19456 (0x4C00)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=26624 (0x6800)
  smb_vwv[14]=    0 (0x0)
  smb_vwv[15]=21504 (0x5400)
  smb_vwv[16]=    0 (0x0)
  smb_vwv[17]=    0 (0x0)
  smb_vwv[18]=    3 (0x3)
  smb_bcc=115
[2006/04/27 13:08:22, 3] smbd/process.c:switch_message(993)
  switch message SMBnttrans (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:22, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:22, 3]
smbd/nttrans.c:call_nt_transact_set_security_desc(2087)
  call_nt_transact_set_security_desc: file = tmp/my_test_file.txt, sent
0x80000004
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint16(674)
          0000 revision : 0001
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint16(674)
          0002 type     : 9d04
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
          0004 off_owner_sid: 00000030
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
          0008 off_grp_sid  : 0000004c
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
          000c off_sacl     : 00000000
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
          0010 off_dacl     : 00000014
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0030 sid_rev_num: 01
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0031 num_auths  : 05
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0032 id_auth[0] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0033 id_auth[1] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0034 id_auth[2] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0035 id_auth[3] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0036 id_auth[4] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0037 id_auth[5] : 05
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32s(959)
              0038 sub_auths : 00000015 faae50bb f63e1315 6e56089d 00000bbc
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              004c sid_rev_num: 01
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              004d num_auths  : 05
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              004e id_auth[0] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              004f id_auth[1] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0050 id_auth[2] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0051 id_auth[3] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0052 id_auth[4] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
              0053 id_auth[5] : 05
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32s(959)
              0054 sub_auths : 00000015 faae50bb f63e1315 6e56089d 00000200
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint16(674)
              0014 revision: 0002
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint16(674)
              0016 size     : 001c
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
              0018 num_aces : 00000001
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                  001c type : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                  001d flags: 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint16(674)
                  001e size : 0014
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32(703)
                      0020 mask: 001f01ff
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0024 sid_rev_num: 01
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0025 num_auths  : 01
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0026 id_auth[0] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0027 id_auth[1] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0028 id_auth[2] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      0029 id_auth[3] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      002a id_auth[4] : 00
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint8(614)
                      002b id_auth[5] : 01
[2006/04/27 13:08:22, 5] rpc_parse/parse_prs.c:prs_uint32s(959)
                      002c sub_auths : 00000000
[2006/04/27 13:08:22, 5] smbd/posix_acls.c:unpack_nt_owners(919)
  unpack_nt_owners: validating owner_sids.
[2006/04/27 13:08:22, 5] smbd/posix_acls.c:unpack_nt_owners(962)
  unpack_nt_owners: owner_sids validated.
[2006/04/27 13:08:22, 3] passdb/lookup_sid.c:fetch_sid_from_uid_cache(193)
  fetch sid from uid cache 1002 ->
S-1-5-21-4205727931-4131263253-1851132061-3004
[2006/04/27 13:08:22, 3] passdb/lookup_sid.c:fetch_sid_from_gid_cache(267)
  fetch sid from gid cache 513 ->
S-1-5-21-4205727931-4131263253-1851132061-513
[2006/04/27 13:08:22, 3] smbd/dosmode.c:unix_mode(121)
  unix_mode(tmp/my_test_file.txt) returning 0775
[2006/04/27 13:08:22, 2] smbd/posix_acls.c:set_canon_ace_list(2484)
  set_canon_ace_list: sys_acl_set_file type file failed for file
tmp/my_test_file.txt (Operation not supported).
[2006/04/27 13:08:22, 3] smbd/posix_acls.c:set_nt_acl(3280)
  set_nt_acl: chmod tmp/my_test_file.txt. perms = 0777.
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=71
  smb_com=0xa0
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51265
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=6850
  smt_wct=18
  smb_vwv[ 0]=    0 (0x0)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    0 (0x0)
  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]=    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]=    0 (0x0)
  smb_vwv[16]=    0 (0x0)
  smb_vwv[17]=    0 (0x0)
  smb_bcc=0
[2006/04/27 13:08:22, 3] smbd/notify_kernel.c:kernel_check_notify(99)
  kernel_check_notify: kernel change notify on tmp fd[0]=21
(signals_received=1)
[2006/04/27 13:08:22, 3] smbd/error.c:error_packet(146)
  error packet at smbd/notify.c(55) cmd=160 (SMBnttrans) NT code 0x0000010c
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=71
  smb_com=0xa0
  smb_rcls=12
  smb_reh=1
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=58373
  smt_wct=18
  smb_vwv[ 0]=    0 (0x0)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    0 (0x0)
  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]=    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]=    0 (0x0)
  smb_vwv[16]=    0 (0x0)
  smb_vwv[17]=    0 (0x0)
  smb_bcc=0
[2006/04/27 13:08:22, 3] smbd/notify_kernel.c:kernel_remove_notify(144)
  kernel_remove_notify: fd=-1
[2006/04/27 13:08:22, 3] smbd/process.c:process_smb(1194)
  Transaction 27091 of length 88
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=84
  smb_com=0xa0
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=6917
  smt_wct=23
  smb_vwv[ 0]=    0 (0x0)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    0 (0x0)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]= 8192 (0x2000)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=    0 (0x0)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_vwv[10]=    0 (0x0)
  smb_vwv[11]=21504 (0x5400)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    0 (0x0)
  smb_vwv[14]=    0 (0x0)
  smb_vwv[15]=    0 (0x0)
  smb_vwv[16]=    0 (0x0)
  smb_vwv[17]= 1024 (0x400)
  smb_vwv[18]=    4 (0x4)
  smb_vwv[19]=    3 (0x3)
  smb_vwv[20]=    0 (0x0)
  smb_vwv[21]=10115 (0x2783)
  smb_vwv[22]=    1 (0x1)
  smb_bcc=3
[2006/04/27 13:08:22, 3] smbd/process.c:switch_message(993)
  switch message SMBnttrans (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:22, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:22, 3] smbd/nttrans.c:call_nt_transact_notify_change(1853)
  call_nt_transact_notify_change
[2006/04/27 13:08:22, 3] smbd/notify_kernel.c:kernel_register_notify(189)
  kernel change notify on tmp (ntflags=0x3 flags=0x1e) fd=6
[2006/04/27 13:08:22, 3] smbd/nttrans.c:call_nt_transact_notify_change(1868)
  call_nt_transact_notify_change: notify change called on directory name
= tmp
[2006/04/27 13:08:22, 3] smbd/process.c:process_smb(1194)
  Transaction 27092 of length 45
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=41
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=65279
  smb_uid=107
  smb_mid=6978
  smt_wct=3
  smb_vwv[ 0]=10127 (0x278F)
  smb_vwv[ 1]=65535 (0xFFFF)
  smb_vwv[ 2]=65535 (0xFFFF)
  smb_bcc=0
[2006/04/27 13:08:22, 3] smbd/process.c:switch_message(993)
  switch message SMBclose (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:22, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:22, 3] smbd/reply.c:reply_close(3271)
  close fd=-1 fnum=10127 (numopen=3)
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 512) : sec_ctx_stack_ndx = 1
[2006/04/27 13:08:22, 3] smbd/uid.c:push_conn_ctx(393)
  push_conn_ctx(107) : conn_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_nt_user_token(433)
  NT user token: (NULL)
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 2] smbd/close.c:close_normal_file(308)
  iain closed file tmp/my_test_file.txt (numopen=2)
[2006/04/27 13:08:22, 5] smbd/files.c:file_free(450)
  freed files structure 10127 (3 used)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=35
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=3
  smb_pid=65279
  smb_uid=107
  smb_mid=6978
  smt_wct=0
  smb_bcc=0
[2006/04/27 13:08:22, 3] smbd/process.c:process_smb(1194)
  Transaction 27093 of length 118
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=114
  smb_com=0xa2
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7042
  smt_wct=24
  smb_vwv[ 0]=  255 (0xFF)
  smb_vwv[ 1]=57054 (0xDEDE)
  smb_vwv[ 2]= 7168 (0x1C00)
  smb_vwv[ 3]= 5632 (0x1600)
  smb_vwv[ 4]=    0 (0x0)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=    0 (0x0)
  smb_vwv[ 7]=40704 (0x9F00)
  smb_vwv[ 8]=  513 (0x201)
  smb_vwv[ 9]=    0 (0x0)
  smb_vwv[10]=    0 (0x0)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=32768 (0x8000)
  smb_vwv[14]=    0 (0x0)
  smb_vwv[15]=  768 (0x300)
  smb_vwv[16]=    0 (0x0)
  smb_vwv[17]=  256 (0x100)
  smb_vwv[18]=    0 (0x0)
  smb_vwv[19]=16384 (0x4000)
  smb_vwv[20]=    0 (0x0)
  smb_vwv[21]=  512 (0x200)
  smb_vwv[22]=    0 (0x0)
  smb_vwv[23]=  768 (0x300)
  smb_bcc=31
[2006/04/27 13:08:22, 3] smbd/process.c:switch_message(993)
  switch message SMBntcreateX (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:22, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:22, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:22, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:22, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "tmp/Thumbs.db"
[2006/04/27 13:08:22, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = tmp/Thumbs.db, dirpath = tmp, start = Thumbs.db
[2006/04/27 13:08:22, 5] smbd/filename.c:unix_convert(335)
  New file Thumbs.db
[2006/04/27 13:08:22, 3] smbd/dosmode.c:unix_mode(121)
  unix_mode(tmp/Thumbs.db) returning 0775
[2006/04/27 13:08:22, 5] smbd/open.c:open_file_ntcreate(1178)
  open_file_ntcreate: FILE_OPEN requested for file tmp/Thumbs.db and
file doesn't exist.
[2006/04/27 13:08:22, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2629) cmd=162 (SMBntcreateX)
NT_STATUS_OBJECT_NAME_NOT_FOUND
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:22, 5] lib/util.c:show_msg(464)
  size=35
  smb_com=0xa2
  smb_rcls=52
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=51201
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7042
  smt_wct=0
  smb_bcc=0
[2006/04/27 13:08:24, 3] smbd/process.c:process_smb(1194)
  Transaction 27094 of length 88
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(464)
  size=84
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7106
  smt_wct=15
  smb_vwv[ 0]=   16 (0x10)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    2 (0x2)
  smb_vwv[ 3]=   40 (0x28)
  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]=   16 (0x10)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    5 (0x5)
  smb_bcc=19
[2006/04/27 13:08:24, 3] smbd/process.c:switch_message(993)
  switch message SMBtrans2 (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:24, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:24, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:24, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:24, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:24, 3] smbd/trans2.c:call_trans2qfilepathinfo(2861)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2006/04/27 13:08:24, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "tmp"
[2006/04/27 13:08:24, 3] smbd/trans2.c:call_trans2qfilepathinfo(2913)
  call_trans2qfilepathinfo tmp (fnum = -1) level=1004 call=5 total_data=0
[2006/04/27 13:08:24, 5] smbd/trans2.c:call_trans2qfilepathinfo(3118)
  SMB_QFBI - create: Fri Apr  7 11:19:02 2006
   access: Fri Apr  7 11:19:02 2006
   write: Thu Apr 27 13:02:15 2006
   change: Thu Apr 27 13:02:15 2006
   mode: 10
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(464)
  size=100
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51265
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7106
  smt_wct=10
  smb_vwv[ 0]=    2 (0x2)
  smb_vwv[ 1]=   40 (0x28)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    2 (0x2)
  smb_vwv[ 4]=   56 (0x38)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=   40 (0x28)
  smb_vwv[ 7]=   60 (0x3C)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_bcc=45
[2006/04/27 13:08:24, 3] smbd/process.c:process_smb(1194)
  Transaction 27095 of length 98
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(464)
  size=94
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7170
  smt_wct=15
  smb_vwv[ 0]=   26 (0x1A)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=   10 (0xA)
  smb_vwv[ 3]=16384 (0x4000)
  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]=   26 (0x1A)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=    0 (0x0)
  smb_vwv[12]=    0 (0x0)
  smb_vwv[13]=    1 (0x1)
  smb_vwv[14]=    1 (0x1)
  smb_bcc=29
[2006/04/27 13:08:24, 3] smbd/process.c:switch_message(993)
  switch message SMBtrans2 (pid 27331) conn 0x555555a62250
[2006/04/27 13:08:24, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 512) - sec_ctx_stack_ndx = 0
[2006/04/27 13:08:24, 5] auth/auth_util.c:debug_nt_user_token(438)
  NT user token of user S-1-5-21-4205727931-4131263253-1851132061-3004
  contains 8 SIDs
  SID[  0]: S-1-5-21-4205727931-4131263253-1851132061-3004
  SID[  1]: S-1-5-21-4205727931-4131263253-1851132061-512
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-5-21-4205727931-4131263253-1851132061-513
  SID[  6]: S-1-5-21-4205727931-4131263253-1851132061-96085
  SID[  7]: S-1-5-32-544
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/04/27 13:08:24, 5] auth/auth_util.c:debug_unix_user_token(454)
  UNIX token of user 0
  Primary group is 512 and contains 3 supplementary groups
  Group[  0]: 512
  Group[  1]: 513
  Group[  2]: 47542
[2006/04/27 13:08:24, 5] smbd/uid.c:change_to_user(309)
  change_to_user uid=(0,0) gid=(0,512)
[2006/04/27 13:08:24, 3] smbd/trans2.c:call_trans2findfirst(1632)
  call_trans2findfirst: dirtype = 16, maxentries = 1366,
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level =
0x104, max_data_bytes = 16384
[2006/04/27 13:08:24, 5] smbd/filename.c:unix_convert(108)
  unix_convert called on file "tmp/*"
[2006/04/27 13:08:24, 5] smbd/filename.c:unix_convert(185)
  unix_convert begin: name = tmp/*, dirpath = tmp, start = *
[2006/04/27 13:08:24, 5] smbd/filename.c:unix_convert(335)
  New file *
[2006/04/27 13:08:24, 5] smbd/trans2.c:call_trans2findfirst(1688)
  dir=tmp, mask = *
[2006/04/27 13:08:24, 5] smbd/dir.c:dptr_create(391)
  dptr_create dir=tmp
[2006/04/27 13:08:24, 3] smbd/dir.c:dptr_create(511)
  creating new dirptr 256 for path tmp, expect_close = 1
[2006/04/27 13:08:24, 4] smbd/trans2.c:call_trans2findfirst(1745)
  dptr_num is 256, wcard = *, attr = 22
[2006/04/27 13:08:24, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found tmp/. fname=.
[2006/04/27 13:08:24, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found tmp/.. fname=..
[2006/04/27 13:08:24, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found tmp/fact consulting directions.pdf
fname=fact consulting directions.pdf
[2006/04/27 13:08:24, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found tmp/mt.key fname=mt.key
[2006/04/27 13:08:24, 5] smbd/trans2.c:get_lanman2_dir_entry(1169)
  get_lanman2_dir_entry found tmp/my_test_file.txt fname=my_test_file.txt
[2006/04/27 13:08:24, 5] smbd/trans2.c:call_trans2findfirst(1798)
  call_trans2findfirst - (2) closing dptr_num 256
[2006/04/27 13:08:24, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(454)
[2006/04/27 13:08:24, 5] lib/util.c:show_msg(464)
  size=656
  smb_com=0x32
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51265
  smb_tid=3
  smb_pid=1052
  smb_uid=107
  smb_mid=7170
  smt_wct=10
  smb_vwv[ 0]=   10 (0xA)
  smb_vwv[ 1]=  588 (0x24C)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=   10 (0xA)
  smb_vwv[ 4]=   56 (0x38)
  smb_vwv[ 5]=    0 (0x0)
  smb_vwv[ 6]=  588 (0x24C)
  smb_vwv[ 7]=   68 (0x44)
  smb_vwv[ 8]=    0 (0x0)
  smb_vwv[ 9]=    0 (0x0)
  smb_bcc=601
[2006/04/27 13:08:24, 4] smbd/trans2.c:call_trans2findfirst(1834)
  SMBtrans2 mask=* directory=tmp dirtype=22 numentries=5
*** END ***

Why am I unable to set these permissions via the XP client??

TIA.

Iain.



More information about the samba mailing list