Quote:
Originally Posted by props666999
still i think i haven't configured NFS successfully
cat /proc/fs/nfs/exports should list shares if im not mistaken
this is what i get
do i have to mount the shares ? to Windows XP ?
do i have to set username passwords accounts ?
Code:
# Version 1.1
# Path Client(Flags) # IPs
bash-3.2#
|
Here you have a restricted guide in how to install and check nfs. This applied for linux. I have not used win clients. Of course you can use wildcard with the IPS but security deteriorates. Mos foten the distros have made this part pretty automatic like using yast in opensuse etc, however these steps will help you if you have to go under the hood :-)
BTW there is no password in NFS.
NFS Server
1. Configuration Files.
/etc/exports (man exports)
directory machine1(option1,option2) machine2(option1,option2)
/home/tdec 192.168.1.203(rw)
/etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
/etc/hosts.allow
portmap 192.168.1.203
lockd: 192.168.1.203
mountd: 192.168.1.203
rquotad: 192.168.1.203
statd: 192.168.1.203
2. Start the Services
In general a reboot will install the nfs service when the startup scripts detect the /etc/exports file.
To determine if the portmap has been started:
$ ps aux|grep portmap
3. Verify that NFS is running:
Query the portmapper:
# rpcinfo -p
At least you should see 3 lines containing:
portmapper
nfs
mountd
4. Changes later on in /etc/exports.
You should run
# exportfs -ra
to force nfsd to re-read the /etc/exports file.
If you can not find exportfs the you can kill nfsd
#nfsd -HUP flag (see man nfsd)
If still does not work check hosts.allow to make sure thet new client machines are listed there. Also check on any firewalls
NFS Client.
1. Start the services.
I started the nfs server under yast. What you need is
portmap
lockd
statd
running in the machine
2. Mount the remote directory.
The first step is to create an empty directory in the client machine where the remote directory will be mounted. For example /home/tdec/mount.
Note: /home/tdec is my home directory in BOTH server and client so it is confusing the following command. If dns a name can be used instead of the ip address.
If access is deny be sure:
- if changes in config files that the # exportfs -ra has been run
- that the config files allow the access
- that the firewall in not in the way
# mount 192.168.1.200:/home/tdec /home/tdec/mount
# mount 192.168.1.201:/home/tdec /home/tdec/mount
3. Mount at boot time.
The key is to add a line into the /etc/fstab
# device mountpoint fs-type options dump fschorder
192.168.1.200:/home/tdec /home/tdec/mount nfs rw,hard,intr 0 0
Ciao
-=terry(Denver)=-