Koozali.org: home of the SME Server

SME NFS Server Howto - Here

Damian

SME NFS Server Howto - Here
« on: September 07, 2004, 11:17:01 AM »
For everyone not running SME as a firewall javascript:emoticon(':-)')

I needed to access the ibays used by our windoze boxes from my SuSE 9.1 laptop (192.168.100.117). Here's how it went ...

On SME Server
=============

Install nfs-utils-0.3.3-5 and portmap-4.0-41 from ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/ or a mirror
.
chkconfig portmap on
chkconfig nfs on

mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow
echo "nfs: 192.168.100.0/255.255.255.0" > /etc/e-smith/templates-custom/etc/hosts.allow/nfs
echo "portmap: 192.168.100.0/255.255.255.0" > /etc/e-smith/templates-custom/etc/hosts.allow/portmap
/sbin/e-smith/expand-template /etc/hosts.allow

mkdir -p /etc/e-smith/templates-custom/etc/exports
echo "/home/e-smith/files/ibays 192.168.100.117(rw)" > /etc/e-smith/templates-custom/etc/exports/ibays
/sbin/e-smith/expand-template /etc/exports

service portmap start
srvice nfs start

On Linux Client
===============

Install nfs-utils-1.0.6-103 (SuSE 9.1) or similar

Create local nfs mountpoint:
mkdir /share

Add following to /etc/fstab:
"server ip address":/home/e-smith/files/ibays  /share  nfs   rw,noauto,user,udp 0 0

"noauto" is added above because if I'm on a remote site I don't want the laptop to try to mount the home server.
"udp" is added above because SuSE 9.1 defaults to TCP for NFS and SME only supports UDP.

Ensure GIDs are same on both systems (always 5003 on SME?) for group-access ibays. This meant changing the GID for "users" on my laptop to 5003 (and then changing any files on my laptop owned by me in /tmp and /home/me to GID 5003)
Ensure UIDs are same on both systems for home and private ibays (optional).

mount /share

Have Fun :)

Damian

Damian

SME NFS Server Howto - Here
« Reply #1 on: September 07, 2004, 09:32:37 PM »
Oops!

Seems the chkconfig commands don't actually work (or at least as they do under SuSE).

To make sure the SME services start on boot:

cd /etc/rc.d/rc7.d
ln -s /etc/init.d/portmap S92portmap
ln -s /etc/init.d/nfs S93nfs

Damian