I have a shared over samba directory which i access from my windows development box. Problem is that when i create and edit files they are saved with dos linebreaks. Is there any way to configure samba to do automatic translation for all text files? Or perhaps files of certain type?
Here is the relevant section from the docs.
Personally, I think it is easier to simply use a text editor on windows which allows you to set the line ending style.
Samba is a server and client for accessing SMB networks. It doesn't parse the contents of files. Your best solution is to use a text editor in Windows that produces files with UNIX linebreaks. Anything else will be a real kludge. I suggest Notepad++ for Windows. It should be available on Sourceforge.
Actually, samba can. For instance using the Samba File Extension Mapping VFS Module (google it)
Combine it with tofrodos or a similar program to convert crlf<>lf