[Samba] Migration from WindowsNT to Samba

Andrew Bartlett abartlet at samba.org
Fri Mar 7 11:04:10 GMT 2003


On Fri, 2003-03-07 at 20:19, Michael Heironimus wrote:
> On Fri, Mar 07, 2003 at 09:47:35AM +0100, JaS at codan.com wrote:
> > My problem is when I copy the files, I want the ownership of the files
> > preserved. When I copy the files, as it is now, the user copying the files
> > are set as owner. This is not, what I want. I want the original owner to
> > own the files after copying. And I'm not talking about files in personal
> > shares, it is the public and group shares with several possible file
> > owners.
> 
> I think the standard answer to "how do I keep ownerships/ACLs when
> copying files in NT" is "use scopy from the resource kit". scopy is a
> Windows NT command-line tool that works just like xcopy, but can
> retain ownerships and permissions. In Windows 2000 that functionality is
> available in the standard xcopy program, but I think there still isn't a
> way to do it from explorer. This has always been one of NT's significant
> flaws as a file server - you don't really have any more advanced tools
> for managing this kind of thing than you do on a single-user
> workstation.

A few other tips:

Make sure you log in to your samba server as root (it sounds completely
natural if you have a unix background when you come from unix, but the
windows admins don't quite expect it), have ACLs enabled in Samba and an
ACLed filesystem installed.

Make sure that you have cloned your NT server using tools like 'net rpc
vampire' so that the SIDs match up.  (you will also need to steal your
current DCs domain SID too).

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030307/a8030e43/attachment.bin


More information about the samba mailing list