请问如何访问局域网的2000?

由 bulin 在 09-16-2002 09:44 发表:

请问如何访问局域网的2000?

局域网上的两台机子:

192.168.0.3 linux

192.168.0.2 2000

在linux的机上用smb://192.168.0.2/c/可以访问到2000的机子,看到共享文件。但要将其拷贝到linux上时,却提示要输入用户名和密码。于是按2000上的用户和组提供的用户名和密码试了一遍都不行。

记得过去曾经用smb访问的时候提示:

Coundn't display "smb://192.168.0.2/c/",because access was denied

后修改2000下的用户设置,将guests帐号失效这个选项去掉即可访问2000下的共享资源并能复制文件。而这次访问时能看到共享,要复制或打开文件却要求用户名和密码。不知是何原因,请教!


由 北南南北 在 09-16-2002 11:29 发表:


兄弟,把配制文件发上来,大家好研究一下。

多谢。


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 bulin 在 09-16-2002 15:49 发表:


是smb.conf吗?我安装完系统后一直没有配置samba,不过一直可以用。

要能访问2000的主机,要配置smb.conf?


由 北南南北 在 09-16-2002 17:53 发表:


对,要配置smb


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 bulin 在 09-17-2002 16:44 发表:


奇怪了今天再试了试居然可以复制了2000下的文件了(还为对smb.conf进行设置),没有昨天的要求输入用户名和密码的情况。真是奇怪~


由 bulin 在 09-17-2002 16:57 发表:


我才刚把上面的帖子写完,再试了一下。又弹出输入用户名和密码的窗口!要不是看到刚才复制出来的文件,还真以为遇鬼了~~~

不过真是邪门~~~不会是bug吧。。


由 北南南北 在 09-17-2002 17:07 发表:


兄弟,你用的是哪个版本的linux?是有点怪,最好把samba配制文件发上来,经通此道的弟兄就能研究了。


===========================

请弟兄们发帖时要写个好标题,多谢!

===========================

