?
Solved

Problem with smbclient and WinNT

Posted on 2003-03-26
4
Medium Priority
?
1,929 Views
Last Modified: 2013-12-27
Hi,

i'm backing up files from a Windows NT4 box to the tape streamer on Solaris with smbclient and -T option. The problem occurs when i want to get files from Windows that contains special characters as n-tilde, e-accent and so on, all valid characters in windows file names. Then smbclient reports :
NT_STATUS_OBJECT_NAME_NOT_FOUND opening remote file \fotos\peque\361a.jpg

That means \361 is the octal code of n-tilde on Solaris.

Any ideas to control the translation of character codes ?

Thank you, Peter.

Environment: Solaris 2.6, Samba 2.2.5, Windows NT4 SP6
0
Comment
Question by:adminpeter
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
soupdragon earned 60 total points
ID: 8211058
You can allow samba to cater for these characters by adding them using the valid chars directive in the samba config file smb.conf

valid chars = 0x0361:0x0A00 etc.

This option is now deprecated and recommendation is to use the client code page parameter - default is 850 (Western European). You can modify the standard codepages using the make_smbcodepage utility.
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8211076
Sorry - I gave those characters in Hex should be octal - 0361 etc I think. You can use Hex, Octal or actual characters (If you can find out how to enter them!)
0
 

Author Comment

by:adminpeter
ID: 8211575
Hello soupdragon,

thank you for your comment.

I think smbclient don't use smb.conf at all. I change my smb.conf but nothing happens.

In interactive smbclient mode i connect to the share and list (ls) the contents and then i get the correct names in the printed list. But if i do ls with a specific filename argument that contains those characters i get the mentioned message. So i create from smbclient something on the share with a special character and the name on the share has another special character at this position.

At this moment i conclude there is a lack of smbclient to translate characters when it sends filenames to the Win NT box. There is a parameter (-t translate code) in smbclient and i see the source but i cannot figure out, where is the trick (if exists...).

Thank you for your help so far ...
Peter.
0
 

Author Comment

by:adminpeter
ID: 8218691
Hello soupdragon again,

sorry, but i get a little bit confused.
So the following entries in smb.conf (you are right) do the job for me:

[global]
character set = iso8859-1
client code page = 850

Problem solved, thanks a lot, bye.
Peter.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question