Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on Samba share....

Status
Not open for further replies.

thinker8

MIS
Mar 3, 2008
3
CA
I have Samba 3.0.26 running on AIX5.3, sharing out a couple of UNIX filesystems to the PC world. When the user drops a text file to the share, all files have the '^M' at the end of each line... (I believe it's a carriage return)

I think Samba is transferring the file thru ftp binary mode, is there any way to tell Samba to use ascii mode...so that I don't have '^M' on each line...???

Thx

 
No. Samba won't change files; it faithfully passes on what it's given, using the SMB/CIFS protocol. The best solution is to educate your users, but maybe they actually need Windows-style line endings for certain Windows software? As a last resort, for those files that need Unix-style line endings, you could either run a cron job to convert them, or alter the software that processes them to accept either format.
 
Tony, they actually put a csv file (coming from MS Excel) to the Samba share, and the file has a "^M" at the end of each line...

I have a script to take out the "^M" and maybe put into the cron to check every minute...

 
FYI a Samba share holds WINDOWS files ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
thinker8:

It is possible that samba is not correctly converting the filenames. There are two options in smb.conf that pertain to this:

dos charset
unix charset

If they aren't set correctly samba won't translate the text properly.

If you do a 'man smb.conf' it will give you details on how to set these properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top