免费注册 查看新帖 |

Chinaunix

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

[网络配置] 关于archivemount和samba的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2019-01-06 18:57 |只看该作者 |倒序浏览
用archivemount将一个tar文件挂载后,将samba共享文件夹的path设定为挂载点内的一个目录。而在另一台虚拟机用smbclient连接这个共享文件夹,能连接上,但smb>ls会返回NT_STATUS_OBJECT_NAME_NOT_FOUND listing \*错误。

(archivemount是一个能够挂载tar、tar.gz等压缩档的工具,使用了libfuse库,我的理解是应用了linux的fuseAPI。。)

我用的挂载命令:archivemount /home/test.tar /srv/sambamount -o readonly

smb.conf内容:
[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

#       printing = cups
#       printcap name = cups
#       load printers = yes
#       cups options = raw
        map to guest = Bad User

[TESTB]
        comment = for test B
        path = /srv/sambamount/testd1
        readonly = yes
        guest ok = no
//////////////////////////////
[root@localhost sambamount]# tar -tvf /home/test.tar
drwxr-xr-x root/root         0 2019-01-06 16:54 testd1/
drwxr-xr-x root/root         0 2019-01-06 16:54 testd1/testd11/
drwxr-xr-x root/root         0 2019-01-06 16:53 testd2/
drwxr-xr-x root/root         0 2019-01-06 16:53 testd3/
-rw-r--r-- root/root        53 2019-01-06 16:54 testf1
-rw-r--r-- root/root        73 2019-01-06 16:54 testf2
////////////////////////////////////////
使用root用户连接:
[root@localhost ~]# smbclient -U root //10.xxx.xxx.3/testb
Enter SAMBA\root's password:
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \*
smb: \> cd testd11
cd \testd11\: NT_STATUS_OBJECT_NAME_NOT_FOUND

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP