5

Ubuntu 22.04: A Synology NAS SMB mount tested good with a Mac. A list of Samba share returned by MacOS Finder:

enter image description here

I would like to mount the SMB share:

sudo mount -t cifs //192.168.8.109/home -o username=****,password=****** /home/user/NAS_mount

however, an error is returned:

mount error(13): Permission denied

What is the starting point / questions / diagnostic to understand / resolve the error?

gatorback
  • 5,785
  • 9
  • 40
  • 65

1 Answers1

5

Success!

I Googled the error: "mount error(13) -Windows" to avoid Windows. https://serverfault.com/a/636785 indicted that passwords with punctuation characters should be in a file

sudo mount -t cifs //192.168.X.XXX/home -o credentials=/home/user/credential.txt /home/user/NAS_mount
muru
  • 197,895
  • 55
  • 485
  • 740
gatorback
  • 5,785
  • 9
  • 40
  • 65
  • 1
    If the mounted filesystem is under your control, I would suggest removing the punctuation from the password (and making it longer if you're concerned). This will probably bite you again. – Glenn Willen Sep 03 '23 at 18:33