免费注册 查看新帖 |

Chinaunix

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

[samba] windows 访问linux共享问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-07-07 16:07 |只看该作者 |倒序浏览
虚拟机上面的linux 配置samba ,上面测试共享没问题,smbclient -L //localhost 可以看到设置的共享目录。在windows上面运行,输入//ip 也可以看到目录共享名,就是双击 打不开,默认是  share 方式共享,共享设置里面valid users= %s windows打开文件就是 “提示目录无法访问,可能没有网络权限”,这个是属于smb配置文件的问题吗?然后将共享设置为 security = user  ,共享设置里面 valid users= test linux用的账号,直接在windows运行\\IP 访问弹出密码登陆框,可是用户就是guest ,输不输入密码,都是登陆不了。
哪位高手可以帮忙分析下啦,感谢了。。。

[testdir]
        comment=test directories
        path=/home/test
        writeable=yes
        browseable=yes
        valid users=%s   // 或者替换为指定用户
        public=yes

testparm 如下
[root@pplive-wuhan-18-74 /]# testparm           
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[testdir]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        dos charset = cp936
        unix charset = utf8
        display charset = utf8
        workgroup = MSHOME
        netbios name = CLARK'S SAMBA SERVER
        server string = ClarkLi 's Samba Server Version %v
        security = SHARE
        passdb backend = tdbsam
        log file = /var/log/samba/%m.log
        hosts allow = 127., 192.168.18.
        cups options = raw

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[testdir]
        comment = test directories
        path = /home/test
        valid users = %s
        read only = No
        guest ok = Yes

论坛徽章:
0
2 [报告]
发表于 2010-07-08 14:47 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2010-07-08 17:30 |只看该作者
%s  是指登陆用户可以访问,用share 方式,不要验证。我已经建立samba用户了,windows下面依然访问不了。

论坛徽章:
0
4 [报告]
发表于 2010-07-09 08:29 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 2010-07-09 17:02 |只看该作者
[img]谢谢关注哦
最后调试是出来了,可以看到共享文件。不过用的 security = USER时候,应该不是 valid users=%s 还是该指定用户。结果告诉我也是不行的。 [/img]

你就是如图输入用户和密码,确定后它还是再次弹出此对话框的。

共享2.jpg (92.39 KB, 下载次数: 34)

共享2.jpg

论坛徽章:
0
6 [报告]
发表于 2010-07-09 18:02 |只看该作者
samba用户的密码你怎么设置的?

论坛徽章:
0
7 [报告]
发表于 2010-07-28 23:11 |只看该作者
它的 security = SHARE ,不需要密码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP