GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- autofs and permission
Operating System - HP-UX
1844044
Members
2797
Online
110227
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-23-2011 03:30 AM
04-23-2011 03:30 AM
autofs and permission
hi
any idea why this would not work ?
# more /etc/auto_master
/net -hosts -nosuid,soft,nobrowse
/- /etc/auto_direct
#
# more /etc/auto_direct
/sapmnt/KPP -nosuid 10.200.66.32:/export/sapmnt/KPP
/usr/sap/trans -nosuid 10.200.66.32:/export/sapmnt/trans
#
#
# cd /sapmnt/KPP/
sh: /sapmnt/KPP/: Permission denied.
#
# cd /sapmnt
# ll
total 0
dr-xr-xr-x 1 root root 1 Apr 23 13:56 KPP
# chmod 777 KPP
chmod: can't change KPP: Permission denied
#
any idea why this would not work ?
# more /etc/auto_master
/net -hosts -nosuid,soft,nobrowse
/- /etc/auto_direct
#
# more /etc/auto_direct
/sapmnt/KPP -nosuid 10.200.66.32:/export/sapmnt/KPP
/usr/sap/trans -nosuid 10.200.66.32:/export/sapmnt/trans
#
#
# cd /sapmnt/KPP/
sh: /sapmnt/KPP/: Permission denied.
#
# cd /sapmnt
# ll
total 0
dr-xr-xr-x 1 root root 1 Apr 23 13:56 KPP
# chmod 777 KPP
chmod: can't change KPP: Permission denied
#
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2011 04:20 AM
04-23-2011 04:20 AM
Re: autofs and permission
You might want to read /var/adm/syslog/syslog.log to see if it contains more information about why the autofs is failing.
I see at least two possible problems:
1.)
To protect the NFS server against compromised NFS clients, the NFS server treats the user "root" at the NFS client as equivalent to user "nobody" by default. This protection is configurable at the NFS server, when exporting/sharing the filesystem over NFS.
This might be the reason why your chmod command fails, but since /sapmnt/KPP is world-readable and -accessible, the "cd /sapmnt/KPP" should have worked. Something else must be going on...
2.)
Your autofs uses the NFS server's IP address to mount the NFS filesystems, but is the NFS client listed by IP address or by name in the NFS server's configuration? If it's by name, the NFS server might be unable to reverse-map the source IP address of the incoming NFS mount request to the client hostname.
This would cause the NFS server to reject the mount request... and the autofs would have to relay it as a "Permission denied" error to the application trying to access the NFS filesystem.
There would be multiple ways to fix this:
- fix your DNS so that your client hostnames can be correctly looked up by IP address
- or add the names and IP addresses of your NFS clients to /etc/hosts at the NFS server
- or change the NFS share/export configuration at the NFS server to use IP addresses instead of hostnames.
MK
I see at least two possible problems:
1.)
To protect the NFS server against compromised NFS clients, the NFS server treats the user "root" at the NFS client as equivalent to user "nobody" by default. This protection is configurable at the NFS server, when exporting/sharing the filesystem over NFS.
This might be the reason why your chmod command fails, but since /sapmnt/KPP is world-readable and -accessible, the "cd /sapmnt/KPP" should have worked. Something else must be going on...
2.)
Your autofs uses the NFS server's IP address to mount the NFS filesystems, but is the NFS client listed by IP address or by name in the NFS server's configuration? If it's by name, the NFS server might be unable to reverse-map the source IP address of the incoming NFS mount request to the client hostname.
This would cause the NFS server to reject the mount request... and the autofs would have to relay it as a "Permission denied" error to the application trying to access the NFS filesystem.
There would be multiple ways to fix this:
- fix your DNS so that your client hostnames can be correctly looked up by IP address
- or add the names and IP addresses of your NFS clients to /etc/hosts at the NFS server
- or change the NFS share/export configuration at the NFS server to use IP addresses instead of hostnames.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP