免费注册 查看新帖 |

Chinaunix

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

[samba] samba共享给XP的到底是哪个文件夹?(附.conf) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-23 13:39 |只看该作者 |倒序浏览
症状:可以在XP下看见samba server(ForrestLinux)\sharedocs, 但是我在\sharedocs下存放了文件,却看不见文件,XP下sharedocs是显示“0个对象”

[sharedocs]段原为[public],我以为是会共享主目录下的public文件夹,但是出现同样的问题,可以在XP下打开public文件夹,只是显示不出文件夹中的文件。

此外,可以用命令 smbclient -L //192.168.1.2 显示 XP机器上的共享文档,但是无法用
smbmount //192.168.1.2/SharedDocs /mnt/Company-1挂载文件卷
bash: smbmount: command not found。

以下是smb.conf,请识者不吝赐教:


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

        workgroup = Company
        server string = Samba Server
        netbios name = ForrestLinux
        security = share

;   hosts allow = 192.168.1. 192.168.2. 127.

        load printers = yes

;   printcap name = /etc/printcap
;   printcap name = lpstat
;   printing = cups

        cups options = raw

;  guest account = pcguest

        log file = /var/log/samba/%m.log
        max log size = 50

;   password server = <NT-Server-Name>
;   realm = MY_REALM
;   passdb backend = tdbsam
;   include = /usr/local/samba/lib/smb.conf.%m
;   interfaces = 192.168.12.2/24 192.168.13.2/24
;   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

        dns proxy = no

;  add user script = /usr/sbin/useradd %u
;  add group script = /usr/sbin/groupadd %g
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;  delete user script = /usr/sbin/userdel %u
;  delete user from group script = /usr/sbin/deluser %u %g
;  delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
        writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /usr/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /sharedocs
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
[sharedocs]
   comment = Public Stuff
   path= /sharedocs
   public = yes
   writable = yes
   printable = no
        guest ok = yes
;   write list = @staff

# Other examples.

;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

;[pchome]
;  comment = PC Directories
;  path = /usr/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

论坛徽章:
0
2 [报告]
发表于 2007-05-23 14:23 |只看该作者
在安全级别和防火墙/SELinux/修改SELinux策略/Samba,现在XP可以读取FC6共享给XP的文件夹中的文件了。
使用smbclient smbmount//Company-1/SharedDocs /DGM-1出现错误Connection to  failed,未知原因,不得解决,郁闷ING。

[ 本帖最后由 dinosaur107 于 2007-5-23 14:27 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-05-23 14:31 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2007-05-23 15:10 |只看该作者
一直在认真学习,可是总觉得无从下手。另外,目前的教程多半是RedHat下的,很少有FC6下的,FC6下不知道怎样搞出图形配置工具。海大现在看来很厉害啊,有机会回去学习学习。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP