1827741 Members
3115 Online
109969 Solutions
New Discussion

Re: Nfs problem

 
SOLVED
Go to solution
Tarek
Super Advisor

Nfs problem

Hi there..
i'm having a strange problem while trying to mount nis users areas. I'm using hpux11.
Using automout.
If I do, for example, cd ~user1 i mount it, but when i do pwd, i get error message: permission denied. For some users (on different ws) i have this error, for others no.
I checked those ws with errors, but they seem equal to the others. I looked in /etc/exports and the interested directory is mounted.
I don't know what to do..
any suggest?
6 REPLIES 6
Vincenzo Restuccia
Honored Contributor
Solution

Re: Nfs problem

If You Receive a "Permission Denied" Message



Check the mount options in the /etc/fstab file on the NFS client. A directory you are attempting to write to may have been mounted read-only.
Issue the ls -l command to check the HP-UX permissions on the server directory and on the client directory that is the mount point. You may not be allowed access to the directory.
Issue the following command on the NFS server:
/usr/sbin/exportfs
Or, issue the following command on the NFS client:
/usr/sbin/showmount -e server_name
Check the export permissions on the exported directory. The directory may have been exported read-only to your client. The system administrator of the NFS server can use the remount mount option to mount the directory read/write without unmounting it. See To Change the Default Mount Options.

If you are logged in as root to the NFS client, check the export permissions to determine whether root access to the directory is granted to your NFS client.
If you are logged in as root to the NFS client, and your client is not allowed root access to the exported directory, check the passwd database on the NFS server to determine whether it contains an entry for user nobody. Without root access, the root user on an NFS client is given the access permissions of user nobody. Also, check whether anonymous users are denied access to the directory (with the anon=65535 export option).

If your client is not allowed root access or anonymous user ID access to the exported directory, log in as a non-root user to get access to the directory.
If you are not running NIS, or if the server is in a different domain from the client, check the passwd databases on the server and the client to make sure you have a valid login on both machines and that your user ID is the same on both machines. If your user ID is unrecognized on the NFS server, you will be granted the permissions of user nobody.
If you were attempting to run a program when you received the "permission denied" message, issue the ls -l command on the NFS server to check whether the program you tried to run has the setuid bit set. If it does, check /etc/fstab to determine whether the directory was mounted with the nosuid mount option. If necessary, remove the nosuid option from the /etc/fstab file, then unmount and remount the directory.
Tarek
Super Advisor

Re: Nfs problem

Thanks Vincenzo !!
I had forget to set the permissions of the directory..it was only read. I had put
chmod 755 and now it's OK. All other things were right.
Thanks again..ehm..are you italian?
Vincenzo Restuccia
Honored Contributor

Re: Nfs problem

Yes,why ?
Tarek
Super Advisor

Re: Nfs problem

Perche' sono italiano anch'io..lavori in italia?
Vincenzo Restuccia
Honored Contributor

Re: Nfs problem

Si,tu ?
Tarek
Super Advisor

Re: Nfs problem

Si..sono di Milano, ma ora lavora a Genova alla Marconi. Sei sistemista HP?