- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NFS share permission denied
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:10 PM
07-16-2009 11:10 PM
NFS share permission denied
I wish to share a directory from HP-UX 11.23 and get it mounted in a solaris 10 Box . It gives permission denied while try to mount.
Syntax in /etc/exports is
/tmp access=hostname.xxx.xxx.com
I am able to mount directory without any issue if I give access permission to every one. Unfortunately I cant take this as a solution due to security concern..
regds
San
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:21 PM
07-16-2009 11:21 PM
Re: NFS share permission denied
Change your syntex of /etc/exports as following
/tmp access=
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:27 PM
07-16-2009 11:27 PM
Re: NFS share permission denied
I need to give access to multiple hosts..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:28 PM
07-16-2009 11:28 PM
Re: NFS share permission denied
If you want to give read write access then do the following in /etc/exports
rw=hostname[:hostname]....
and if you want to give the root aceess then
root=hostname[:hostname]..
and also refer following regsrding hostname
hostname
The name of a host. With a server configured for DNS naming in the nsswitch "hosts" entry, any hostname must be represented as a fully qualified DNS name. Currently HP-UX will allow a match for a non-fully qualified hostname; this HP only feature will be obsoleted in a later release of HP-UX
Also refer man pages for exportfs
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:40 PM
07-16-2009 11:40 PM
Re: NFS share permission denied
Assuming that you want to give root access to the perticular hostname do the following entry in /etc/exports
/tmp root=hostname.xxx.xxx.com, access=hostname.xxx.xxx.com
access=[access_list][:access_list]...
Give mount access to each access_list listed. See the "access_list" subsection below. An empty access= list allows all machines to mount the specified mount point. hostnames on the rw= list do not have to exist on the access list in order to successfully mount the exported file system. hostnames on the root= list must either appear on the rw= list or access= list in order to successfully mount the file system.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:48 PM
07-16-2009 11:48 PM
Re: NFS share permission denied
-bash-3.00$ cat /etc/exports
/tmp root=sigorsky.xxx.xxx.com,access=sigorsky.xxx.xxx.com
-bash-3.00$ sudo exportfs -av
re-exported /tmp
-bash-3.00$ showmount -e
export list for ralph:
/tmp root=sigorsky.xxx.xxx.com
From the client
-bash-3.00$ sudo mount ralph.xxx.xxx.com:/tmp /TEST
nfs mount: ralph.xxx.xxx.com:/tmp: Permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 11:53 PM
07-16-2009 11:53 PM
Re: NFS share permission denied
Try to mount nfs from root user.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 12:00 AM
07-17-2009 12:00 AM
Re: NFS share permission denied
nfs mount: ralph.xxx.xxx.com:/tmp: Permission denied
root@sigorsky # who am i
root pts/4 Jul 17 09:56
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 12:25 AM
07-17-2009 12:25 AM
Re: NFS share permission denied
Did you check your /etc/hosts???
The both servers ip adresses should be there in /etc/hosts.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 01:16 AM
07-17-2009 01:16 AM
Re: NFS share permission denied
Indeed , entries are very much present in /etc/hosts...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 01:35 AM
07-17-2009 01:35 AM
Re: NFS share permission denied
Try following
On NFS server, export the file system using
#exportfs -i -o root=
then try to mount from client system.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 01:44 AM
07-17-2009 01:44 AM
Re: NFS share permission denied
There wont be any problem to mount this time. Then the sharing will be for every one, which I need to avoid... :(
-bash-3.00$ showmount -e
export list for ralph:
/tmp (everyone)
-bash-3.00$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 01:58 AM
07-17-2009 01:58 AM
Re: NFS share permission denied
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).
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 02:12 AM
07-17-2009 02:12 AM
Re: NFS share permission denied
-bash-3.00$ cat /etc/passwd | grep -i nobody
nobody:*:-2:-2::/:
-bash-3.00$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 02:20 AM
07-17-2009 02:20 AM
Re: NFS share permission denied
Edit exportfs entry with -anon option and check
/tmp -anon=65534,access=
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 02:30 AM
07-17-2009 02:30 AM
Re: NFS share permission denied
/tmp -access=hostname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2009 02:42 AM
07-17-2009 02:42 AM
Re: NFS share permission denied
Did you have any file like /etc/dfs/dfstab in solaries server if yes then look out for it.
Regards
Sunny