RE: NFS Setup/Configuration (WORKING)

2006-11-18 Thread Stephen Yorke
SPIDAS ! YOU DA'MAN !!!
 
Thank you SO 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:[EMAIL PROTECTED] 
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 [EMAIL PROTECTED] 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)
http://10.1.1.0/255.255.255.240%28ro,no_root_squash%29 

:: 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 




Re: NFS Setup/Configuration

2006-11-17 Thread Daniel Baumann
Jesus Arocho wrote:
 0.02: I am running an NFS server on a debian box; 5 kubuntu workstations 
 mount 
 NFS exports from the box.  The passwords, login names, login ID number, group 
 names and group ID numbers must match between the workstation and the server.

My two cents: Booting from NFS and just mounting ordinary NFS shares
once the system is already running are two completely different things
with nothing in common but the name 'NFS'.

-- 
Address:Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:  [EMAIL PROTECTED]
Internet:   http://people.panthera-systems.net/~daniel-baumann/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: NFS Setup/Configuration

2006-11-17 Thread Stephen Yorke
I have not thought of this but I am logged in with root from my
workstation which does in fact have the same password as the one on the
NFS server.

Also, I checked my PORTMAP file and it is not listening on the loopback
address (127.0.0.1).  That line is in fact commented out.

-Stephen 

-Original Message-
From: Jesus Arocho [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 5:59 PM
To: debian-user@lists.debian.org
Subject: Re: NFS Setup/Configuration

On Thursday 16 November 2006 12:36, Stephen Yorke 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
0.02: I am running an NFS server on a debian box; 5 kubuntu workstations
mount NFS exports from the box.  The passwords, login names, login ID
number, group names and group ID numbers must match between the
workstation and the server.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



Re: NFS Setup/Configuration

2006-11-17 Thread s spidas

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 [EMAIL PROTECTED] 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)http://10.1.1.0/255.255.255.240%28ro,no_root_squash%29

:: 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



Re: NFS Setup/Configuration

2006-11-17 Thread Nate Bargmann
I have had an ongoing issue with the later versions of mount which was
claimed to have been fixed in bug 354075:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=354075

I have held mount at version 2.12r-6 as anything later refuses to work
with my NFS server, also running Sid.  The latest version I've tried is
2.12r-12 on 25 Oct and I even tried with the (then) latest kernel,
2.6.18 on the laptop (the server was at 2.6.18) and found no change.

I would like to hear from anyone who is experiencing the same problem.

As an aside, I am running Shorewall on the server and Firehol on the
laptop to configure Netfilter.  Still, disabling both firewalls has no
effect for me on the failure.

Surely, I can't be the only one in the Debian Universe with this
problem.  ;-)

- Nate 

-- 
 Wireless | Amateur Radio Station N0NB  |  Successfully Microsoft
  Amateur radio exams; ham radio; Linux info @  | free since January 1998.
 http://www.qsl.net/n0nb/   |  Debian, the choice of
 My Kawasaki KZ-650 SR @| a GNU generation!
http://www.networksplus.net/n0nb/   |   http://www.debian.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: NFS Setup/Configuration

2006-11-16 Thread Jesus Arocho
On Thursday 16 November 2006 12:36, Stephen Yorke 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
0.02: I am running an NFS server on a debian box; 5 kubuntu workstations mount 
NFS exports from the box.  The passwords, login names, login ID number, group 
names and group ID numbers must match between the workstation and the server.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]