每天以1000KM/H的速度在跑,感觉还是时间不够:(

“西学东渐,洋为中用” + 创造 = ?

linux ppc


由 bulin 在 09-17-2002 17:23 发表:

我用的是rh7.2(2.4.19)

真是邪门了原来用smb://192.168.0.2/只能看到共享的文件夹,再要打开文件夹观其内容,则跳出要求输入用户名和密码的窗口.接着,反复点击共享文件夹后将弹出窗口一一关闭后,再点击一次.过了一会,点击取消.居然可以看到共享文件夹中的内容!像上面所说的再次反复点击该文件夹下的文本.几次尝试后居然打开文本,看到其中内容.点击Konqueror向上按钮,又再次弹出窗口..真是越试越觉得奇怪.原来看了几篇文章说到防火墙的问题,不知是否真与此有关

我的smb.conf文件,去掉了一些带#的注释:

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

[global]

workgroup = NT-Domain-Name or Workgroup-Name

workgroup = MYGROUP

server string is the equivalent of the NT Description field

server string = 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

printcap name = /etc/printcap

load printers = yes

It should not be necessary to spell out the print system type unless

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

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

printing = lprng

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/samba/%m.log

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

max log size = 0

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

security_level.txt for details.

security = user

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# 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# You may wish to use password encryption. Please read   
 16  
 17# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.   
 18  
 19# Do not enable this option unless you have read those documents   
 20  
 21encrypt passwords = yes   
 22  
 23smb passwd file = /etc/samba/smbpasswd   
 24  
 25  
 26  
 27# The following is needed to keep smbclient from spouting spurious errors   
 28  
 29# when Samba is built with support for SSL.   
 30  
 31; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt   
 32  
 33  
 34  
 35# The following are needed to allow password changing from Windows to   
 36  
 37# update the Linux sytsem password also.   
 38  
 39# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.   
 40  
 41# NOTE2: You do NOT need these to allow workstations to change only   
 42  
 43# the encrypted SMB passwords. They allow the Unix password   
 44  
 45# to be kept in sync with the SMB password.   
 46  
 47; unix password sync = Yes   
 48  
 49; passwd program = /usr/bin/passwd %u   
 50  
 51; passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*   
 52  
 53  
 54  
 55# Unix users can map to different SMB User names   
 56  
 57; username map = /etc/samba/smbusers   
 58  
 59  
 60  
 61# Using the following line enables you to customise your configuration   
 62  
 63# on a per machine basis. The %m gets replaced with the netbios name   
 64  
 65# of the machine that is connecting   
 66  
 67; include = /etc/samba/smb.conf.%m   
 68  
 69  
 70  
 71# This parameter will control whether or not Samba should obey PAM's   
 72  
 73# account and session management directives. The default behavior is   
 74  
 75# to use PAM for clear text authentication only and to ignore any   
 76  
 77# account or session management. Note that Samba always ignores PAM   
 78  
 79# for authentication in the case of encrypt passwords = yes   
 80  
 81  
 82  
 83; obey pam restrictions = yes   
 84  
 85  
 86  
 87# Most people will find that this option gives better performance.   
 88  
 89# See speed.txt and the manual pages for details   
 90  
 91socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192   
 92  
 93  
 94  
 95# Configure Samba to use multiple interfaces   
 96  
 97# If you have multiple network interfaces then you must list them   
 98  
 99# here. See the man page for details.   
100  
101; interfaces = 192.168.12.2/24 192.168.13.2/24   
102  
103  
104  
105# Configure remote browse list synchronisation here   
106  
107# request announcement to, or browse list sync from:   
108  
109# a specific host or from / to a whole subnet (see below)   
110  
111; remote browse sync = 192.168.3.25 192.168.5.255   
112  
113# Cause this host to announce itself to local subnets here   
114  
115; remote announce = 192.168.1.255 192.168.2.44   
116  
117  
118  
119# Browser Control Options:   
120  
121# set local master to no if you don't want Samba to become a master   
122  
123# browser on your network. Otherwise the normal election rules apply   
124  
125; local master = no   
126  
127  
128  
129# OS Level determines the precedence of this server in master browser   
130  
131# elections. The default value should be reasonable   
132  
133; os level = 33   
134  
135  
136  
137# Domain Master specifies Samba to be the Domain Master Browser. This   
138  
139# allows Samba to collate browse lists between subnets. Don't use this   
140  
141# if you already have a Windows NT domain controller doing this job   
142  
143; domain master = yes   
144  
145  
146  
147# Preferred Master causes Samba to force a local browser election on startup   
148  
149# and gives it a slightly higher chance of winning the election   
150  
151; preferred master = yes   
152  
153  
154  
155# Enable this if you want Samba to be a domain logon server for   
156  
157# Windows95 workstations.   
158  
159; domain logons = yes   
160  
161  
162  
163# if you enable domain logons then you may want a per-machine or   
164  
165# per user logon script   
166  
167# run a specific logon batch file per workstation (machine)   
168  
169; logon script = %m.bat   
170  
171# run a specific logon batch file per username   
172  
173; logon script = %U.bat   
174  
175  
176  
177# Where to store roving profiles (only for Win95 and WinNT)   
178  
179# %L substitutes for this servers netbios name, %U is username   
180  
181# You must uncomment the [Profiles] share below   
182  
183; logon path = \\\%L\Profiles\%U   
184  
185  
186  
187# Windows Internet Name Serving Support Section:   
188  
189# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server   
190  
191; wins support = yes   
192  
193  
194  
195# WINS Server - Tells the NMBD components of Samba to be a WINS Client   
196  
197# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both   
198  
199; wins server = w.x.y.z   
200  
201  
202  
203# WINS Proxy - Tells Samba to answer name resolution queries on   
204  
205# behalf of a non WINS capable client, for this to work there must be   
206  
207# at least one WINS Server on the network. The default is NO.   
208  
209; wins proxy = yes   
210  
211  
212  
213# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names   
214  
215# via DNS nslookups. The built-in default for versions 1.9.17 is yes,   
216  
217# this has been changed in version 1.9.18 to no.   
218  
219dns proxy = no   
220  
221  
222  
223# Case Preservation can be handy - system default is _no_   
224  
225# NOTE: These can be set on a per share basis   
226  
227; preserve case = no   
228  
229; short preserve case = no   
230  
231# Default case is normally upper case for all DOS files   
232  
233; default case = lower   
234  
235# Be very careful with case sensitivity - it can break things!   
236  
237; case sensitive = no   
238  
239  
240  
241#============================ Share Definitions ==============================   
242  
243[homes]   
244  
245comment = Home Directories   
246  
247browseable = no   
248  
249writable = yes   
250  
251valid users = %S   
252  
253create mode = 0664   
254  
255directory mode = 0775   
256  
257# If you want users samba doesn't recognize to be mapped to a guest user   
258  
259; map to guest = bad user   
260  
261  
262  
263  
264  
265# Un-comment the following and create the netlogon directory for Domain Logons   
266  
267; [netlogon]   
268  
269; comment = Network Logon Service   
270  
271; path = /usr/local/samba/lib/netlogon   
272  
273; guest ok = yes   
274  
275; writable = no   
276  
277; share modes = no   
278  
279  
280  
281  
282  
283# Un-comment the following to provide a specific roving profile share   
284  
285# the default is to use the user's home directory   
286  
287;[Profiles]   
288  
289; path = /usr/local/samba/profiles   
290  
291; browseable = no   
292  
293; guest ok = yes   
294  
295  
296  
297  
298  
299# NOTE: If you have a BSD-style print system there is no need to   
300  
301# specifically define each individual printer   
302  
303[printers]   
304  
305comment = All Printers   
306  
307path = /var/spool/samba   
308  
309browseable = no   
310  
311# Set public = yes to allow user 'guest account' to print   
312  
313guest ok = no   
314  
315writable = no   
316  
317printable = yes   
318  
319  
320  
321# This one is useful for people to share files   
322  
323;[tmp]   
324  
325; comment = Temporary file space   
326  
327; path = /tmp   
328  
329; read only = no   
330  
331; public = yes   
332  
333  
334  
335# A publicly accessible directory, but read only, except for people in   
336  
337# the "staff" group   
338  
339;[public]   
340  
341; comment = Public Stuff   
342  
343; path = /home/samba   
344  
345; public = yes   
346  
347; writable = yes   
348  
349; printable = no   
350  
351; write list = @staff   
352  
353  
354  
355# Other examples.   
356  
357#   
358  
359# A private printer, usable only by fred. Spool data will be placed in fred's   
360  
361# home directory. Note that fred must have write access to the spool directory,   
362  
363# wherever it is.   
364  
365;[fredsprn]   
366  
367; comment = Fred's Printer   
368  
369; valid users = fred   
370  
371; path = /home/fred   
372  
373; printer = freds_printer   
374  
375; public = no   
376  
377; writable = no   
378  
379; printable = yes</nt-server-name>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus