免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 7522 | 回复: 22
打印 上一主题 下一主题

[Server 2003] 为什么linux可以访问windows, 而windows不能访问linux? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-03 09:33 |只看该作者 |倒序浏览
以下是我的sam.conf文件的内容。
请大家帮忙看一看,问题出在什么地方。
谢谢!!!!



#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
        workgroup = mylinux

# server string is the equivalent of the NT Description field
        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

        security = SHARE

;   password server = <NT-Server-Name>

;  password level = 8
;  username level = 8

        encrypt passwords = yes
        smb passwd file = /etc/samba/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

        guest ok = yes
        guest account = adm
        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
        printable = yes

;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = 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

[down]
        path = /down
        writeable = yes
        guest ok = yes

[administrator]
        path = /home/administrator
        writeable = yes
        guest ok = yes

论坛徽章:
0
2 [报告]
发表于 2005-11-03 10:05 |只看该作者
难道没有人看得懂吗?
怎么没有人帮我啊?

论坛徽章:
0
3 [报告]
发表于 2005-11-03 10:30 |只看该作者
访问时候是什么样的出错信息?

论坛徽章:
0
4 [报告]
发表于 2005-11-03 10:33 |只看该作者
打开时候却总是显示无法找到网络路径

论坛徽章:
0
5 [报告]
发表于 2005-11-03 10:34 |只看该作者
用 \\NAME 访问的,还是用 \\IP 访问的?

论坛徽章:
0
6 [报告]
发表于 2005-11-03 10:36 |只看该作者
你用的是rh9 或 fac3  自带的 samba 吗 ,如果是的话,在图形窗口下面,设置 samba 服务,添加 对应linux用户的 samba用户,就可以了,不用修改 smb.conf 文件,,

不能浏览共享,很有可能是  你的 linux 默认打开了防火墙,关闭防火墙试试。。

论坛徽章:
0
7 [报告]
发表于 2005-11-03 10:54 |只看该作者
5楼的朋友, 你说的两种方法我用过,在网上邻居里也不行。

6楼的朋友, 我装的是RH9自带的SAMBA, 在图形下面设置SAMBA服务,并关了防火墙,也不行啊。
我该怎么办啊?

论坛徽章:
0
8 [报告]
发表于 2005-11-03 11:38 |只看该作者
你不应该这样改。
security = SHARE

;   password server = <NT-Server-Name>

;  password level = 8
;  username level = 8

;        encrypt passwords = yes
  ;      smb passwd file = /etc/samba/smbpasswd
这样应该就可以了。

论坛徽章:
0
9 [报告]
发表于 2005-11-03 11:47 |只看该作者
8楼的朋友,
你好象没有告诉我你是怎么改的哦!!!

论坛徽章:
0
10 [报告]
发表于 2005-11-03 11:51 |只看该作者
password server = <NT-Server-Name>

;  password level = 8
;  username level = 8

(;)       encrypt passwords = yes
(;)       smb passwd file = /etc/samba/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*toks*updated*successfully*
括号里是新加的。感觉是这个问题。你试试先。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP