| « Manually installing CSI apps on the NMT | Supressing repeating log messages with Syslog-ng » |
NFS access restrictions on the PCH A-110 NMT
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:-)