centos6挂载centos7版本上的samba服务报错

~]# mount -t cifs //192.168.1.114/myfiles /mnt -o username=smbuser3,password=123456

mount error(13): Permission denied

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


经过查证,都说是账号密码错误,但是经过查验密码一直没有错,最后使用下面的方法解决:

~]# mount -t cifs //192.168.1.114/myfiles /mnt -o username=smbuser3,password=123456,sec=ntlmssp


添加sec=ntlmssp参数即可;