[Samba] Keeping Windows ACL's when migrating to SAMBA Server

Jeremy Allison jra at samba.org
Sun Dec 12 11:08:11 MST 2010

On Sun, Dec 12, 2010 at 09:21:32AM -0600, Chris Weiss wrote:
> On Sat, Dec 11, 2010 at 1:01 PM, George <greenadmins at gmail.com> wrote:
> > We setup a Ubuntu SAMBA 3.5 server and would like it to replace our current
> > Windows 2003 file server. I can manually copy the files over but need to
> > keep all the Windows UID's and GID's but am having trouble copying the files
> > over. Does anyone have any idea what im doing wrong or have any ideas for me
> > to do this?
> what are you using to copy?  a normal file copy wont' keep permissions
> even windows to windows, but robocoy will, and I think xcopy can

I just helped an OEM do a (successful) file migration complete
with ACLs from Windows to Samba using robocopy, so I'd suggest
that as the tool of choice.

Remember to do the migration as a (temporary) root account,
as robocopy may need to write ACLs that the migrating user
cannot access.

Will get fixed properly when I finish implementing SE_RESTORE
and SE_BACKUP privileges but until then the root account works
just as well.


More information about the samba mailing list