Hi, I?m in the process of testing out the net rpc share migrate data migration tool but keep running into an error message when using the --acl option. I?m testing using the following command: net rpc share migrate files -S 10.36.32.36 --acls --attrs --timestamps -v -U "gibbss" but get with this error for each file in the share: [2005/09/05 16:50:02, 0] utils/net_rpc_printer.c:net_copy_fileattr(384) could not set secdesc on \WinAXE_Plus_v7\xwpdllid.dll: NT_STATUS_ACCESS_DENIED could not copy file \WinAXE_Plus_v7\xwpdllid.dll: NT_STATUS_ACCESS_DENIED Each file copies OK and the timestamp is correct but none of the ACL?s are there. ACL/xattrs mount options have already been added to the filesystem and I can use setfacl/getfacl so can?t see a problem with ACL support and the share is on a PC logged in with the user account specified so all the files are owned by that account. I guess this must be a permission problem somewhere but can?t think what it may be. Can anyone point me in the right direction? Thanks, Simon ******************************************************************************** The information contained in this email message may be confidential. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. Although this message and any attachments are believed to be free of viruses, no responsibility is accepted by T&F Informa for any loss or damage arising in any way from receipt or use thereof. Messages to and from the company are monitored for operational reasons and in accordance with lawful business practices. If you have received this message in error, please notify us by return and delete the message and any attachments. Further enquiries/returns can be sent to postmaster@tfinforma.com
Guenther Deschner
2005-Sep-06 10:25 UTC
[Samba] Data migration using net rpc share migrate
Hi, On Mon, Sep 05, 2005 at 05:04:04PM +0100, Gibbs, Simon wrote:> Hi, > > I?m in the process of testing out the net rpc share migrate data migration > tool but keep running into an error message when using the --acl option. > > I?m testing using the following command: > net rpc share migrate files -S 10.36.32.36 --acls --attrs --timestamps -v -U > "gibbss" > but get with this error for each file in the share: > [2005/09/05 16:50:02, 0] utils/net_rpc_printer.c:net_copy_fileattr(384) > could not set secdesc on \WinAXE_Plus_v7\xwpdllid.dll: > NT_STATUS_ACCESS_DENIED > could not copy file \WinAXE_Plus_v7\xwpdllid.dll: NT_STATUS_ACCESS_DENIED > Each file copies OK and the timestamp is correct but none of the ACL?s are > there. > > ACL/xattrs mount options have already been added to the filesystem and I can > use setfacl/getfacl so can?t see a problem with ACL support and the share is > on a PC logged in with the user account specified so all the files are owned > by that account. I guess this must be a permission problem somewhere but > can?t think what it may be. > > Can anyone point me in the right direction?this can happen because of: - smbd not being built with acl-support (verify by setting ACLs manually using Explorer) - a chown failing due to the fact that the owner of that particular file on 10.36.32.36 is a group (and not a user) *and* that the share you are copying to on samba has not set the "force unknown acl user" option. If this file is owned by a group then set "force unknown acl user = yes" on the samba share. - the user "gibbs" cannot set ACLs to files inside that directory due to permissions. You could increase the samba log level to find out where it fails. Guenther -- G?nther Deschner GPG-ID: 8EE11688 Novell / SUSE LINUX gd@suse.de Samba Team gd@samba.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20050906/4c352973/attachment.bin