NFS server allows transparent acess to programs,files or storage space on the server.
Service:Program/Daemon:Start Script
Port mapper: /sbin/portmap : /etc/init.d/portmap
NFS Server: /usr/sbin/rpc.nfsd and /usr/sbin/rpc.mountd : /etc/init.d/nfsserver
NFS server configuration overview:
All configurations for NFS server are stored in the file /etc/exports. Client-side configuration takes place using the file /etc/fstab.
For the NFS server to start automatically when the computer is booted, the coressponding symbolic links in the runlevel directories must be generated. If you configure the NFS server with YaST, this is done automatically; otherwise, you need to generate them with
#insserv nfsserver
or
#chkconfig nfsserver on
In SUSE Linux, it's very easy to setup NFS server using YaST.
Configure and start NFS server:
To use YaST to configure the NFS server, start Yast and then select Network Services > NFS Server.
or
you can do everything manually
You need to set permissions for exported directories in /etc/exports
#vi /etc/exports
/var/backup *(ro)
/var/work *(rw,sync)
[
Note: if you are specifying the write permission, make sure that the directory has write permission for OTHER user. You can add the write permission to the directory/file by
#chmod o+w /var/work
]
Restart the server to reflect the changes
#rcnfsserver restart
Configure and start NFS Client:
To configure the NFS server, start Yast and then select Network Services > NFS Client. Add all the NFS server and mount point information.
I would recommend YaST for client setup, as it will automatically populate /etc/fstab with the provided NFS server information. You can check /etc/fstab file after you configure NFS client using YaST.
Service:Program/Daemon:Start Script
Port mapper: /sbin/portmap : /etc/init.d/portmap
NFS Server: /usr/sbin/rpc.nfsd and /usr/sbin/rpc.mountd : /etc/init.d/nfsserver
NFS server configuration overview:
All configurations for NFS server are stored in the file /etc/exports. Client-side configuration takes place using the file /etc/fstab.
For the NFS server to start automatically when the computer is booted, the coressponding symbolic links in the runlevel directories must be generated. If you configure the NFS server with YaST, this is done automatically; otherwise, you need to generate them with
#insserv nfsserver
or
#chkconfig nfsserver on
In SUSE Linux, it's very easy to setup NFS server using YaST.
Configure and start NFS server:
To use YaST to configure the NFS server, start Yast and then select Network Services > NFS Server.
or
you can do everything manually
You need to set permissions for exported directories in /etc/exports
#vi /etc/exports
/var/backup *(ro)
/var/work *(rw,sync)
[
Note: if you are specifying the write permission, make sure that the directory has write permission for OTHER user. You can add the write permission to the directory/file by
#chmod o+w /var/work
]
Restart the server to reflect the changes
#rcnfsserver restart
Configure and start NFS Client:
To configure the NFS server, start Yast and then select Network Services > NFS Client. Add all the NFS server and mount point information.
I would recommend YaST for client setup, as it will automatically populate /etc/fstab with the provided NFS server information. You can check /etc/fstab file after you configure NFS client using YaST.