Linux:Unable to copy long( _ ,#) file name from windows to samba server

Some times , When trying to copy long directories/subdirectories or file name include (_ or # ) from windows to Samba server, it gives error example : “unable to copy” or “Cant move folder file_name_long_name.cfm ,the file name or extension is too long”

The solution is :

[ share ]
         path = /share-name /long-directory
         read only = no
         case sensitive = True
         default case = upper
         preserve case = no
         short preserve case = no

after Edit, please reboot the server

Leave a Reply