This error was appeared in one of the Linux Ubuntu Server when I was trying to mount a Windows File Share to save some files.
The fix to the issue was quite an easy task, but can be a time consuming work when you are running with a busy schedule. I thought to share this with my followers and I hope this will help you to save some valuable time for your work.
I was trying to mount the File Share with the below command.
techc_admin@TCVM-01:~$ sudo mount -t cifs //techcrumblerg01diag.file.core.windows.net/tcfileshare-01 /mnt/TCFileShare/ -o vers=3.0,username=<username>,password=<password>,dir_mode=0777,file_mode=0777,serverino mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I forgot to add “sec=ntlmssp” parameter to the command, so the complete command would be something similar to this.
sudo mount -t cifs //techcrumblerg01diag.file.core.windows.net/tcfileshare-01 /mnt/TCFileShare/ -o vers=3.0,username=<username>,password=<password>,dir_mode=0777,file_mode=0777,serverino,sec=ntlmssp
Sample Command which I executed when I connect Azure File Share to an Ubuntu Server.

What Is “sec=ntlmssp”
“sec” is the security mode and it define how the passwords are encrypted between Client and the Server.
“ntlmssp” stands for “NT LAN Manager Security Support Provider” is the binary messaging protocol for a Microsoft Security Support Provider Interface (MSSPI). It is the stream which provide the NTLM challenge-response authentication for the communication.
NTLMSSP is used when there is a SSPI authentication for SMB (Server Message Block) or CIFS (Common Internet File System) access in place.
Carlos Rangel (Mexico)
May 4, 2020Thank you very much for this post Arumna. It helped me to resolve a similar issue when I was trying to mount a Windows Server File Share in Clonezilla (Debian) in order to save backups in.I was crazy with the permission denied issue, then I saw your post, applied your command and it worked like a charm. Thank you very much!!!!
Aruna Lakmal
May 9, 2020Thank you Carlos for the comment!