Morning permission issues with NFS mounts in Cent OS 5.2

This morning I attempted to configure an NFS share from a fresh Cent OS 5.2 machine to my desktop. I started by configuring NFS as I had for years. My /etc/exports config contained:

/Storage_A 192.168.1.2(rw,insecure,sync,no_root_squash)

I started NFS, then tried to mount the share from my desktop, but got an access denied error.

# mount -t nfs 192.168.1.2:/Storage_A /mnt/coral/A
mount.nfs: access denied by server while mounting 192.168.1.2:/Storage_A

Interesting, I had never had a problem with this config before. The logs confirmed the issue.

Feb 23 02:08:54 coral mountd[13624]: mount request from unknown host 192.168.1.80 for /Storage_A (/Storage_A)

A quick reread of docs later and we had a solution. The network mask should be included each time… Sloppiness on my part.

A quick change to /etc/exports:

/Storage_A 192.168.1.2/255.255.255.255(rw,insecure,sync,no_root_squash)

Restart NFS and the mount works beautifully.


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *