1

I am migrating some data (2TB) off of a Windows NTFS server file share to a Mac OS X file share. I need to strip all the NTFS permissions, except for the time stamps.

Any good scripts out there with example directory names\group\users you can share?

I need a way to do this from Windows or in OS X.

Thx!

4 Answers 4

3

Robocopy will do everything you are looking for.

2
  • 1
    Dammit! Why didn't i think of that. i use it all the time lol! doh! does it work on a mac though?
    – Mucker
    Jun 10, 2011 at 23:24
  • 2
    @Mucker - Robocopy will only run on a Windows client, but the target can be an OSX network share.
    – daalbert
    Jun 10, 2011 at 23:28
1

Correct me if I'm wrong but isn't NTFS a windows file system and Mac OS has its own file system? I am VERY limited in my Mac knowledge though. I know MACs can read NTFS drives but you are saying you are moving the data to a new share on the Mac. This means you will lose the NTFS security naturally because the Mac server won't have any NTFS drives in it...unless of course you have installed one?

As for time stamps I don't think you can change these...timestamps are timestamps and are there for a reason. usually the main timestamp people want to keep intact is "date modified". Have you even tested this with one file moving it to the Mac? I have just tested it now moving a file between two pc's on NTFS drives and the date modified wwasn't changed. "date created" and "last time accessed" were though. I cant vouch for the same happening on a Mac however as i dont have one!

If the timestamps could be modified then they could be abused.

1
1

You don't need to worry about it. When copying across file system boundaries NTFS permissions will not be copied.

0

The closest thing is to change ownerships to the Administrators group (takeown /r /a somefolder) and reset the file permissions with inherited ones (icacls somefolder /reset /t /c).

However, you shouldn't have to do this, because NTFS-specific data (ownership, ACLs, auditing) will simply be lost when copying to the file system used by Mac OS X.

2
  • isn't that what i already said about the drive permissions?? And taking ownership and changing perms will update the modified date. So he should use the APi u mentioned to keep the timestamps the same
    – Mucker
    Jun 10, 2011 at 23:27
  • @Mucker: The "Modification" timestamp only applies to file data, not to metadata. It is not updated when modifying ACLs or attributes. Jun 11, 2011 at 7:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .