Are you running into this error when trying to mount a CIFS (SMB) share using /etc/fstab on Ubuntu?
mount error(13): Permission denied
Error code 13 usually indicates that there is a permission problem, but in many cases, it simply means your system is missing the necessary CIFS utilities to handle the mount properly.
Install the required package with this command:
sudo apt install cifs-utils -y
Also, make sure your /etc/fstab entry is correctly formatted.
For example:
//192.168.1.10/ShareName /mnt/share cifs credentials=/etc/smb-credentials,uid=1000,gid=1000,vers=3.0,noperm 0 0
And ensure your /etc/smb-credentials, or whatever file you use to store your credentials, file contains the correct username and password.
username=your_smb_username
password=your_smb_password
Leave a Reply