samba 无法显示中文文件和目录

由 coolsnow 在 06-28-2004 09:37 发表:

samba 无法显示中文文件和目录

我配置了SAMBA服务器,可是在网上邻居中浏览时发现无法看到共享文件的中文文件和目录。不是说显示乱码,而是就是看不到这样的文件夹和文件。

这是什么原因呢,我把smb.conf贴在下面,大家帮忙看看,好吗?

[global]

workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4

workgroup = WORKGROUP

server string is the equivalent of the NT Description field

server string = FreeBSD Samba Server

This option is important for security. It allows you to restrict

connections to machines which are on your local network. The

following example restricts access to two C class networks and

the "loopback" interface. For more examples of the syntax see

the smb.conf man page

; hosts allow = 192.168.1. 192.168.2. 127.

If you want to automatically load your printer list rather

than setting them up individually then you'll need this

load printers = no

you may wish to override the location of the printcap file

; printcap name = /etc/printcap

on SystemV system setting printcap name to lpstat should allow

you to automatically obtain a printer list from the SystemV spool

system

; printcap name = lpstat

It should not be necessary to specify the print system type unless

it is non-standard. Currently supported print systems include:

bsd, sysv, plp, lprng, aix, hpux, qnx

; printing = bsd

Uncomment this if you want a guest account, you must add this to /etc/passwd

otherwise the user "nobody" is used

; guest account = pcguest

this tells Samba to use a separate log file for each machine

that connects

log file = /var/log/log.%m

Put a capping on the size of the log files (in Kb).

max log size = 50

Security mode. Most people will want user level security. See

security_level.txt for details.

security = share

Use password server option only with security = server

The argument list may include:

password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]

or to auto-locate the domain controller/s

password server = *

; password server =

  1<nt-server-name>   
  2  
  3  
  4  
  5# Note: Do NOT use the now deprecated option of "domain controller"   
  6  
  7# This option is no longer implemented.   
  8  
  9  
 10  
 11# You may wish to use password encryption. Please read   
 12  
 13# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.   
 14  
 15# Do not enable this option unless you have read those documents   
 16  
 17encrypt passwords = yes   
 18  
 19null passwords = yes   
 20  
 21smbpasswd file = /usr/local/private/smbpasswd   
 22  
 23  
 24  
 25# Using the following line enables you to customise your configuration   
 26  
 27# on a per machine basis. The %m gets replaced with the netbios name   
 28  
 29# of the machine that is connecting   
 30  
 31; include = /usr/local/etc/smb.conf.%m   
 32  
 33  
 34  
 35# Most people will find that this option gives better performance.   
 36  
 37# See speed.txt and the manual pages for details   
 38  
 39# You may want to add the following on a Linux system:   
 40  
 41# SO_RCVBUF=8192 SO_SNDBUF=8192   
 42  
 43socket options = TCP_NODELAY   
 44  
 45  
 46  
 47# Configure Samba to use multiple interfaces   
 48  
 49# If you have multiple network interfaces then you must list them   
 50  
 51# here. See the man page for details.   
 52  
 53; interfaces = 192.168.12.2/24 192.168.13.2/24   
 54  
 55  
 56  
 57# Browser Control Options:   
 58  
 59# set local master to no if you don't want Samba to become a master   
 60  
 61# browser on your network. Otherwise the normal election rules apply   
 62  
 63; local master = no   
 64  
 65  
 66  
 67# OS Level determines the precedence of this server in master browser   
 68  
 69# elections. The default value should be reasonable   
 70  
 71; os level = 33   
 72  
 73  
 74  
 75# Domain Master specifies Samba to be the Domain Master Browser. This   
 76  
 77# allows Samba to collate browse lists between subnets. Don't use this   
 78  
 79# if you already have a Windows NT domain controller doing this job   
 80  
 81; domain master = yes   
 82  
 83  
 84  
 85# Preferred Master causes Samba to force a local browser election on startup   
 86  
 87# and gives it a slightly higher chance of winning the election   
 88  
 89; preferred master = yes   
 90  
 91  
 92  
 93# Enable this if you want Samba to be a domain logon server for   
 94  
 95# Windows95 workstations.   
 96  
 97; domain logons = yes   
 98  
 99  
100  
101# if you enable domain logons then you may want a per-machine or   
102  
103# per user logon script   
104  
105# run a specific logon batch file per workstation (machine)   
106  
107; logon script = %m.bat   
108  
109# run a specific logon batch file per username   
110  
111; logon script = %U.bat   
112  
113  
114  
115# Where to store roving profiles (only for Win95 and WinNT)   
116  
117# %L substitutes for this servers netbios name, %U is username   
118  
119# You must uncomment the [Profiles] share below   
120  
121; logon path = \\\%L\Profiles\%U   
122  
123  
124  
125# Windows Internet Name Serving Support Section:   
126  
127# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server   
128  
129; wins support = yes   
130  
131  
132  
133# WINS Server - Tells the NMBD components of Samba to be a WINS Client   
134  
135# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both   
136  
137; wins server = w.x.y.z   
138  
139  
140  
141# WINS Proxy - Tells Samba to answer name resolution queries on   
142  
143# behalf of a non WINS capable client, for this to work there must be   
144  
145# at least one WINS Server on the network. The default is NO.   
146  
147; wins proxy = yes   
148  
149  
150  
151# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names   
152  
153# via DNS nslookups. The built-in default for versions 1.9.17 is yes,   
154  
155# this has been changed in version 1.9.18 to no.   
156  
157dns proxy = no   
158  
159  
160  
161# Client codepage settings   
162  
163  
164  
165# for Greek users   
166  
167; client code page=737   
168  
169  
170  
171# for European users (Latin 1)   
172  
173; client code page=850   
174  
175  
176  
177# for European users (Latin 2)   
178  
179; client code page=852   
180  
181  
182  
183# for Icelandic users   
184  
185; client code page=861   
186  
187  
188  
189# for Cyrillic users   
190  
191; client code page=866   
192  
193  
194  
195# for Japanese Users   
196  
197; client code page=932   
198  
199; coding system=cap   
200  
201  
202  
203# for Simplified Chinese Users   
204  
205client code page=936   
206  
207coding system=cap   
208  
209  
210  
211# for Korean Users   
212  
213; client code page=949   
214  
215; coding system=cap   
216  
217  
218  
219# for Traditional Chinese Users   
220  
221; client code page=950   
222  
223; coding system=cap   
224  
225  
226  
227#============================ Share Definitions ==============================   
228  
229[homes]   
230  
231comment = Home Directories   
232  
233browseable = no   
234  
235writeable = yes   
236  
237create mask = 0755   
238  
239# Un-comment the following two lines to add a recycle bin facility to a samba share   
240  
241# NOTE: It currently doesn't work with the [homes] virtual share, use a regular share instead   
242  
243; vfs object = /usr/local/lib/samba/recycle.so   
244  
245; vfs options= /usr/local/etc/recycle.conf.default   
246  
247  
248  
249# Un-comment the following and create the netlogon directory for Domain Logons   
250  
251; [netlogon]   
252  
253; comment = Network Logon Service   
254  
255; path = /usr/local/samba/lib/netlogon   
256  
257; guest ok = yes   
258  
259; writeable = no   
260  
261; share modes = no   
262  
263  
264  
265  
266  
267# Un-comment the following to provide a specific roving profile share   
268  
269# the default is to use the user's home directory   
270  
271;[Profiles]   
272  
273; path = /usr/local/samba/profiles   
274  
275; browseable = no   
276  
277; guest ok = yes   
278  
279  
280  
281  
282  
283# NOTE: If you have a BSD-style print system there is no need to   
284  
285# specifically define each individual printer   
286  
287[printers]   
288  
289comment = All Printers   
290  
291path = /var/spool/samba   
292  
293browseable = no   
294  
295# Set public = yes to allow user 'guest account' to print   
296  
297guest ok = no   
298  
299writeable = no   
300  
301printable = yes   
302  
303  
304  
305# This one is useful for people to share files   
306  
307;[tmp]   
308  
309; comment = Temporary file space   
310  
311; path = /tmp   
312  
313; read only = no   
314  
315; public = yes   
316  
317  
318  
319# A publicly accessible directory, but read only, except for people in   
320  
321# the "staff" group   
322  
323;[public]   
324  
325; comment = Public Stuff   
326  
327; path = /home/samba   
328  
329; public = yes   
330  
331; writeable = yes   
332  
333; printable = no   
334  
335; write list = @staff   
336  
337  
338  
339# Other examples.   
340  
341#   
342  
343# A private printer, usable only by fred. Spool data will be placed in fred's   
344  
345# home directory. Note that fred must have write access to the spool directory,   
346  
347# wherever it is.   
348  
349;[fredsprn]   
350  
351; comment = Fred's Printer   
352  
353; valid users = fred   
354  
355; path = /homes/fred   
356  
357; printer =</nt-server-name>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus