NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
avmad
Jan 23, 2025Aspirant
Using my ReadyNAS 104 from Linux with NFS
Hello all, Up to now I have used my ReadyNAS 104 (firmware 6.10.0) from Windows. I have now rebuilt one of my machines with Linux Mint 22 and will do the same with my nother machines after I have...
- Jan 23, 2025
avmad wrote:
The current teething problem is accessing my NAS from Linux. I had thought that CIFS was the way to do this but have just been told that NFS is the way to go.
CIFS (SMB 1) is very old and being deprecated. SMB 3 is well supported on Linux, so there is no reason not to use it.
But if you want NFS for some reason, you can just enable it in system->settings and for each share. The default settings on the NAS should be fine.
avmad
Jan 25, 2025Aspirant
Yes I did. Also did for the 4 or 5 other directories that I am trying to share to my Linux machine. Actually, I mis-named the directory initially - it's actually nas_backup and nas_music etc
Sandshark
Jan 26, 2025Sensei
What happens if you give Everyone network access?
- avmadJan 26, 2025Aspirant
I will give this a shot but I wasn't expecting that I would have to open it up so widely.
Back later when I can get on my NAS to do this.
Thanks.
- avmadJan 26, 2025Aspirant
I added 'Everyone' with read/write to both Music and Pictures. Then on Linux ran:
$ sudo mount -t nfs 192.168.1.41:/music /media/nas_music
[sudo] password for julian:Was returned the following error:
mount.nfs: access denied by server while mounting 192.168.1.41:/music
- SandsharkJan 27, 2025Sensei
You shouldn't have to open it that widly. But you blurred out the user names on the NAS, so that's the only recommendation I could make. Now that I see your Linux system is trying to connect as julian, is julian set up to access that share?
If you add users or permissions, you do usually have to go reset permissions so all existing files and folders have their permissions updated. So, try that next.
- avmadJan 27, 2025Aspirant
Hi Sandshark,
Thanks again for your input.julian is indeed the logged-in linux user. But no, that user does not have permissions on those shares.
I'm probably going to oversimplify this massively now, but if I was to add julian as a user on the NAS and add that user to those shares, would linux then just assume that because the name is the same then that linux julian is the same as the NAS user julian?
If the above is true, then I would have thought that my previous addition of "Everyone" to the share would have enabled the linux user julian to access them?But having said all that, you have suggested "resetting" permissions. So I have to see how to do that. I don't recall seeing that option so far.
Cheers!
- SandsharkJan 27, 2025Sensei
Reset is on the share's File Access tab. It resets all files' and folders' permissions in that share to the current ones. It does so in the background, so you do need to give it time to complete.
- SandsharkJan 27, 2025Sensei
OK, I did some more checking. SMB will only allow mounting for all users, which uses the ReayNAS Everybody permissions. It's a limitation of NFS, not the ReadyNAS specifically. You also need to specify the entire path, so 192.168.1.41:/data/music, assuming your data volume is named data.
If you don't want to set the permissions on the NAS to Everyone, you'll need to mount using SMB (cifs).
sudo mount -t cifs -o vers=3.0,username=authorizeduser //192.168.1.41.music /media/nas_musicWhere authorizeduser has permissions to the share. This will prompt for authorizeduser's NAS password. vers=3.0 tells it to use SMB3 even though cifs is usually SMB1. Of course, SMB1 will also work on a ReadyNAS unless you've turned it off with SMBPlus, but SMB3 is more secure.
You can also include the password in the mount command:
sudo mount -t cifs -o vers=3.0,username=authorizeduser,password=userpass //192.168.1.41.music /media/nas_music - avmadJan 27, 2025Aspirant
Hi Sandshark,
Firstly, I created a 'julian' user on the NAS.
Then I performed the reset on both the Music and Pictures shares. Here are the success messages.
One thing I notice is that the shares are referred to as data\Music and data\Pictures. Also the word 'data' appears top left in the Shares screen. I'm not too sure what that refers to, but it has made me wonder: when I am trying to mount the share, should I be including data in the share path?
Also, I notice that if I now look at the permissions for the Music share, while it shows user julian to have read/write for SMB, it is not possible to assign any permission for that user when the protocol selected is NFS. As soon as I select NFS in the drop down, the user changes to Anyhost.
Further to that, if I go to Settings->Network access, julian has read/write, but in Settings->File access, read/write is not an option for user julian.
I did try to mount those two shares again but the same error is returned.
Cheers!
- avmadJan 27, 2025Aspirant
Sorry that our messages crossed at the same time. Now digesting yours.
- avmadJan 27, 2025Aspirant
I tried adding data into the path but get the same error:
sudo mount -t nfs 192.168.1.41:/data/music /media/nas_music
[sudo] password for julian:
mount.nfs: access denied by server while mounting 192.168.1.41:/data/musicI think I'm fine staying with NFS and having 'Everyone' with access. However, if I go to Network access screen and select NFS, I am unable to add Everyone:
I can't help thinking I'm missing something fundamental here as it seems like providing open access to everyone should be pretty simple.
- SandsharkJan 27, 2025Sensei
You need to set the file access to Everyone.
- avmadJan 28, 2025Aspirant
Hi again,
I had already done that for both shares actually:
- avmadJan 28, 2025Aspirant
I have lost the order of things in my mind, so I will reset it again.
Thanks.
- avmadJan 28, 2025Aspirant
I reset both shares and then went back to the terminal and tried to mount.
sudo mount -t nfs 192.168.1.41:/data/music /media/nas_music
mount.nfs: access denied by server while mounting 192.168.1.41:/data/musicSo we're still not there yet.
Not sure what to show you next.
Cheers!
- StephenBJan 28, 2025Guru - Experienced User
avmad wrote:
I reset both shares and then went back to the terminal and tried to mount.
sudo mount -t nfs 192.168.1.41:/data/music /media/nas_music
mount.nfs: access denied by server while mounting 192.168.1.41:/data/musicLinux file names are case-sensitive, and per your earlier screenshot I think the share name is Music.
The default volume name is lower case, so data is ok.
- avmadJan 28, 2025Aspirant
Oops! Will rectify tomorrow. Thanks again.
EDIT: Couldn't wait till tomorrow, so did it now 🤣😂😁 - avmadJan 28, 2025Aspirant
I just changed the case of the two shares. It works fine!!! You are a genuis!
The contents of the shares are showing up in the mountpoints.
I will extend the work done on these to the other shares.
Many thanks!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!