View previous topic :: View next topic |
Author |
Message |
tabanus l33t


Joined: 11 Jun 2004 Posts: 631 Location: UK
|
Posted: Mon Sep 07, 2020 9:08 pm Post subject: What have I done wrong with my NFS share? [SOLVED] |
|
|
My Gentoo NFS share was working fine, but the clients (running Ubuntu 20.04) started getting permission denied errors sometime in the past couple of weeks.
The exports file has the share exported as rw:-
Code: | # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/home/bob/Encrypted/Shared 192.168.1.0/24(insecure,rw,sync,no_subtree_check,crossmnt) |
But it looks like it's exported ro?
Code: | # cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/home 192.168.1.0/24(ro,insecure,root_squash,sync,no_wdelay,no_subtree_check,v4root,uuid=9552457d:66734ea5:8def6978:4a75dd75,sec=390003:390004:390005:1)
/ 192.168.1.0/24(ro,insecure,root_squash,sync,no_wdelay,no_subtree_check,v4root,fsid=0,uuid=9552457d:66734ea5:8def6978:4a75dd75,sec=390003:390004:390005:1)
/home/bob 192.168.1.0/24(ro,insecure,root_squash,sync,no_wdelay,no_subtree_check,v4root,uuid=9552457d:66734ea5:8def6978:4a75dd75,sec=390003:390004:390005:1) |
I've been fighting with this for days now and can't make it work, and it might have nothing to do with write permissions. What have I done wrong? _________________ Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson
Last edited by tabanus on Wed Sep 09, 2020 12:19 pm; edited 1 time in total |
|
Back to top |
|
 |
mike155 Advocate

Joined: 17 Sep 2010 Posts: 2564 Location: Frankfurt, Germany
|
Posted: Mon Sep 07, 2020 10:07 pm Post subject: |
|
|
I can't tell you what is wrong on your machine.
But I once had an NFS permission issue I couldn't solve. It went away after I explicitly assigned unique fsids to each export in /etc/exports.
Code: | /export -rw,fsid=100,no_subtree_check,sync 10.0.0.2 10.0.0.3
/export/home -rw,fsid=200,nohide,no_subtree_check,async 10.0.0.2 10.0.0.3
/export/scratch -rw,fsid=500,nohide,no_subtree_check,async 10.0.0.2 10.0.0.3 |
If I look at my /proc/fs/nfs/exports, I see fsids for each volume that is exported. In your output, only "/" has an fsid.
On my machine, 'v4root' is assigned to '/' only. On your machine, it's assigned to all volumes. |
|
Back to top |
|
 |
tabanus l33t


Joined: 11 Jun 2004 Posts: 631 Location: UK
|
Posted: Wed Sep 09, 2020 12:19 pm Post subject: |
|
|
That's sorted it. Thanks  _________________ Things you might say if you never took Physics: "I'm overweight even though I don't overeat." - Neil deGrasse Tyson |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|