Alexander E. Patrakov wrote these words on 06/04/05 11:51 CST:

> Scenario 1: minimal standalone client-only installation. Choose this 
> variant if you only want to transfer files using smbclient, mount 
> Windows shares and print to Windows printers, and don't want to share 
> your files and printers to Windows machines.
> 
> The configuration file with the following three parameters is sufficient:
> 
> [global]
>       workgroup = MYGROUP
>       dos charset = cp850
>       unix charset = ISO-8859-1
> 
> The values in this example specify that the computer belongs to a 
> Windows workgroup named "MYGROUP", uses the cp850 character set on the 
> wire when talking to MS-DOS and MS Windows 9x, and that the filenames 
> are stored in the ISO-8859-1 encoding on the disk.

Alex, again, thanks for the wonderful text. As I mentioned previously,
the text will go in the book. However, I would like you to clarify
one thing for me. The 'dos charset' in the smb.conf file. I don't seem
to need it. Here's an example from Linux to a Win98 machine. (this
example does show the need for 'unix charset' in the smb.conf file)

This example is long, but I felt everything was necessary to show the
facts.
===================================================================
[EMAIL PROTECTED]: ~ > locale
LANG=en_US

[EMAIL PROTECTED]: ~ > locale -ck charmap
LC_CTYPE
charmap="ISO-8859-1"

[EMAIL PROTECTED]: ~ > ls -l
total 12
drwx------   2 rml install 4096 2005-05-19 10:47 bin
drwxr-x---  17 rml users   4096 2005-06-03 15:50 build
drwxr-xr-x   2 rml install 4096 2005-05-24 10:33 Tunes

[EMAIL PROTECTED]: ~ > grep "unix charset" /etc/samba/smb.conf
#   unix charset = ISO-8859-1

[EMAIL PROTECTED]: ~ > grep "dos charset" /etc/samba/smb.conf
#   dos charset = cp850

[EMAIL PROTECTED]: ~ > smbclient //randy/fax
Password:

smb: \> dir
  .                                   D        0  Fri Aug 16 15:33:36 2002
  ..                                  D        0  Fri Aug 16 15:33:36 2002
  áfile.txt                          A        0  Sat Jun  4 11:31:38 2005

                51815 blocks of size 262144. 15555 blocks available

smb: \> get áfile.txt
ERRDOS - ERRbadfile (File not found.) opening remote file \_file.txt
smb: \> quit

[EMAIL PROTECTED]: ~ > ls -l
total 12
drwx------   2 rml install 4096 2005-05-19 10:47 bin
drwxr-x---  17 rml users   4096 2005-06-03 15:50 build
drwxr-xr-x   2 rml install 4096 2005-05-24 10:33 Tunes


[EMAIL PROTECTED]: ~ > grep "unix charset" /etc/samba/smb.conf
   unix charset = ISO-8859-1

[EMAIL PROTECTED]: ~ > grep "dos charset" /etc/samba/smb.conf
#   dos charset = cp850

[EMAIL PROTECTED]: ~ > smbclient //randy/fax
Password:
smb: \> dir
  .                                   D        0  Fri Aug 16 15:33:36 2002
  ..                                  D        0  Fri Aug 16 15:33:36 2002
  áfile.txt                           A        0  Sat Jun  4 11:31:38 2005

                51815 blocks of size 262144. 15555 blocks available

smb: \> get áfile.txt
getting file \áfile.txt of size 0 as áfile.txt (0.0 kb/s) (average 0.0 kb/s)
smb: \> quit

[EMAIL PROTECTED]: ~ > ls -l
total 12
-rw-r--r--   1 rml install    0 2005-06-04 12:22 áfile.txt
drwx------   2 rml install 4096 2005-05-19 10:47 bin
drwxr-x---  17 rml users   4096 2005-06-03 15:50 build
drwxr-xr-x   2 rml install 4096 2005-05-24 10:33 Tunes
===================================================================

What am I missing with the need for the 'dos charset' setting in the
smb.conf file? I don't appear to need this.

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
12:32:00 up 63 days, 12:05, 2 users, load average: 0.04, 0.12, 0.05
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to