Hi, I am having three linux system in my LAN with details as follows:
1. Open SUSE 10.2 with Static IP Address 192.168.0.2 and treating as Server. 2. Fedora Core 6 with Static IP Address 192.168.0.3 and treating as Client1. 3. Zenwalk Linux 5.2 with Static IP Address 192.168.0.4 and treating as Client2.
Now I want to export one fixed folder to Client1 and another fixed folder to Client2 from Server so that I can work on Server from Client Systems using the concept of NFS. For this purpose I made following entry in the /etc/exports file:
======================================================================= # See the exports(5) manpage for a description of the syntax of this file. # This file contains a list of all directories that are to be exported to # other computers via NFS (Network File System). # This file used by rpc.nfsd and rpc.mountd. See their manpages for details # on how make changes in this file effective. /home/rashid 192.168.0.4(rw) /home/ccpplinux/public_html 192.168.0.3(rw) =======================================================================
Then I started nfs server on the Server system with the following command:
======================================================================= linux-server:/etc # /etc/rc.d/nfsserver restart Shutting down kernel based NFS server done Starting kernel based NFS serverexportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.4:/home/rashid". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0 exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.3:/home/ccpplinux/public_html". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0 done linux-server:/etc # =======================================================================
Then from the Client2 system I tried to mount the folder exported from the Server as follows:
======================================================================= root[~]# mount 192.168.0.2:/home/rashid/ /root/server/ mount.nfs: internal error root[~]# =======================================================================
But as you can see I am getting the message of internal error.
Similarly from the Client1 system I tried to mount the folder exported from the Server:
======================================================================= [root@FedoraClient ~]# mount -t nfs 192.168.0.2:/home/ccpplinux/ /root/server/ mount: 192.168.0.2:/home/ccpplinux/ failed, reason given by server: Permission denied [root@FedoraClient ~]# =======================================================================
As you can see I am getting message of Permission denied.
So I am unable to make use of NFS in my LAN. Can you please help me so that I can start using the facility of NFS on my Linux Systems?
I will remain thankful to you all for this forever.
On Tuesday 09 December 2008 22:51, Pankaj Kumar wrote:
Hi, I am having three linux system in my LAN with details as follows:
- Open SUSE 10.2 with Static IP Address 192.168.0.2 and treating
as Server. 2. Fedora Core 6 with Static IP Address 192.168.0.3 and treating as Client1. 3. Zenwalk Linux 5.2 with Static IP Address 192.168.0.4 and treating as Client2.
Now I want to export one fixed folder to Client1 and another fixed folder to Client2 from Server so that I can work on Server from Client Systems using the concept of NFS. For this purpose I made following entry in the /etc/exports file:
=================================================================== ==== # See the exports(5) manpage for a description of the syntax of this file. # This file contains a list of all directories that are to be exported to # other computers via NFS (Network File System). # This file used by rpc.nfsd and rpc.mountd. See their manpages for details # on how make changes in this file effective. /home/rashid 192.168.0.4(rw) /home/ccpplinux/public_html 192.168.0.3(rw) =================================================================== ====
you need to start rpc.mountd and add in hosts.allow ALL: ALL
Then I started nfs server on the Server system with the following command:
=================================================================== ==== linux-server:/etc # /etc/rc.d/nfsserver restart Shutting down kernel based NFS server done Starting kernel based NFS serverexportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.4:/home/rashid". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0 exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.3:/home/ccpplinux/public_html". Assuming default behaviour ('subtree_check'). NOTE: this default will change with nfs-utils version 1.1.0
done linux-server:/etc #
====
Then from the Client2 system I tried to mount the folder exported from the Server as follows:
=================================================================== ==== root[~]# mount 192.168.0.2:/home/rashid/ /root/server/ mount.nfs: internal error root[~]# =================================================================== ====
But as you can see I am getting the message of internal error.
what does syslog say.
Similarly from the Client1 system I tried to mount the folder exported from the Server:
=================================================================== ==== [root@FedoraClient ~]# mount -t nfs 192.168.0.2:/home/ccpplinux/ /root/server/ mount: 192.168.0.2:/home/ccpplinux/ failed, reason given by server: Permission denied [root@FedoraClient ~]# =================================================================== ====
As you can see I am getting message of Permission denied.
So I am unable to make use of NFS in my LAN. Can you please help me so that I can start using the facility of NFS on my Linux Systems?
I will remain thankful to you all for this forever.
-- Best Regards ... Pankaj Kumar
On Wednesday 10 December 2008 19:46, Pankaj Kumar wrote:
you need to start rpc.mountd and add in hosts.allow ALL: ALL
But on which system? Server or Client? Please clarify.
do that on both. And read up nfs, access control and security thoroughly. Adding ALL:ALL means allow everyone all services.
But on which system? Server or Client? Please clarify.
For NFS the rpc,portmap,nfs services must be started. Then on the server after logging as root type 'exportfs' . Now on client you can mount the exported directory as usual.
do that on both. And read up nfs, access control and security thoroughly. Adding ALL:ALL means allow everyone all services.
-- Rgds JTD -- http://mm.glug-bom.org/mailman/listinfo/linuxers
On Tue, Dec 9, 2008 at 12:21 PM, Pankaj Kumar pankaj@glug4muz.org wrote:
======================================================================= root[~]# mount 192.168.0.2:/home/rashid/ /root/server/ mount.nfs: internal error root[~]# =======================================================================
======================================================================= [root@FedoraClient ~]# mount -t nfs 192.168.0.2:/home/ccpplinux/ /root/server/ mount: 192.168.0.2:/home/ccpplinux/ failed, reason given by server: Permission denied [root@FedoraClient ~]# =======================================================================
Be careful. Fedora has a bug which prevents mounting exported NFS. I had reported it a long time ago but its low priority and I dont know if it was fixed. Anyway, be sure to check that your firewall isn't blocking some ports since NFS4 uses dynamically assigned ports. You need to pin those ports. This is also a known "issue" for many people. Google around and you'll find the solution.