Mount error (13): resolution of permission denied error in mount.cifs

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

After installing freenas (freenas 11.0-u4), you can create a CIFS share. However, you can’t mount it directly on QNAP’s NAS through the following command

mount.cifs //192.168.50.14/freenas-repo /share/Public/freenas/ –verbose -o username=****,password=****,iocharset=utf8,uid=0,gid=0

Prompt permission error:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

On askubuntu, rmanna mentioned the problem of authentication mode

mount.cifs //192.168.50.14/freenas-repo /share/Public/freenas/ –verbose -o username=****,password=****,sec=ntlmssp,iocharset=utf8,uid=0,gid=0

Notice that a new parameter is added: sec = NTLMSSP

According to him, the default in mainline kernel versions prior to v3.8 was sec = NTLM. In v3.8, the default was changed to SEC = NTLMSSP

The “ntlmv1 auth” option is not opened on freenas, so an error is reported

Similar Posts: