由 pen2 在 11-01-2003 10:37 发表:
高手帮我看以下我的samba问题
我装的是redhat ads3.0版本,但是samba服务启动后,从客户端win2000看服务器共享的中文文件名是乱码,下面是我的samba配置,大家看看有什么问题
[global]
client code page = 936
workgroup = aa
server string = server
hosts allow = 192.168.1. 192.168.2. 127.
printcap name = /etc/printcap
load printers = yes
printing = bsd
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
; password server =
1<nt-server-name>
2
3; password level = 8
4
5; username level = 8
6
7; encrypt passwords = yes
8
9; smb passwd file = /etc/samba/smbpasswd
10
11; unix password sync = Yes
12
13; passwd program = /usr/bin/passwd %u
14
15; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
16
17; username map = /etc/samba/smbusers
18
19; include = /etc/samba/smb.conf.%m
20
21socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
22
23; interfaces = 192.168.12.2/24 192.168.13.2/24
24
25; remote browse sync = 192.168.3.25 192.168.5.255
26
27; remote announce = 192.168.1.255 192.168.2.44
28
29; local master = no
30
31; os level = 33
32
33; domain master = yes
34
35; preferred master = yes
36
37; domain logons = yes
38
39; logon script = %m.bat
40
41; logon script = %U.bat
42
43; logon path = \\\%L\Profiles\%U
44
45; name resolve order = wins lmhosts bcast
46
47; wins support = yes
48
49; wins server = w.x.y.z
50
51; wins proxy = yes
52
53username map = /etc/samba/smbusers
54
55password server = None
56
57dns proxy = no
58
59; preserve case = no
60
61; short preserve case = no
62
63; default case = lower
64
65; case sensitive = no
66
67
68
69#============================ Share Definitions ==============================
70
71[homes]
72
73comment = Home Directories
74
75browseable = no
76
77writeable = yes
78
79
80
81; [netlogon]
82
83; comment = Network Logon Service
84
85; path = /home/netlogon
86
87; guest ok = yes
88
89; writable = no
90
91; share modes = no
92
93
94
95
96
97# the default is to use the user's home directory
98
99;[Profiles]
100
101; path = /home/profiles
102
103; browseable = no
104
105; guest ok = yes
106
107
108
109
110
111[printers]
112
113comment = All Printers
114
115path = /var/spool/samba
116
117browseable = no
118
119printable = yes
120
121
122
123;[tmp]
124
125; comment = Temporary file space
126
127; path = /tmp
128
129; read only = no
130
131; public = yes
132
133
134
135# A publicly accessible directory, but read only, except for people in
136
137# the "staff" group
138
139;[public]
140
141; comment = Public Stuff
142
143; path = /home/samba
144
145; public = yes
146
147; read only = yes
148
149; write list = @staff
150
151
152
153# Other examples.
154
155#
156
157# A private printer, usable only by fred. Spool data will be placed in fred's
158
159# home directory. Note that fred must have write access to the spool directory,
160
161# wherever it is.
162
163;[fredsprn]
164
165; comment = Fred's Printer
166
167; valid users = fred
168
169; path = /homes/fred
170
171; printer = freds_printer
172
173; public = no
174
175; writable = no
176
177; printable = yes
178
179
180
181# A private directory, usable only by fred. Note that fred requires write
182
183# access to the directory.
184
185;[fredsdir]
186
187; comment = Fred's Service
188
189; path = /usr/somewhere/private
190
191; valid users = fred
192
193; public = no
194
195; writable = yes
196
197; printable = no
198
199
200
201# a service which has a different directory for each machine that connects
202
203# this allows you to tailor configurations to incoming machines. You could
204
205# also use the %u option to tailor it by user name.
206
207# The %m gets replaced with the machine name that is connecting.
208
209;[pchome]
210
211; comment = PC Directories
212
213; path = /usr/pc/%m
214
215; public = no
216
217; writable = yes
218
219
220
221# A publicly accessible directory, read/write to all users. Note that all files
222
223# created in the directory by users will be owned by the default user, so
224
225# any user with access can delete any other user's files. Obviously this
226
227# directory must be writable by the default user. Another user could of course
228
229# be specified, in which case all files would be owned by that user instead.
230
231;[public]
232
233; path = /usr/somewhere/else/public<br</nt-server-name>