
Edited NFS permissions not saving
Moderator: Moderators
Edited NFS permissions not saving
I have the latest ipsy build and an Archer c7 v2. I have an external hard drive attached to the usb that is set up to use NFS sharing. I couldn't get Kodi to see the NFS share and after some research discovered that the problem was the permissions. So I installed Putty and edited the etc/exports. It was working fine and Kodi could see the share but I then discovered that after a router reboot the etc/exports reverted back to the old settings. How can I make the changes permanent? I'm very new to all of this so feel free to dumb it down for me 

Re: Edited NFS permissions not saving
To help you further I'd need to know exactly what you changed.
Or if you want to try it out yourself, everything you need is at /etc/init.d/nfsd
Or if you want to try it out yourself, everything you need is at /etc/init.d/nfsd
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Edited NFS permissions not saving
The only things I changed were secure to insecure and root_squash to all_squash.
Thank you for offering to help. I generally try to research and figure things out on my own but this is really new territory for me.
Thank you for offering to help. I generally try to research and figure things out on my own but this is really new territory for me.
Re: Edited NFS permissions not saving
Line 72 of /etc/init.d/nfsd
Change $secure to be insecure
Change root_squash to be all_squash
This will apply these settings to all NFS servers you set up from the router.
I'll have to do some further testing but there's definitely a logic error regarding the secure/insecure thing.
We don't currently offer the option to change root squash to all squash.
I'll have to check whether this option is worthwhile adding.
Change $secure to be insecure
Change root_squash to be all_squash
This will apply these settings to all NFS servers you set up from the router.
I'll have to do some further testing but there's definitely a logic error regarding the secure/insecure thing.
We don't currently offer the option to change root squash to all squash.
I'll have to check whether this option is worthwhile adding.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Edited NFS permissions not saving
I'm apparently doing something wrong. If I type /etc/init.d/nfsd into Putty, all that happens is a short list of available commands like start and stop.
Re: Edited NFS permissions not saving
You need to edit the file, not execute it.
Use your favourite Linux CLI editor or use something like WinSCP.
Here is the file and line numbers for reference:
https://github.com/ericpaulbishop/gargo ... /nfsd.init
Use your favourite Linux CLI editor or use something like WinSCP.
Here is the file and line numbers for reference:
https://github.com/ericpaulbishop/gargo ... /nfsd.init
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Edited NFS permissions not saving
I'm apparently doing something wrong. If I type /etc/init.d/nfsd into Putty, all that happens is a short list of available commands like start and stop.
Code: Select all
opkg update
Code: Select all
opkg install nano
Code: Select all
sudo nano /etc/init.d/nfsd
Re: Edited NFS permissions not saving
Got it working! And learned some things along the way 
Thank you so much for your help!

Thank you so much for your help!