免费注册 查看新帖 |

Chinaunix

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

[samba] 请教samba的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-02 14:59 |只看该作者 |倒序浏览
我在vmware下装了linux
开了samba服务
在window下能看到共享名,打开时候却总是显示无法找到网络路径
2000,xp,2000server下都是这样的
为什么呢?

论坛徽章:
0
2 [报告]
发表于 2005-11-02 16:00 |只看该作者
我也是出现这样的问题,
可是想不到问题出在什么地方。

论坛徽章:
0
3 [报告]
发表于 2005-11-02 16:01 |只看该作者
看看你的配置文件吧,或者贴出来!

论坛徽章:
0
4 [报告]
发表于 2005-11-02 18:39 |只看该作者
你是怎么配置的

论坛徽章:
0
5 [报告]
发表于 2005-11-03 09:49 |只看该作者
#
#======================= 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
6 [报告]
发表于 2005-11-03 11:19 |只看该作者

回复 5楼 jgcjsw 的帖子

楼上的,请教个,你是怎么复制出来的?
我在vmware里面,复制不出来呀

论坛徽章:
0
7 [报告]
发表于 2005-11-03 11:25 |只看该作者
关闭 linux 的防火墙就可以 。。

论坛徽章:
0
8 [报告]
发表于 2005-11-07 17:31 |只看该作者
iptable吗? 怎么关闭呢?

论坛徽章:
0
9 [报告]
发表于 2005-11-07 17:32 |只看该作者
可能是firewall的问题,ssh原来也找不要主机,iptables设了一下就可以了

论坛徽章:
0
10 [报告]
发表于 2005-11-07 18:47 |只看该作者
原帖由 xueyunlong 于 2005-11-3 11:19 发表
楼上的,请教个,你是怎么复制出来的?
我在vmware里面,复制不出来呀


用SecureCRT行程登陆不就可以复制了嘛!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP