Bug 9475 - net share migrate: --attrs and --timestamps unusable
net share migrate: --attrs and --timestamps unusable
Status: NEW
Product: Samba 3.6
Classification: Unclassified
Component: Client Tools
3.6.9
x86 Linux
: P5 normal
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-07 08:22 UTC by Berni CED
Modified: 2012-12-07 08:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Berni CED 2012-12-07 08:22:13 UTC
I'm not able to use neither the --attrs nor --timestamps otions with the following command:
net rpc share migrate files public -U administrator -S src.example.com --destination=dst.example.com --acls --attrs --timestamps -v

For --attrs, the command exits immediately with the following error:
------------
syncing    [public] files and directories including ACLs, including DOS Attributes
failed to set file-attrs: NT_STATUS_ACCESS_DENIED
Could handle directory attributes for top level directory of share public. Error NT_STATUS_ACCESS_DENIED
Could not handle the top level directory permissions for the share: public
------------

For --timestamps, the command exits immediately with the following error:
------------
syncing    [public] files and directories including ACLs, without DOS Attributes (preserving timestamps)
failed to set file-attrs (timestamps): NT_STATUS_ACCESS_DENIED
Could handle directory attributes for top level directory of share public. Error NT_STATUS_ACCESS_DENIED
Could not handle the top level directory permissions for the share: public
------------

But that command operates only on shares, so if it cannot set such attributes in the top level directory, how can i use those parameters at all?
I suspect the problem is with the "net" program not samba server, because the same errors occurs even if i try to migrate one share to a Windows PC.

If the fix would not too easy to implement, can't be added a new --ignore-toplevel parameters to skip the top level directory and continue with everything else?

Searching on your technical mailing list and in your bug tracker, i've found:
- this ignored message from 2008 (not really the same problem but seems related):
http://lists.samba.org/archive/samba/2008-December/145290.html
- this interesting migration guide, splitted in two message. The most interesting part is the second, where the author had to patch and recompile samba source in order to workaround the error mentioned here and complete his migration:
http://lists.samba.org/archive/samba/2010-December/160073.html
http://lists.samba.org/archive/samba/2010-October/160074.html

If needed i can post smb.conf and other details at your request.

Cesare.