Edited NFS permissions not saving

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
Eds0107
Posts: 8
Joined: Sun Jun 05, 2016 2:43 pm

Edited NFS permissions not saving

Post 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 :)

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Edited NFS permissions not saving

Post 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
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.

Eds0107
Posts: 8
Joined: Sun Jun 05, 2016 2:43 pm

Re: Edited NFS permissions not saving

Post 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.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Edited NFS permissions not saving

Post 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.
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.

Eds0107
Posts: 8
Joined: Sun Jun 05, 2016 2:43 pm

Re: Edited NFS permissions not saving

Post 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.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Edited NFS permissions not saving

Post 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
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.

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Edited NFS permissions not saving

Post 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"

Eds0107
Posts: 8
Joined: Sun Jun 05, 2016 2:43 pm

Re: Edited NFS permissions not saving

Post by Eds0107 »

Got it working! And learned some things along the way :)

Thank you so much for your help!

Post Reply