QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1010|回复: 7

求助啦!

[复制链接]
发表于 2005-4-14 15:41:05 | 显示全部楼层 |阅读模式
我今天安装了smb服务器,经过对smb.conf设置为用户级的访问,我可以通过smb客户软件从我的RH9-LINUX(2.4.20.中去访问WIN98机器的共享文件,但我LINUX下的共享目录却不能到WIN98网上邻居中显示(连LINUX的主机也没有显示在”网上邻居”,只能看到工作组有自己的机器),我将WIN98下的共享目录设为读写,LINUX也可以读写,但就是在WIN98下看不到LIUNX的机器!真是怪事!后面用图形化的SAMBA配置工具去配置访问,但增加不了SMB用户, 用户栏里面一个也没有的(而且不能添加用户),依然只能LINUX能访问WIN98,WIN98却看不到任何机器除了自己的外)。
情况就是上述这样子啦,我想请救各位大哥,有什么的方法判定自己的设置没有问题,WIN98下怎样才能访问LINUX机器的共享文件夹,关键要搞懂原理性的问题,我找了大量的资料就是解决不了上述问题!
发表于 2005-4-14 17:43:51 | 显示全部楼层
netbios name=machine name 添加了么?
帖具体配置看看!
回复

使用道具 举报

 楼主| 发表于 2005-4-14 19:03:11 | 显示全部楼层
添加啦,但是测试总是说连接失败呀!
回复

使用道具 举报

 楼主| 发表于 2005-4-14 19:09:26 | 显示全部楼层
好的,我的配置如下:
[global]
        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 ==============================
[homes]
        comment = Home Directories
        browseable = no
        writeable = yes
        valid users = %S
        create mode = 0664
        directory mode = 0775
; map to guest = bad user
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes
[printers]
        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
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

[public]
        comment = Public Stuff
        path = /pub
        guest ok = yes
        writeable = yes
        printable = no
        write list = @staff
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /home/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

;[pchome]
;  comment = PC Directories
;  path = /usr/local/pc/%m
;  public = no
;  writable = yes

;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765
回复

使用道具 举报

发表于 2005-4-15 00:06:05 | 显示全部楼层
不知道是不是因为你的
netbios name = localhost

随便换一个名字试试看
回复

使用道具 举报

 楼主| 发表于 2005-4-15 14:02:57 | 显示全部楼层
不行呀,我都换了好几次啦,默认情况和更换一个名字应该没有什么变化吧!
回复

使用道具 举报

发表于 2005-4-15 14:45:53 | 显示全部楼层
[quote:647a7e11e8="along2005"]不行呀,我都换了好几次啦,默认情况和更换一个名字应该没有什么变化吧![/quote]
還是不要用localhost的好。
回复

使用道具 举报

 楼主| 发表于 2005-4-15 21:47:58 | 显示全部楼层
楼上的大哥,我改了以后,上午我走啦,等我回来后我启动机器,用我新设立的netbios name= tclhost竟然可以访问啦,但我退出浏览器后,再重新载入,竟然出无法与原来的Localhost连接,真是郁闷,我将主机也改成了tclhost,均还是原来的主机名,这是为什么?还是配置上的问题吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 15:48 , Processed in 0.065370 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表