求助啦!
我今天安装了smb服务器,经过对smb.conf设置为用户级的访问,我可以通过smb客户软件从我的RH9-LINUX(2.4.20.8)中去访问WIN98机器的共享文件,但我LINUX下的共享目录却不能到WIN98网上邻居中显示(连LINUX的主机也没有显示在”网上邻居”,只能看到工作组有自己的机器),我将WIN98下的共享目录设为读写,LINUX也可以读写,但就是在WIN98下看不到LIUNX的机器!真是怪事!后面用图形化的SAMBA配置工具去配置访问,但增加不了SMB用户, 用户栏里面一个也没有的(而且不能添加用户),依然只能LINUX能访问WIN98,WIN98却看不到任何机器除了自己的外)。情况就是上述这样子啦,我想请救各位大哥,有什么的方法判定自己的设置没有问题,WIN98下怎样才能访问LINUX机器的共享文件夹,关键要搞懂原理性的问题,我找了大量的资料就是解决不了上述问题! netbios name=machine name 添加了么?
帖具体配置看看! 添加啦,但是测试总是说连接失败呀! 好的,我的配置如下:
workgroup = home
netbios name = localhost
server string = Samba Server
; hosts allow = 192.168.1. 192.168.2. 127.
printcap name = /etc/printcap
load printers = yes
printing = cups
;guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
; password server = <NT-Server-Name>
;password level = 8
;username level = 8
smb passwd file = /etc/smbpasswd
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
;username map = /etc/samba/smbusers
; include = /etc/samba/smb.conf.%m
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
; interfaces = 192.168.12.2/24 192.168.13.2/24
; remote browse sync = 192.168.3.25 192.168.5.255
; remote announce = 192.168.1.255 192.168.2.44
; local master = no
; os level = 33
; domain master = yes
; preferred master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
username map = /etc/samba/smbusers
dns proxy = no
;preserve case = no
;short preserve case = no
;default case = lower
;case sensitive = no
#============================ Share Definitions ==============================
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
; map to guest = bad user
;
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
;
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes
# This one is useful for people to share files
;
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
comment = Public Stuff
path = /pub
guest ok = yes
writeable = yes
printable = no
write list = @staff
;
; comment = Fred's Printer
; valid users = fred
; path = /home/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
;
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;
;comment = PC Directories
;path = /usr/local/pc/%m
;public = no
;writable = yes
;
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765 不知道是不是因为你的
netbios name = localhost
随便换一个名字试试看 不行呀,我都换了好几次啦,默认情况和更换一个名字应该没有什么变化吧! 不行呀,我都换了好几次啦,默认情况和更换一个名字应该没有什么变化吧!
還是不要用localhost的好。 楼上的大哥,我改了以后,上午我走啦,等我回来后我启动机器,用我新设立的netbios name= tclhost竟然可以访问啦,但我退出浏览器后,再重新载入,竟然出无法与原来的Localhost连接,真是郁闷,我将主机也改成了tclhost,均还是原来的主机名,这是为什么?还是配置上的问题吗?
页:
[1]