Score:0

Access denied while trying to mount synology NAS to ubuntu 20.04

gb flag

I tried to follow this guide

https://kb.synology.com/en-us/DSM/tutorial/How_to_access_files_on_Synology_NAS_within_the_local_network_NFS#x_anchor_id7

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/

gives me these results

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/
mount.nfs: timeout set for Fri Dec 31 11:40:22 2021
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.1.197,clientaddr=192.168.1.124'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.1.197'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.197 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.197 prog 100005 vers 3 prot UDP port 892
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.197:/Volume1/Plex

showmount -e 192.168.1.197

Export list for 192.168.1.197:
/volume1/Plex   192.168.1.0/24
/volume1/Drive1 192.168.1.0/24

I'm not really sure what I'm doing wrong. I have all the permissions setup on synology like how the guide has said to do

heynnema avatar
ru flag
It looks like the NAS isn't supporting SMB 3 or 4. That requires that you force a SMB 1 or 2 connection. SMB1 has been phased out due to security reasons. I'm not 100% sure of the exact command format, but try adding `-o vers=2` to your mount command. There's also setting in the NAS for which versions it will respond to. Also, temporarily disable your firewall to see if that has an effect. Research via Google about the SMB versioning issue.
heynnema avatar
ru flag
No, temporarily disable the firewall on the computer.
kingkobra813 avatar
gb flag
sudo ufw status verbose Status: inactive
kingkobra813 avatar
gb flag
I'm just trying to get my media onto plex which is running on my ubuntu machine and my media is on my synology
heynnema avatar
ru flag
Did you check the settings in your NAS. Did you try the `-o vers=2`? As per my first comment?
kingkobra813 avatar
gb flag
I tried -o vers=2 and still getting the same error I tried changing the setting on syno to NFSv4.1 and get the same error
heynnema avatar
ru flag
I'm sorry, then I don't know.
kingkobra813 avatar
gb flag
I really appreciate your help. Here are the message log from syno ```2021-12-31T16:10:14-07:00 Synology mountd[6703]: SYSTEM: Last message 'refused mount reques' repeated 1 times, suppressed by syslog-ng on Synology 2021-12-31T16:10:14-07:00 Synology mountd[22495]: refused mount request from 192.168.1.124 for /Volume1/Plex (/): not exported```
kingkobra813 avatar
gb flag
I figured it out!! I had Volume1 capitalized when it's just volume1
heynnema avatar
ru flag
Don't you just want to smack yourself on the forehead? Giggle. Good find!
Score:0
mn flag

I've had a couple of problems because my password had special characters in the command.

Single quotes escape shell meta-characters, a semi-colon should separate the domain controller from the credentials, and you can use %40 to represent an @ in the password (got this from here):

mount -t smbfs '//mydomain;user1:A%b$c%40d!e#[email protected]/myproject' ~/localmap
Score:0
ru flag

From the comments...

This:

sudo mount -t nfs -vvvv 192.168.1.197:/Volume1/Plex /mnt/synology/

Should have been this:

sudo mount -t nfs -vvvv 192.168.1.197:/volume1/Plex /mnt/synology/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.