- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: nfs permission issue
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-13-2006 03:14 PM
07-13-2006 03:14 PM
# exportfs
/opt/appl -anon=106
One another server uid=106 tried to do NFS mount:
# mount
Permission Denied
However the following is successful
# mount
Can you advice why mount on parents directory is successfully but in sub directory is denied? Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:01 PM
07-13-2006 04:01 PM
Re: nfs permission issue
For uid 106 and root, what does showmount -e "nfs_server" says?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:59 PM
07-13-2006 04:59 PM
Re: nfs permission issue
Does the above line means the only uid=106 is allowed to nfs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 05:36 PM
07-13-2006 05:36 PM
Re: nfs permission issue
man exportfs for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 05:50 PM
07-13-2006 05:50 PM
Re: nfs permission issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 09:09 PM
07-13-2006 09:09 PM
Re: nfs permission issue
that meens uid 106 gets the access rights of 'world', not that of 'owner' with uid 106 at the nfs server.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 09:32 PM
07-13-2006 09:32 PM
Re: nfs permission issue
And what's the root cause for the nfs mount Permission Denied? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 11:48 PM
07-13-2006 11:48 PM
Solutionyou have to differ between
- mounting denied:
that has nothing to do with option '-anon'
- access to files in the filesystem denied
Look at that example:
Server: /exportdir 700 (mode) name106 (user with id 106)
exports: -anon=106
When accessing that directory on a NFSclient
- with an existing userid on the server, but not root and not id 106, you won't get access to that directory
- as root on the client or non-existing userid on the server, or as id 106 you will
get access.
HTH.
mfG Peter
- as root or non-existing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2006 01:54 PM
07-16-2006 01:54 PM
Re: nfs permission issue
# mount
Permission Denied
However the following is successful
# mount
For my case, why mount on /opt/appl/script is successful but on /opt/appl/script/SRC1 is denied? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2006 09:55 PM
07-16-2006 09:55 PM
Re: nfs permission issue
if you have mounted the filesystem like you have done in the second case:
Which ids have access to the SRC1 directory on the NFSclient (if any)?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2006 10:18 PM
07-16-2006 10:18 PM
Re: nfs permission issue
After mount the parent dir successfully, I did "ll" and the output is as following:
# ll /opt/appl/scripts
lrwxrwxr-x 1 root sys 12 Jul 4 10:13 SRC1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2006 11:44 PM
07-16-2006 11:44 PM
Re: nfs permission issue
you wrote:
# ll /opt/appl/scripts
lrwxrwxr-x 1 root sys 12 Jul 4 10:13 SRC1
so /opt/appl/scripts/SRC1 is a symbolic link!
You cannot simply mount a symolic link - export and use the directory it points to.
If you want to access a file/directory a symbolic link points to, you must know that the destination of that link is resolved on the NFS-client.
If that text is a relative pathname within the exported directory structure, this will succeed (permissions granted ...).
If this is an absolute link, it depends:
Assume
/opt/appl/scripts/tmp -> /tmp
This will result in an access at a NFS client to its local /tmp directory!
If the link points to something on the NFS-Server which is outside of the exported directory structure, you usually won't get access. You need to setup an additional NFS-export and -mount for that directory the link points to - exactly as the link text gets resolved on the NFS client(s).
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2006 08:26 PM
07-18-2006 08:26 PM
Re: nfs permission issue
Ok, I see. thanks.