I have purchased a WD-Ex2 NAS and am trying to share a folder via nfs with my ubuntu machine.
this folder is only going to be used by this machine and I would like it to be treated as one more home folder. But I’m having problems with the assignment of permissions, the owner of the files that I create there is always someone else and I can’t assign execution permissions
I am mounting the folder as follows
I have tried to mount in the following ways
$ sudo cat /etc/fstab
...
192.168.0.151:/nfs/tmp_msigs60 /media/tmp_msigs60 nfs defaults 0 0
...
192.168.0.151:/nfs/tmp_msigs60 /media/tmp_msigs60 nfs defaults,user,relatime,rw,exec 0 0
...
192.168.0.151:/nfs/tmp_msigs60 /media/tmp_msigs60 nfs rw,exec 0 0
...
but I don’t have execute permissions and the owner is user # 501 not my user
I have tried mounting with the following options
192.168.0.151:/nfs/tmp_msigs60 /media/tmp_msigs60 nfs defaults,user,relatime,rw,exec,uid=1000,gid=1000,umask=002 0 0
but when putting uid=1000,gid=1000,umask=002
I get the error:
mount.nfs: an incorrect mount option was specified
Another thing I have tried is to edit /etc/idmapd.conf
and change nobody
and nogroup
for my user, but I have not had any result either
[General]
Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs
[Mapping]
Nobody-User = rodrigo
Nobody-Group = rodrigo
I am starting to think that it is problem of how mycloud shares the nfs.
Another thing that I have noticed is that the speed of writing and reading starts with high speed, but it decreases considerably while transferring the file in that folder.
I really appreciate any advice.