- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/exports problem
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
Discussions
Discussions
Forums
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
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
тАО01-26-2010 08:03 AM
тАО01-26-2010 08:03 AM
This is driving me nuts. I have two directories on a server that I'm trying to access from another server by making the appropriate /etc/exports entries. My /etc/exports on server1 looks as follows:
/dir1 -access=server2
/dir2 -access=server2
I can access /dir1 just fine, but /dir2 never gets exported and cannot be accessed from server2. I tried unexporting (exportfs -ua) then reexporting (exportfs -a) with no success.
Permissions on the two directories are the same...I'm stumped because how in the world could one directory be accessible and the other not be? After all, they are on the same server.
Thanks in advance.
Mauro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 08:17 AM
тАО01-26-2010 08:17 AM
Re: /etc/exports problem
post output when attempting to mount /dir2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 08:36 AM
тАО01-26-2010 08:36 AM
Re: /etc/exports problem
# exportfs -va
exported /u01
exported /u02
However, when I go into the remote server, I see ALL the files and directories of the /u01 directory, but only see very few contents of the /u02 directory. I need to access a directory under /u02 but I don't even see it from the remote server. Thought that would be permissions, but that's not it.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 08:43 AM
тАО01-26-2010 08:43 AM
Re: /etc/exports problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 08:52 AM
тАО01-26-2010 08:52 AM
Re: /etc/exports problem
I simply export then entire /u01 and /u02 directories expecting to gain access to the entire structure under them from the remote server.
This is true for /u01, but I only see one directory under /u02 (there are more). Wonder what I am missing???
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 09:15 AM
тАО01-26-2010 09:15 AM
Re: /etc/exports problem
Compare the permissions of the directories under /u01 and /u02 on the source server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 09:21 AM
тАО01-26-2010 09:21 AM
Re: /etc/exports problem
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 09:39 AM
тАО01-26-2010 09:39 AM
Re: /etc/exports problem
Ahhh......root access can be a different issue entirely!
Try the following:
/dir1 -access=server2,root=server2
/dir2 -access=server2,root=server2
Re-export, then remount and see what things look like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 10:11 AM
тАО01-26-2010 10:11 AM
Re: /etc/exports problem
Thanks
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2010 10:26 AM
тАО01-26-2010 10:26 AM
SolutionSo you mean that /u02 is actually mounted, correct? What does:
bdf /u02
show?
> expecting to gain access to the entire structure under them from the remote server...
> as root and should have access to everything,..
That is probably your difficulty. Being root on the client machine gives you *no* privileges at all to the /u02 directory. For NFS mounts, the local root user is "nobody", so only directories that have read and execute for the world will be visible. To give away root privileges to a client, the server must have -root=hostname as a mount option in /etc/exports, something like this:
/u01 -root=myhost,-access=myhost
/u02 -root=myhost,-access=myhost
Then rexport everything on the server with: exportfs -va and umount and then remount from the client (NFS remembers the old state).
Bill Hassell, sysadmin