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

Re: NFS setup



Do user names, uid, and gid match on the NFS server and the client?
This will also have to be true for group names and uid.

On Wednesday 12 December 2007 14:10:09 Peter Werner wrote:
> Hi,
>
> On Wed, Dec 12, 2007 at 12:56:57PM -0300, iuri de araujo sampaio wrote:
> > I would like to know if i have done everything properly on the server
> > and client  machine.
>
> did you do "exportfs -a" or restart/reload nfs-kernel-server after
> editing /etc/exports?
>
> > i can ping between each machine. I believe the permission is denied
> > because both machines don´t have each other listed
> > at /etc/hosts /etc/hosts.allow /etc/hosts.deny
> > Is that possible? and how to add them properly?  i tried to add them but
> > it doesn´t work either.
>
> yes, that is possible. if server and client can't resolv each others
> names mounting will be painfully slow, because nfsd tries to resolv the
> hostname. setting up an dnsd or editing /etc/hosts is not requiered but
> you should do it anyways.
>
> if you deny connects in /etc/hosts.deny you need to put something like
> this in /etc/hosts.allow
> logd,mountd,statd,portmap: 192.168.1.0/24
> have a look at iptables -nv -L too, if it still doesn't work after that.
>
> greetings Peter Werner




Reply to: