Page 1 of 1

Edited NFS permissions not saving

Posted: Thu Jun 09, 2016 1:43 pm
by Eds0107
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

Posted: Thu Jun 09, 2016 6:16 pm
by Lantis
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

Re: Edited NFS permissions not saving

Posted: Thu Jun 09, 2016 7:02 pm
by Eds0107
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.

Re: Edited NFS permissions not saving

Posted: Thu Jun 09, 2016 9:16 pm
by Lantis
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.

Re: Edited NFS permissions not saving

Posted: Fri Jun 10, 2016 12:34 am
by Eds0107
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

Posted: Fri Jun 10, 2016 1:40 am
by Lantis
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

Re: Edited NFS permissions not saving

Posted: Fri Jun 10, 2016 2:50 am
by ispyisail
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
I hate "vi"

Re: Edited NFS permissions not saving

Posted: Fri Jun 10, 2016 12:03 pm
by Eds0107
Got it working! And learned some things along the way :)

Thank you so much for your help!