Thomas Robinson
2002-Mar-05 06:57 UTC
[Samba] character translations with smbclient (was Share Access)
Hi, Thanks for the tip. I went to the Netherlands last week so didn't get a chance to try this out until this week. I upgraded to samba 2.2.3a and that helped. The bad news is that it only solved some of the problems. The file link to the floppy backs up now as the translation of the link is consistent somehow, but the character translation on the $ (dollar sign) and ? (pound sign) is not working yet. Admittedly it is translated to something different than when using samba 2.2.2, but it still can't be backed up. :( Am I sufficiently off topic yet to be completely flamed of the amanda list? Any one else seen this whilst using amanda? TIA, Tom> -----Original Message----- > From: Paul Bijnens [mailto:Paul.Bijnens@xplanation.com] > Sent: 22 February 2002 13:30 > To: Thomas Robinson > Cc: Amanda-Users (E-mail) > Subject: Re: Share Access > > > > > Thomas Robinson wrote: > > > > I'm trying to backup some Windows shares and keep getting > these STRANGE > > reports from amamnda: > > > > I've found character substitutions on the some filenames > where some of > > the characters in the filenames are special characters: > > > > $ becomes oe ('dollar sign' becomes 'oe' diphthong) > > ? becomes ? ('1/2' becomes '<<' double left chevrons) > > > > '? ERRDOS - ERRbadfile opening remote file' on files where these > > substitutions occur. > > > Speaking for my experience: it happens only with Samba 2.2.2. > When I noticed it, I downgraded to samba 2.2.0 again, and the problem > went away. Recently Samba 2.2.3a is out, and it works fine there too. > > I mentioned this problem on the samba list about half a year ago, > but never got any meaningful replies, so I'm not sure if it really is > the problem. Anyway since I upgraded to 2.2.3a last week, the problem > did not reappear again. YMMV. > > > -- > Paul Bijnens, Lant Tel +32 > 16 40.51.40 > Interleuvenlaan 15 H, B-3001 Leuven, BELGIUM Fax +32 > 16 40.49.61 > http://www.lant.com/ email: > Paul.Bijnens@lant.be > ************************************************************** > ********* > * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, > ^Q, F6, * > * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, > bye, /bye, * > * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, > hangup, * > * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, > shutdown, * > * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, > ... * > * ... "Are you sure?" ... YES ... Phew ... I'm out > * > ************************************************************** > ********* >
Paul Bijnens
2002-Mar-05 08:12 UTC
[Samba] Re: character translations with smbclient (was Share Access)
Thomas Robinson wrote:> > > > $ becomes oe ('dollar sign' becomes 'oe' diphthong) > > > ? becomes ? ('1/2' becomes '<<' double left chevrons) > > I upgraded to samba 2.2.3a and that helped. The bad news is that it only > solved some of the problems. The file link to the floppy backs up now as > the translation of the link is consistent somehow, but the character > translation on the $ (dollar sign) and ? (pound sign) is not working > yet. Admittedly it is translated to something different than when using > samba 2.2.2, but it still can't be backed up. :(I just noticed last week that the upgrade to 2.2.3a worked for all my clients except the Win95 clients (only 2 left :-). When using 2.2.2 they did not complain, and now they complain for filenames as "\t?l?com.doc", with errmsg: ERRDOS - ERRbadfile opening remote file Downgrading to 2.2.2 makes Win95 work ok, but fails on Win2K :-( You can't win them all. Something you may have to look at: What codepage is the client using? (type "chcp" in a dos prompt) What characterset is de Unix server configured to? (see the "character set" parameter in smb.conf) I have mine set to codepage 850 for the clients, and 'character set = ISO8859-1' in smb.conf. See the explanation in "man smb.conf" on character sets. It may be completely unrelated, as I don't know if smbclient uses these settings at all.> Am I sufficiently off topic yet to be completely flamed of the amanda > list? Any one else seen this whilst using amanda?I'm sure many Amanda users have the problem, but it surely is a Samba problem. Just try smbclient -T... by hand on a small directory to experiment: Amanda uses this command: smbclient '\\pc\share' -U username -E -W workgroup -d0 -Tqca - | ... Depending on samba version (2.2.0 - 2.2.2 - 2.2.3a), you get different errors on filenames with non-USascii characters. ps. I'm not on the Samba list, please CC me too. -- Paul Bijnens, Lant Tel +32 16 40.51.40 Interleuvenlaan 15 H, B-3001 Leuven, BELGIUM Fax +32 16 40.49.61 http://www.lant.com/ email: Paul.Bijnens@lant.be *********************************************************************** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***********************************************************************