samba服务器挂载问题

一、对于samba服务器挂载时出现如下提示信息:

[root@localhost /]# mount -t cifs //127.0.0.1/getwhat /net -o username=tom

Password for tom@//127.0.0.1/getwhat:  ***
Retrying with upper case share name
mount error(6): No such device or address

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

说明挂载路径有误,此时应该查看配置文件

vim /etc/samba/smb.conf

文件中为:

[common]
        path = /getwhat
        bmrowseable = yes
                  

需要注意到的问题是:[]中的为网络中该目录的名称,path为本地路径。因此在进行挂载的时候应该使用网络名称而非本机名称。


二、挂载其他服务器时客户机出现如下信息:

[root@desktop1 net]# mount -t cifs //118.228.175.200/common /net -o username=top,password=123
mount: //118.228.175.200/common is write-protected, mounting read-only
mount: cannot mount //118.228.175.200/common read-only

查看服务器的权限:

[root@localhost /]# ls -Zd /getwhat
drwxr-xr-x. root root unconfined_u:object_r:samba_share_t:s0 /getwhat

查看selinux的情况:

[root@localhost /]# getsebool -a |grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> off
samba_export_all_ro --> off
samba_export_all_rw --> on
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
use_samba_home_dirs --> off
virt_sandbox_use_samba --> off
virt_use_samba --> off

都没有问题,重启服务后仍然提示只读。问题尚未解决。


三、客户端出现如下信息:

[root@desktop1 net]# smbclient -L //127.0.0.1/common -U tom
Enter tom's password: 
protocol negotiation failed: NT_STATUS_IO_TIMEOUT


问题尚未解决。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值