一、对于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
问题尚未解决。