samba 一直配不成功,希望大家指定一下。

由 linuxth 在 10-01-2004 00:23 发表:

samba 一直配不成功,希望大家指定一下。

使用版本LINUX 3 AS实现与XP机子互访,花了时间都配制不好,现贴出源文件FSB.CONF,大家指点一下。我已经再XP和LINUX下建立了相同的帐号。且已经在

/etc/samba下产生了smbpasswd文件

情况是,XP机子不能访问我的LINUX共享目录

XP试图进入LINUX PC时,错误提示[找不到网络路径,没有权限与管理员联系等错误]

#======================= Global Settings =====================================

[global]

workgroup = workgroup

netbios name = server

server string = Samba Server

; hosts allow = 192.168.1. 192.168.2. 127.

printcap name = /etc/printcap

load printers = yes

; printing = bsd

guest account = nobody

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

max log size = 50

security = user

Use password server option only with security = server

; password server =

  1<nt-server-name>   
  2  
  3  
  4  
  5# Password Level allows matching of _n_ characters of the password for   
  6  
  7# all combinations of upper and lower case.   
  8  
  9; password level = 8   
 10  
 11; username level = 8   
 12  
 13  
 14  
 15  
 16  
 17; encrypt passwords = yes   
 18  
 19; smb passwd file = /etc/samba/smbpasswd   
 20  
 21  
 22  
 23  
 24  
 25; unix password sync = Yes   
 26  
 27; passwd program = /usr/bin/passwd %u   
 28  
 29; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*   
 30  
 31; username map = /etc/samba/smbusers   
 32  
 33  
 34  
 35; include = /etc/samba/smb.conf.%m   
 36  
 37  
 38  
 39socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192   
 40  
 41  
 42  
 43  
 44  
 45; interfaces = 192.168.12.2/24 192.168.13.2/24   
 46  
 47  
 48  
 49  
 50  
 51; remote browse sync = 192.168.3.25 192.168.5.255   
 52  
 53# Cause this host to announce itself to local subnets here   
 54  
 55; remote announce = 192.168.1.255 192.168.2.44   
 56  
 57  
 58  
 59  
 60  
 61; local master = no   
 62  
 63  
 64  
 65; os level = 33   
 66  
 67  
 68  
 69  
 70  
 71; domain master = yes   
 72  
 73  
 74  
 75; preferred master = yes   
 76  
 77  
 78  
 79; domain logons = yes   
 80  
 81  
 82  
 83  
 84  
 85; logon script = %m.bat   
 86  
 87# run a specific logon batch file per username   
 88  
 89; logon script = %U.bat   
 90  
 91  
 92  
 93; logon path = \\\%L\Profiles\%U   
 94  
 95  
 96  
 97; name resolve order = wins lmhosts bcast   
 98  
 99  
100  
101# Windows Internet Name Serving Support Section:   
102  
103# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server   
104  
105; wins support = yes   
106  
107  
108  
109# WINS Server - Tells the NMBD components of Samba to be a WINS Client   
110  
111# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both   
112  
113; wins server = w.x.y.z   
114  
115  
116  
117; wins proxy = yes   
118  
119dns proxy = no   
120  
121  
122  
123; preserve case = no   
124  
125; short preserve case = no   
126  
127# Default case is normally upper case for all DOS files   
128  
129; default case = lower   
130  
131# Be very careful with case sensitivity - it can break things!   
132  
133; case sensitive = no   
134  
135  
136  
137#============================ Share Definitions ==============================   
138  
139[homes]   
140  
141comment = Home Directories   
142  
143path = /mnt/hda6   
144  
145browseable = yes   
146  
147writable = yes   
148  
149  
150  
151# Un-comment the following and create the netlogon directory for Domain Logons   
152  
153; [netlogon]   
154  
155; comment = Network Logon Service   
156  
157; path = /home/netlogon   
158  
159; guest ok = yes   
160  
161; writable = no   
162  
163; share modes = no   
164  
165  
166  
167  
168  
169# Un-comment the following to provide a specific roving profile share   
170  
171# the default is to use the user's home directory   
172  
173;[Profiles]   
174  
175; path = /home/profiles   
176  
177; browseable = no   
178  
179; guest ok = yes   
180  
181  
182  
183  
184  
185# NOTE: If you have a BSD-style print system there is no need to   
186  
187# specifically define each individual printer   
188  
189[printers]   
190  
191comment = All Printers   
192  
193path = /var/spool/samba   
194  
195browseable = no   
196  
197# Set public = yes to allow user 'guest account' to print   
198  
199guest ok = no   
200  
201writable = no   
202  
203printable = yes   
204  
205  
206  
207# This one is useful for people to share files   
208  
209;[tmp]   
210  
211; comment = Temporary file space   
212  
213; path = /tmp   
214  
215; read only = no   
216  
217; public = yes   
218  
219  
220  
221# A publicly accessible directory, but read only, except for people in   
222  
223# the "staff" group   
224  
225;[public]   
226  
227; comment = Public Stuff   
228  
229; path = /home/samba   
230  
231; public = yes   
232  
233; read only = yes   
234  
235; write list = @staff   
236  
237  
238  
239;[fredsprn]   
240  
241; comment = Fred's Printer   
242  
243; valid users = fred   
244  
245; path = /homes/fred   
246  
247; printer = freds_printer   
248  
249; public = no   
250  
251; writable = no   
252  
253; printable = yes   
254  
255  
256  
257# A private directory, usable only by fred. Note that fred requires write   
258  
259# access to the directory.   
260  
261;[fredsdir]   
262  
263; comment = Fred's Service   
264  
265; path =</nt-server-name>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus