I'm trying to copy files to a Samba share that I have set up on a linux debian machine from a Mac running OS X, using samba 3.0.24. The Mac complains that there is something wrong with the file name, and then refuses to copy, and the operation leaves a zero-byte file with the same name on the samba share. It lets me log in nicely through the Mac File Finder. I've just spent a couple of hours searching the net but without any luck at all. Does anyone know what I should do in this situation? The samba share works fine from my other linux machine. Thanks Adam
Are the Mac files using any ILLEGAL Windows characters? The Mac pretty much allows any character in a filename, as long as it is escaped properly, while Windows can't handle things like... ? [ ] / \ = + < > : ; " , The Mac will pretty much allow any of them to be used in a filename. Mike On 11/12/07, Adam Hardy <adam.ant@cyberspaceroad.com> wrote:> > I'm trying to copy files to a Samba share that I have set up on a linux debian > machine from a Mac running OS X, using samba 3.0.24. > > The Mac complains that there is something wrong with the file name, and then > refuses to copy, and the operation leaves a zero-byte file with the same name on > the samba share. > > It lets me log in nicely through the Mac File Finder. > > I've just spent a couple of hours searching the net but without any luck at all. > Does anyone know what I should do in this situation? > > The samba share works fine from my other linux machine. > > > Thanks > Adam > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >-- Help the Environment, Plant a Bush back in Texas! "I place economy among the first and most important republican virtues, and public debt as the greatest of the dangers to be feared. To preserve our independence, we must not let our rulers load us with perpetual debt." -- Thomas Jefferson, third US president, architect and author (1743-1826) "Give Peace a Chance" -- John Lennon (9 October 1940 ? 8 December 1980) Peace may sound simple?one beautiful word? but it requires everything we have, every quality, every strength, every dream, every high ideal. ?Yehudi Menuhin (1916?1999), musician If you think you can, or you think you can't, you are probably right. ?Mark Twain "Art may imitate life, but life imitates TV." Ani DiFranco
Adam Hardy wrote:> > I'm trying to copy files to a Samba share that I have set up on a linux > debian machine from a Mac running OS X, using samba 3.0.24. > > The Mac complains that there is something wrong with the file name, and > then refuses to copy, and the operation leaves a zero-byte file with the > same name on the samba share.I had similiar problems with Mac's when I had veto files = /.*/ in samba share to pervent users from deleting their linux profile files from Windows workstations. (OSx likes to create .DS_Store -files to it's folders) For some reason files could be written to samba from Macs terminal window. Chancing veto files to /.bash*/ fixed problem for me. -- Mikko Suomi
Good tip. I'm posting it to lists.samba.org so it will end up in the archives. Thanks Adam Ryan Bair on 15/11/07 18:32, wrote:> As a side note, there is an option for the Mac clients to disable the > .DS_Store files from being created on network volumes. I always use > this on my clients because the .DS_Store creation will update the > modtime on the directory every single time a user goes to the > directory. It also causes the directory to open in the same view that > the last person was using, which tends to irritate users. > > The command is "defaults write com.apple.desktopservices > DSDontWriteNetworkStores true" in the terminal. > > --Ryan > > On Nov 15, 2007 3:34 AM, Adam Hardy <adam.ant@cyberspaceroad.com> wrote: >> Mikko Suomi on 14/11/07 16:48, wrote: >>> Adam Hardy wrote: >>>> I'm trying to copy files to a Samba share that I have set up on a >>>> linux debian machine from a Mac running OS X, using samba 3.0.24. >>>> >>>> The Mac complains that there is something wrong with the file name, >>>> and then refuses to copy, and the operation leaves a zero-byte file >>>> with the same name on the samba share. >>> I had similiar problems with Mac's when I had veto files = /.*/ in samba >>> share to pervent users from deleting their linux profile files from >>> Windows workstations. (OSx likes to create .DS_Store -files to it's >>> folders) For some reason files could be written to samba from Macs >>> terminal window. Chancing veto files to /.bash*/ fixed problem for me. >> Thanks for the tip. >> >> I had veto = /*.{*}/.*/mail/bin >> >> - put in there by default by SWAT!