Technical article 102431

NFS mount fails with the error "mount: access denied for <system_name>".

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

When trying to NFS mount remote files, this error message occurs:

mount: access denied for <system_name>

Cause

One common cause of this error is that the NFS client system is
not properly listed in the server's exports file.  This leads to
the server acting as if the client name does not exist in the
export list.

Solution

Make sure that the client's fully qualified domain name is listed with the correct capitalization in the /etc/exports file. For example, if the client system name is known as "client.sco.COM", then it must appear this way; using "client.sco.com" will not work. If you use domain name service, you can determine the client's correct name by using the nslookup utility. Otherwise, check the /etc/hosts file on the client and/or server.

NOTE: A list of the server's exported filesystems and access lists can be obtained from a client system by running showmount(NADM):

showmount -e <NFS_server_name>

As an example, if using the export options -access and -root, it may be necessary to change this entry in /etc/exports:

/usr   -root=systema.sco.com,access=systema.sco.com
to this:
/usr -root=systema.sco.COM,access=systema.sco.COM

To use nslookup, simply run the command "nslookup <local_name>". You should see output similar to the following. The second name (after "Name:") is the correct form of your local system's name.

Server:  srv100c.sco.COM
Address:  0.0.0.0
Name:    srv100c.sco.COM
Address:  132.147.106.18

See also

The man pages:  exports(NF); exportfs(NADM).

TA102381, "Listing a directory in /etc/exports does not export that directory."

TA102384, "Get "Access denied" trying to mount an ODT 2.0 or NFS 1.2 filesystem."

TA102642, ""Mount: access denied for 'machine'" when trying to
mount filesystem."

From the Xinuos technical article database, record 102431. Reproduced with permission. The original is at www.sco.com/ta/102431, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.