Posted: Tue Mar 18, 2025 20:22 Post subject: NFS Permission problem
Netgear R7800 running build r60276. I attached a USB hard drive box which I want to share. With previous build r53562 I have been able to use Samba to access the drive from my Ubuntu linux box flawlessly.
With the new build I cannot access the Samba share anymore. More specifically, I have 3 partitions on the drive:
Code:
/opt
/jffs
/tmp/mnt/sda4
the first two I can mount and access as before. The third, which is the one I need because it has space for the data, fails to mount. Basically, the command
Code:
mount -t cifs
doesn't work. If somebody can explan why I would be happy to hear. Anyway...
Since I am not a Windows user I am very happy to switch to NFS, but I can get read access only if I mount the volume as root, while I would prefer to use the share as a regular user.
In Services->NAS I enabled NFS server and added the share /mnt/sda4 with Read/Write access and accessible from 192.168.3.0/24.
so as said, only root can write on the volume.
It has been suggested to me to change the owner of the folder /mnt/sda4 in the dd-wrt system to the uid and gid of the regular user in the linux box I use to access the share, but I do not feel comfortable with that solution.
Any suggestion on how to configure the share? Am I forced to use the share as root?
I cannot remember if it required some extra installation on either workstation or router. You have an opt partition, so I assume you would have entware, like me, and can get required packages from there.
I've used samba and probably tried nfs, too, but wasn't happy with either and found a suggestion on this forum to use sshfs, which was new to me (except I remember using it for backintime to a remote drive).
Seems like sshfs was the way to go in my case. I had to install Entware and openssh-sftp-server and somehow I managed to have it working, I am not an expert.