You are not logged in.

#1 2018-05-21 02:23:24

shillshocked
Member
Registered: 2014-02-07
Posts: 20

Can't automount NFS shares, or access them except with a specific user

I've been trying for the longest time (years) to get my NFS configuration working properly.

With the current setup, I cannot automatically mount NFS shares, but I can access them by doing:

sudo mount.nfs4 192.168.1.3:/ /srv/nfs

However, it's read only access except for one of the directories.

On my other account, however, I have full access when I do this procedure.

I've tried various ways to automatically mount NFS, with several different configurations and options.

What is the most reliable method?

And how do I get the permissions working? Both users belong to the same groups, so it can't because of a group permissions issue.

Offline

#2 2018-05-21 04:00:35

shillshocked
Member
Registered: 2014-02-07
Posts: 20

Re: Can't automount NFS shares, or access them except with a specific user

Alright, I managed to access the files by changing the ownership to another user on the server who had the same uid as mine. But I would like all users on my computer to access it, and I don't want to use anonid due to security risks. How can I achieve this? I tried disabling NFSv4 idmapping, but got nowhere and the documentation seems sparse and varies widely.

And I still have no way to automate the mounting of the shares.

Last edited by shillshocked (2018-05-21 04:05:48)

Offline

#3 2018-05-23 20:44:16

Painless
Member
Registered: 2006-02-06
Posts: 233

Re: Can't automount NFS shares, or access them except with a specific user

Make the users on your computer who need access to the share members of the same group and make the share group-writeable by that group.

To automount the share, you could use Autofs.

Offline

Board footer

Powered by FluxBB