HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Mount directory
Operating System - Linux
1834285
Members
2986
Online
110066
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
02-01-2006 05:49 PM
02-01-2006 05:49 PM
Mount directory
I want to export a path from host A to let host B to mount , if I want ONLY USER at host B can write file to it , I try to set the /etc/exports at host A as "/path_to_share host B(rw)" , and set the dir mode to 777 for /path_to_share ( if not set to 777 , even root can't write to it ) , now all user at host B can write sth to it , could suggest how to set it ? thx
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 05:54 PM
02-01-2006 05:54 PM
Re: Mount directory
sorry , sth need to correct ,
I want ONLY "ROOT" USER at host B can write file to it ,
thx
I want ONLY "ROOT" USER at host B can write file to it ,
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 01:52 AM
02-02-2006 01:52 AM
Re: Mount directory
By default, NFS doesn't allow root on system A to be root on system B so root on the client is mapped by default to nobody. Makes sense right? In order for only root to access the NFS share, the FS must be exported with the no_root_squash option.
Example /etc/exports:
/share safehost(rw,no_root_squash)
To allow only root:
#chown root;chmod 700 /share
Example /etc/exports:
/share safehost(rw,no_root_squash)
To allow only root:
#chown root;chmod 700 /share
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 07:11 PM
02-02-2006 07:11 PM
Re: Mount directory
Just do this,
-- /etc/exports ---
/path_to_share hostB(rw,no_root_squash)
where,
no_root_squash:
Will not match uid/gid 0 to anonymous user. It is needed.
Change ownership of directory as,
# chmod 755 /path_to_share
Others can read or browse but not write.
--
Muthu
-- /etc/exports ---
/path_to_share hostB(rw,no_root_squash)
where,
no_root_squash:
Will not match uid/gid 0 to anonymous user. It is needed.
Change ownership of directory as,
# chmod 755 /path_to_share
Others can read or browse but not write.
--
Muthu
Easy to suggest when don't know about the problem!
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