Move Files While Keeping Permissions Intact with “Paste Item Exactly” in the Mac OS X Finder
Cutting and pasting files within the OS X Finder is an easy way to move files and folders around on the Mac, particularly for Windows converts, but by default the cut and paste function changes permissions and ownership during the file move process. For the most part that is desirable, but if you are logged in as an administrator and are modifying another users files or folders, even the Guest user, you may wish to preserve file ownership and user privileges (permissions in unix-speak) when moving the documents around. OS X makes this simple through a hidden function called “Paste Item Exactly”, it’s a somewhat advanced feature in terms of need, but it’s accessible easily through the Edit menu.
You can think Paste Item Exactly as the file relocation version of the Duplicate Exactly function, which copies a file while maintaining ownership and permissions as they originated, of course the difference being that this is moving the file or folder, rather than making a copy of it.
Relocate Files While Preserving Ownerships & Permissions in OS X
Here’s how to use “Paste Item Exactly” to move something in OS X while maintaining ownership and permissions of the origin file and/or directories within the Mac Finder:
- From the OS X Finder, select the file/folder to copy
- Right-click (or control+click) and choose “Copy (filename)”
- Navigate to the new destination directory within the Finder
- Hold down Shift+Option and access the “Edit” menu and choose “Paste Item Exactly” to move the file to the new location while maintaining permissions data for the file / folder
You can confirm the file ownership and privileges is the same if you want by using the Get Info window to view the files permissions, accessible through Command+i or from the File menu.
Keyboard Shortcuts for Moving Files While Maintaining Ownerships & Permissions
You can also do the exact same function of relocating a file while preserving the ownership and permissions quickly with keyboard shortcuts, here are the keystrokes to use in OS X for that purpose:
- Select the file or directory as usual
- Hit Command+C to copy the file (it will not move yet)
- Navigate to the destination directory in Finder
- Hit Command+Shift+Option+V to “Paste Item Exactly” at the new location (this moves the file while keeping permissions)
- Authenticate as necessary
Again, for most purposes you want to use the standard cut & paste file operation, or just move the file with drag and drop which is what most Mac users are accustomed to. Using “Paste Item Exactly” is intended for specific item relocation where a user wants to maintain the files permissions exactly as they originated, and not change the permission and not reassign them to a new user.