xcopy /O ... chown -not owner error-

Nicolas Dorfsman ndorfsman at gmail.com
Thu Apr 23 14:26:39 GMT 2009


	Hey ?

	What is this weird "do_chown" in nfs4_acls.c ???

	When smb_set_nt_acl_nfs4() is called, coming from zfsacl.so, my  
process is already own by the effective user...so chown is forbidden.

	I removed the part of code who is trying to do the chown ( if  
(params.do_chown) {...} ) and it seems to work nicely.
	
	I'm confused. Where is set the boolean "do_chown" ?


	Nicolas



Le 23 avr. 09 à 16:04, Nicolas Dorfsman a écrit :

> Samba 3.3.2
>
>
> 	Hi,
>
> 	I'm trying to "XCOPY /O" to a ZFS (nfsv4 ACLs) share.  Access  
> denied is returned.
>
> 	On debug I could read :
>
>
> [2009/04/23 15:50:54, 10] modules/nfs4_acls.c:(712)
>  smb_set_nt_acl_nfs4 invoked for JF/Yop/Ajout.rtf
> [2009/04/23 15:50:54, 10] modules/nfs4_acls.c:(397)
>  mode:simple, do_chown:true, acedup: dontcare
> [2009/04/23 15:50:54,  5] smbd/posix_acls.c:(1009)
>  unpack_nt_owners: validating owner_sids.
> [2009/04/23 15:50:54,  3] smbd/posix_acls.c:(1031)
>  unpack_nt_owners: owner sid mapped to uid 102628
> [2009/04/23 15:50:54, 10] lib/gencache.c:(208)
>  Returning valid cache entry: key = IDMAP/SID2GID/ 
> S-1-5-21-73586283-1979792683-839522115-513, value = 100513, timeout  
> = Mon Apr 27
> 10:49:39 2009
> [2009/04/23 15:50:54, 10] passdb/lookup_sid.c:(1511)
>  sid S-1-5-21-73586283-1979792683-839522115-513 -> gid 100513
> [2009/04/23 15:50:54,  3] smbd/posix_acls.c:(1053)
>  unpack_nt_owners: group sid mapped to gid 100513
> [2009/04/23 15:50:54,  5] smbd/posix_acls.c:(1056)
>  unpack_nt_owners: owner_sids validated.
> [2009/04/23 15:50:54,  3] modules/nfs4_acls.c:(741)
>  chown JF/Yop/Ajout.rtf, 102628, 100513 failed. Error = Vous n'êtes  
> pas propriétaire. (Not Owner)
> [2009/04/23 15:50:54,  3] smbd/error.c:(61)
>  error packet at smbd/nttrans.c(1701) cmd=160 (SMBnttrans)  
> NT_STATUS_ACCESS_DENIED
>
>
> 	
> [Sandbox]
>   path = /export/Sandbox
>   read only = no
>   public = no
>   vfs objects = zfsacl
>   acl map full control = no
>   force directory security mode = 0
> zfsacl: acesort = dontcare
> force unknown acl user = yes
>       map readonly = Permissions
>
>
>
>
>
>
> 		Any hint ?
>
>
>
> 	Nicolas
>



More information about the samba-technical mailing list