Re: Permission Denied on NFS Mount

From: Kevin Collins (spamtotrash_at_toomuchfiction.com)
Date: 05/25/05


Date: Wed, 25 May 2005 14:30:35 GMT

In article <1117025225.525038.169930@o13g2000cwo.googlegroups.com>,
basis_consultant@hotmail.com wrote:
> Hi,
>
> On the host containing the filesystem, I added a line to
> /etc/exports as follows:
>
> /<fs> -root=<client>, access=<client>
                       ^

Not sure if that space is valid or not...

> I executed /usr/sbin/exportfs -a
>
> On the client, I added a line in /etc/fstab as follows;
>
><host>:/<fs> /<fs> nfs defaults 0 0
>
> On the client, I executed 'mount <serverhost>:/<fs>', but
> HP-UX (v11.11) responded with 'Permission Denied'.
>
> I am root in both client and server. Root has full permission
> on the filesystems. (I set the permissions to 777).
>
> I can telnet, ftp, etc.. from the server to the client, and
> vice-versa.

Not really relevant to NFS mounting.

> What could be causing the 'Permission Denied' response?

The server thinks you are not authorized to access, which means that if your
exports file is correct it is not resolving you host name correctly or the
client is attempting to mount from the wrong server.

To figure out what host name the server needs to see, try the following:

1) telnet from client to server and log in
2) run 'who -a | grep $LOGNAME'
3) look for the 1st entry (most recent timestanp)
4) the last field shows the host you are connecting from - that is what exports
needs to have

Be aware that the last field can be truncated, so you might have to still
figure out the correct name.

You can always put the IP address of the client in exports - it should always
work.

Kevin

-- 
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com


Relevant Pages

  • Re: cs-host, host header and destination
    ... I can understand why someone would want to cloak their ... > The CS-Host field is sent by the client. ... If the server is configured with host headers only, ...
    (microsoft.public.inetserver.iis)
  • Re: how to configure host headers for 3 IIS machines ?
    ... The CS-Host field is sent by the client. ... If the server is configured with host headers only, ... Kristofer Gafvert - IIS MVP ...
    (microsoft.public.inetserver.iis)
  • Re: Personal Firewalls
    ... overhead on the host PC and provides some physical isolation. ... Although the individual client connections can be relatively secure, ... I would not host the data on a web server unless absolutely ... inexpensive solution could be the installation of removable hard drives. ...
    (Security-Basics)
  • Re: [SLE] Help with NFS
    ... > Dylan wrote: ... >> OK, this is fine, except that if you specify an individual host by ... > Host name of server = toshiba ... > Host name of client = linux ...
    (SuSE)
  • Re: 404 handler mkicks in before ISAPI filter
    ... However, I do have control over the URLs that will be sent my way, since they are all generated by my server application. ... Yoram Ayalon ... The value you are getting for the URL is coming straight from the client. ... It is normal that the client does not send the host name as a part of the ...
    (microsoft.public.inetserver.iis)