On 12/15/10 02:43 PM, Brett wrote:
ok so i :-

solarishost# chown -R owner /incoming
solarishost# chmod -R 700 /incoming

Using 7 will not grant all permissions on ZFS.  The owner does
get some privileges but if the intent is to grant all permissions
to the owner:

        /bin/chmod -R A=owner@:full_set:fd:allow /incoming

Also, if you want Windows style inheritance, you should consider
setting aclinherit to passthrough on your datasets:

        zfs set aclinherit=passthrough <dataset>

i have mapped the I: drive to the cifs share \\SOLARISHOST\incoming on win7 client 
BG1S<user owner>

and i try moving a file from BG1S from i:\test.txt to i:\0random\test.txt
<error -please remove write protection- dialog box>

this is the dtrace (with some op-Transaction lines removed for readability) :-

   0   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start cmd=162 [uid=1 tid=2]
   0   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start \
   0   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done cmd[162]: 
status=0x00000000 (class=0 code=0)
   0   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done \: fid=1
   0   6740 smb_pre_close:-smb_op-Close-start cmd=4 [uid=1 tid=2]
   0   6739 smb_post_close:-smb_op-Close-done cmd[4]: status=0x00000000 
(class=0 code=0)
   0   6617 smb_pre_tree_connect_andx:-smb_op-TreeConnectX-start cmd=117 [uid=1 
tid=0]
   0   6617 smb_pre_tree_connect_andx:-smb_op-TreeConnectX-start [?????] 
\\SOALRISHOST\IPC$
   0   6616 smb_post_tree_connect_andx:-smb_op-TreeConnectX-done cmd[117]: 
status=0x00000000 (class=0 code=0)
   0   6616 smb_post_tree_connect_andx:-smb_op-TreeConnectX-done tid 4: IPC$ 
[status=0x00000000 (class=0 code=0)]
   0   6730 smb_pre_transaction2:-smb_op-Transaction2-start cmd=50 [uid=1 tid=4]
   0   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0xc000000e (class=1 code=1200)
   0   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start cmd=162 [uid=1 tid=2]
   0   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start \
   0   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done cmd[162]: 
status=0x00000000 (class=0 code=0)
   0   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done \: fid=1
   0   6740 smb_pre_close:-smb_op-Close-start cmd=4 [uid=1 tid=2]
   0   6739 smb_post_close:-smb_op-Close-done cmd[4]: status=0x00000000 
(class=0 code=0)
   0   6615 smb_pre_tree_disconnect:-smb_op-TreeDisconnect-start cmd=113 [uid=1 
tid=4]
   0   6615 smb_pre_tree_disconnect:-smb_op-TreeDisconnect-start tid 4: IPC$
   0   6614 smb_post_tree_disconnect:-smb_op-TreeDisconnect-done cmd[113]: 
status=0x00000000 (class=0 code=0)
   1   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0x00000000 (class=0 code=0)
   1   6730 smb_pre_transaction2:-smb_op-Transaction2-start cmd=50 [uid=1 tid=2]
   1   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0xc0000034 (class=1 code=2)
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start cmd=162 [uid=1 tid=2]
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start \test.txt
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done cmd[162]: 
status=0xc0000022 (class=1 code=5)
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done \test.txt: fid=65535
   1   6730 smb_pre_transaction2:-smb_op-Transaction2-start cmd=50 [uid=1 tid=2]
   1   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0xc000000f (class=1 code=2)
   1   6730 smb_pre_transaction2:-smb_op-Transaction2-start cmd=50 [uid=1 tid=2]
   1   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0xc000000f (class=1 code=2)
   1   6730 smb_pre_transaction2:-smb_op-Transaction2-start cmd=50 [uid=1 tid=2]
   1   6729 smb_post_transaction2:-smb_op-Transaction2-done cmd[50]: 
status=0xc0000034 (class=1 code=2)
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start cmd=162 [uid=1 tid=2]
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start \0random\test.txt
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done cmd[162]: 
status=0xc0000034 (class=1 code=2)
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done \0random\test.txt: 
fid=65535
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start cmd=162 [uid=1 tid=2]
   1   6677 smb_pre_nt_create_andx:-smb_op-NtCreateX-start \test.txt
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done cmd[162]: 
status=0xc0000022 (class=1 code=5)
   1   6676 smb_post_nt_create_andx:-smb_op-NtCreateX-done \test.txt: fid=65535


checking the acl's on the test.txt file  and the destination directory for the 
move :-
bash-4.0$ /usr/bin/ls -lV test.txt
-rw-r--r--   1 owner    media    366741504 Nov  3 07:53 test.txt
                  owner@:rw-p--aARWcCos:-------:allow
                  group@:r-----a-R-c--s:-------:allow
               everyone@:r-----a-R-c--s:-------:allow

-bash-4.0$ ls -ldV 0random/
drwxr-xr-x   2 owner    media          8 Oct 31 22:00 0random/
                  owner@:rwxp--aARWcCos:-------:allow
                  group@:r-x---a-R-c--s:-------:allow
               everyone@:r-x---a-R-c--s:-------:allow

Note that the owner does not have all permissions on the target.
If the client is asking for, say, delete (d) permission (even
though it doesn't need it) this request may fail.

Try setting 0random to:

        /bin/chmod A=everyone@:read_set/execute:fd:allow 0random
        /bin/chmod A+group@@:read_set/execute:fd:allow 0random
        /bin/chmod A+owner@:full_set:fd:allow 0random

The ACL should then be:

                 owner@:rwxpdDaARWcCos:fd-----:allow
                 group@:r-x---a-R-c---:fd-----:allow
              everyone@:r-x---a-R-c---:fd-----:allow
        
Alan
_______________________________________________
cifs-discuss mailing list
cifs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss

Reply via email to