?
Solved

Problem with smbclient and WinNT

Posted on 2003-03-26
4
Medium Priority
?
1,916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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

752 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