Coming Underground
« Manually installing CSI apps on the NMTSupressing repeating log messages with Syslog-ng »

NFS access restrictions on the PCH A-110 NMT

Permalink 2009-10-30 09:25, by jaervosz, Categories: General, Universe/English, Opensource

My Linux based Networked Media Tank (NMT), A PopCornHour A-110 normally only allow clients in the same subnet as the NMT to mount NFS exports. If you somehow need to change that, here is how to do it.

First you have to install telnet or dropbear SSH to have console access to the PCH.

I didn't quite find any convenient way to edit files on the PCH, so I'm just using FTP to download, edit on the laptop, upload and move into correct place.

Log in to the PCH:

cp /mnt/syb8634/etc/nfsserver.sh /share/

Download and edit it with your favourite FTP client (default username and password combo ftpuser:1234).

Add the following three lines just before the reload function. Do remember to remove the leading +:

then
/usr/sbin/statd > /dev/null 2> /dev/null
fi

+ #Hack to change IP restrictions of NFS mounts
+ echo "/share 192.168.2.0/255.255.255.0(rw,sync,root_squash,anonuid=1001,anongid=1001)" >> /etc/exports
+ exportfs -a
}

reload()
{

Likewise you can change reload if you want.

Remove the file from /share before uploading:

rm /share/nfsserver.sh

Then upload it with FTP.

Move it in place and restart the service:

mv /share/nfsserver.sh /mnt/syb8634/etc/nfsserver.sh
chmod 755 /mnt/syb8634/etc/nfsserver.sh
/mnt/syb8634/etc/nfsserver.sh stop
/mnt/syb8634/etc/nfsserver.sh start

Mount and enjoy:-)

Leave a comment »Send a trackback »

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

©2010 by admin

Contact Jaervosz