I'm having issues getting my Windows file share to auto mount in Ubuntu Server 18.10.


sudo mount.cifs // /mnt/Media -o username='username@live.com'

will prompt for a password, and upon entering it will mount correctly.

In /etc/fstab there is a line which looks like this

//    /mnt/Media      cifs    credentials=/mnt/.smbcred       0       0

and /mnt/.smbcred looks like


However running

sudo mount -a

will give the error

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

I've tried adding a combination of


after credentials=/mnt/.smbcred but no change in the result.

Does anyone have any ideas?

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.