Chinaunix

标题: 请教samba的问题 [打印本页]

作者: xueyunlong    时间: 2005-11-02 14:59
标题: 请教samba的问题
我在vmware下装了linux
开了samba服务
在window下能看到共享名,打开时候却总是显示无法找到网络路径
2000,xp,2000server下都是这样的
为什么呢?
作者: jgcjsw    时间: 2005-11-02 16:00
我也是出现这样的问题,
可是想不到问题出在什么地方。
作者: 编号1124    时间: 2005-11-02 16:01
看看你的配置文件吧,或者贴出来!
作者: bugkill    时间: 2005-11-02 18:39
你是怎么配置的
作者: jgcjsw    时间: 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
作者: xueyunlong    时间: 2005-11-03 11:19
标题: 回复 5楼 jgcjsw 的帖子
楼上的,请教个,你是怎么复制出来的?
我在vmware里面,复制不出来呀
作者: rawfire    时间: 2005-11-03 11:25
关闭 linux 的防火墙就可以 。。
作者: xueyunlong    时间: 2005-11-07 17:31
iptable吗? 怎么关闭呢?
作者: xueyunlong    时间: 2005-11-07 17:32
可能是firewall的问题,ssh原来也找不要主机,iptables设了一下就可以了
作者: 小虎牙    时间: 2005-11-07 18:47
原帖由 xueyunlong 于 2005-11-3 11:19 发表
楼上的,请教个,你是怎么复制出来的?
我在vmware里面,复制不出来呀


用SecureCRT行程登陆不就可以复制了嘛!
作者: xueyunlong    时间: 2005-11-08 12:29
现在用ssh登陆,也一样了,^_^




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2