Trouble Copying or Moving Files from a Mac.

The operation can’t be completed because an unexpected error occurred (error code -50).

If you get this error, it’s not because your file names are too long, or you have funny characters in the file names that don’t play well with the intended destination server.  This issue comes from Apple’s OS X file extended attributes for each mac file there are at least 1 hidden file.  These are resource forks and if they are courrupt or have specific permissions set it can cause problems.  If you are looking at the affected files on a PC you will notice a bunch of hidden files with a prefix of “._ “.  NTFS Streams is the best option to have enabled for your mac if you are sharing files with other file system servers or computers.  This will also keep the system clean of unnecessary files.

To fix this problem you must first enable the root user account.  To do this Open Directory Services found usually in Applications > Utilities, in OS X 10.6 you have to open System Preferences > Accounts > Login Options > under “Network Account Server” Click on “Join”, then you will see the option for “Open Directory Utility”.  When you are finally there you must “unlock” to make changes then at the top menu bar click “Edit” > Enable Root User Account.  I highly recommend making a complex password; this is very important for security purposes.  For a complex password I recommend using http://www.randompassword.com.  After creating this you must open up the Terminal Command Line Utility found under Applications > Utilities then do the following commands.

1)       su root
2)      [use the root password you just created]
3)      cd /etc
4)      touch nsmb.conf
5)      emacs nsmb.conf
6)      [Copy and Paste the following]
#######
[default]
streams=no
#######
7)      Control+X > Control+S > Control+X > Control+C
8)      Exit Terminal and Reboot the Computer.

When you’ve completed this and the computer starts back up it will refresh the networks settings and find this file and force NTSF streams when connecting to other servers.

– Harry Caskey

2 Replies to “Trouble Copying or Moving Files from a Mac.”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.