[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: NFS Setup/Configuration (WORKING)



SPIDAS !!!!! YOU DA'MAN !!!
 
Thank you SOOOOOOOOOOOOO much...I followed your steps and they worked PERFECTLY !!!
 
Not to mention...you little tutorial here is better than anything I looked at on the net.  You hit every piece DEAD-ON.
 
I can not thank you enough...
Thanks for everything I will be saving this message.
 
-Stephen
 


From: s spidas [mailto:sspidas@gmail.com]
Sent: Friday, November 17, 2006 11:05 PM
To: Stephen Yorke
Cc: Debian User
Subject: Re: NFS Setup/Configuration

It's quite straight forward actually

1.  Make sure 'nfs-common' is installed on all the clients (I'm assuming all clients will be linux boxes),and that both 'nfs-common' and 'nfs-kernel-server' are installed on all servers.  (apt-get install <file> will solve dependencies if any).

2.  Modify the following files (3 of 'em) on the server;  A: /etc/exports;     B: /etc/hosts.allow   C: /etc/hosts.deny
 
     A. /etc/exports       (this is the access control list for all filesystems to be exported)
          e.g. to export /home as read/write to computers on 10.10.0.0
                 /home     10.10.0.0/255.255.255.0(rw,no_root_squash,no_subtree_check)

(will give access to /home to all computers on network 10.10.0.0)

(note that there must be no white space between the options!) (for explanations see man nfs)

   B. /etc/hosts.allow   (list of hosts that are allowed to access the system).  To protect your system, define specific service access.  Avoid giving blanket access to all.  You may use the following:

   portmap:     10.10.0.0/255.255.255.0
   lockd:          10.10.0.0/255.255.255.0
   mountd:       10.10.0.0/255.255.255.0
   rquotad:       10.10.0.0/255.255.255.0
   statd:           10.10.0.0/255.255.255.0
   sshd:           10.10.0.0/255.255.255.0

  C.  /etc/hosts.deny  (list of hosts that are NOT allowed to access the system.

     ALL:   ALL


3.  Now force a re-read of the nfs/exportfs by issuing the following command as root:
 
          #:  exportfs  -ra

4.  You may check that things are working ok :   rpcinfo -p

5.  Go to a client, and as #:  mount <server>:/share   <mount point>. 
     e.g.   #:  mount 10.10.0.200:/home  /mnt

GOODLUCK!




On 11/16/06, Stephen Yorke <syorke@yorkes.net> wrote:

All,

I have been trying to setup NFS on my home Debian systems.

I have followed all the stuff from nfs.sourceforge.net but I keep getting Permission Denied errors when I try to mount the Exported folder.

Here is what I have…

:: PXE Server ::
tftpd-hpa
pxe
nfs-user-server

I know that my TFTP/PXE services are working properly because I network boot a PC and I get the boot prompt/menu.

:: exports ::
/tftpboot/debian-live 10.1.1.0/255.255.255.240(ro,no_root_squash)

:: hosts.allow ::
ALL:10.1.1.0/27

:: hosts.deny ::
'empty'


When I try this…
mount -t nfs 10.1.1.23:/tftpboot/debian-live /nfstest

I get the error…
mount: 10.1.1.23:/tftpboot/debian-live failed, reason given by server: Permission denied


Can anyone shed any light on this subject?
If I run tcpdump on the PXE/TFTP/NFS server I see the client trying to connect but it never gets connected.
I do not see anything in any of my log files which would help me out either...

Thanks in advance,
Stephen



Reply to: