Sorry for the delay... Just got back from vacation... Now I need to take another vacation day to rest.
host ??
I think one of us is off track. From your first post, I understand that you want to share files or mounts between two linux boxes.
Before you read further... Be sure the linux boxes are talking to each other. ( ping 'em ).
All you need to edit are these four files on both boxes.
Note: files are in /etc
exports - This is the main file you need to edit. This file is what tells linux what mount to share or export.
example:
/sharedMnt xxx.xxx.xxx.xxx (rw) << you can use other options here after rw. But this is the way mine is. The xxx.xxx.xxx.xxx is the IP of the box or client you want to be able access the share/mount.
The other files
host.allow for now, JUST to get it working. I'd put # in front of every line.
Now do
exportfs -ra This restarts exports with the new settings.
Ok, on your other box. You can do the same thing above if you have a mount you want to share.
Otherwise, to be able to access the mount you need to add a directory in /mnt. This directory can be most anything you want. Do
mkdir /mnt/clishareMnt. The clishareMnt is the part you can name what you want. But, you need to use that name in the fstab below...
Now you need to edit
fstab.
add
/mnt/clishareMnt nfs xxx.xxx.xxx.xxx:/sharedMnt (noauto,user,exec).
Now you should be able to do a
mount /mnt/clishareMnt replacing clishareMnt with whatever you used above.
If it works then on the box with the export edit only
host.allow and
host.deny note the dot. My lin boxes are safe from the world. Therefore I don't use host.deny and host.allow. Mine are blank or have #.
In
host.deny I think I would have:
CODE
all:all
This denies everything to everyone. Except what you have or will have in host.allow .
In
host.allow I think I'd have:
CODE
portmap: xxx.xxx.xxx.xxx
lockd: xxx.xxx.xxx.xxx
rquotad: xxx.xxx.xxx.xxx
statd: xxx.xxx.xxx.xxx
mountd: xxx.xxx.xxx.xxx
Note: If your boxes are as follows, BOX1=192.168.0.5 BOX2=192.168.0.7 and BOX2 has the export. Put BOX1's IP in place of above xxx.xxx.xxx.xxx
This should work. If I'm wrong.. I'll fix it or be corrected. I know the first part works up until host.allow and host.deny. I might play with the host.deny and host.allow tonight just to see if works ok.