Why will my NFS server not allwo connections

  • Thread starter Thread starter ComputerGeek
  • Start date Start date
  • Tags Tags
    Server
AI Thread Summary
The NFS server connection issue stems from a permission denied error when trying to access an exported home directory from a Mac to a Linux box. Potential causes include improper NFS implementation differences between systems, the need for correct DNS/NIS configurations, and the possibility of using "secure" NFS exports that restrict client requests from non-root ports. It's important to ensure that the /etc/hosts.allow file is set up correctly, as default settings may not allow connections. Properly configuring the NFS exports and understanding the implications of different NFS versions can help resolve the connection problems.
ComputerGeek
Messages
383
Reaction score
0
Why will my NFS server not allwo connections!

Grrr... NFS is really driving me nuts.

On my Mac, I have exported my home directory so that I can use the files on my Linux box. The problem is that when I try to connect to the Mac I get a permission denied error.

I have exported my home directory seemingly correctly.

I did come across some FBSD NG posts about how FBSD will only allow filesystems exported under /usr. could OS X have inherited this when they moved to tiger?
 
Computer science news on Phys.org
ComputerGeek said:
Grrr... NFS is really driving me nuts.

On my Mac, I have exported my home directory so that I can use the files on my Linux box. The problem is that when I try to connect to the Mac I get a permission denied error.

I have exported my home directory seemingly correctly.

I did come across some FBSD NG posts about how FBSD will only allow filesystems exported under /usr. could OS X have inherited this when they moved to tiger?

There's a number of things that could be at fault here:

(1) Like most features of UNIX origins, Linux has them implemented poorly. This is definitely the case, especially when you're working with non-Linux implementations. Even worse is when you're working with different NFS versions from different NFS implementations.

(2) DNS/NIS are generally good things to have on your network when working with NFS. Most NFS implementations try to reverse the IP to match it with the value in the configuration file. If you specify a hostname or network in your exports file, double check to make sure the system you're trying to mount the exported volume on has a correct reverse. I suggest you either (a) always use hostnames or networks or (b) IPs when working with NFS -- don't mix and match.

(3) Finally, you may be using "secure" exported NFS volumes, which means a client cannot send a request from a port > 1024 (this would imply the request was being sent by a non-root user -- hence, the "secure"). IIRC, since the user you normally are in working with an OS X -- a non-root user, 'Finder' or whatever will send the request via a non-privileged port. I haven't worked with the Linux NFS implementation in awhile, but it may export 'secure' volumes by default, so consult your documentation ('man exports' should provide you with the relevant information) to figure out how to explicitly specify that you wish you to export the volume in an insecure manner.

Edit: The "FBSD NG post" that you consulted was blatantly wrong. Depending on the NFS implementation and version, you may only be able to export the filesystems as a whole. By default, FreeBSD creates a /, /usr, and /var filesystems, so you may only be able to export /, /usr, /var, but not any specific subdirectories of any of those filesystems -- other implementations and versions of NFS allow you to do this. This has nothing to do with a client mounting a filesystem, though.
 
Last edited:
Did you setup your /etc/hosts.allow properly?
 
I thought that if you do not specify any allow or deny that it defaulted to allow.

how should I set it up?
 
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Back
Top