- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to restrict NFS share access to particular ser...
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
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
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
02-26-2014 10:56 AM - last edited on 02-26-2014 08:30 PM by Lisa198503
02-26-2014 10:56 AM - last edited on 02-26-2014 08:30 PM by Lisa198503
How to restrict NFS share access to particular server ?
How to restrict NFS share access to particular server ?
P.S. This thread has been moved from Disk to HP-UX > networking. -HP Forum Moderator
- Tags:
- NFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 11:01 AM
02-26-2014 11:01 AM
Re: How to restrict NFS share access to particular server ?
# man share_nfs
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 11:06 AM
02-26-2014 11:06 AM
Re: How to restrict NFS share access to particular server ?
I tried that too but I culdn't find an option to restrict nfs share for a paticular server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 11:10 AM
02-26-2014 11:10 AM
Re: How to restrict NFS share access to particular server ?
Share the pathname read-mostly if sec= option is not
provided. Read-mostly means read-write to those
clients specified and read-only for all other
systems. If a sec= option is provided, pathname is
shared read/write only to the listed clients. No
other systems can access pathname.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 11:14 AM
02-26-2014 11:14 AM
Re: How to restrict NFS share access to particular server ?
What version of HP-UX?
If 11.23 or older, then you use the 'access' keyword in the /etc/exports file.
If 11.31 it looks like you should use a combination of the 'sec' keyword and 'ro' or 'rw' access for specific hosts in the /etc/dfs/dfstab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 12:59 PM
02-26-2014 12:59 PM
Re: How to restrict NFS share access to particular server ?
Its 11.31.
could you please share an example;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014 01:15 AM
02-27-2014 01:15 AM
Re: How to restrict NFS share access to particular server?
>could you please share an example
share -F nfs -o ro=access_list,rw=access_list,sec=mode[:mode] pathname
For a particular server:
share -F nfs -o rw=server-FQDN pathname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014 07:21 AM
02-27-2014 07:21 AM
Re: How to restrict NFS share access to particular server?
Here's an example from one of my servers.
I'm allowing the share to a server called atl1 only. I am allowing read/write access and allowing root access as well.
# cat /etc/dfs/dfstab
# place share(1M) commands here for automatic execution
# on entering init state 3.
#
# share [-F fstype] [ -o options] [-d "<text>"] <pathname>
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /home
share -F nfs -o sec=sys,rw=atl1,root=atl1 /var/tmp/pw
From ATL1:
# mount ignite:/var/tmp/pw /mnt
atl1-11.23 root / # cd /mnt
atl1-11.23 root /mnt # ll
total 16
drwxr-xr-x 2 root sys 96 Feb 27 10:08 .
drwxr-xr-x 27 root root 8192 Oct 24 12:39 ..
-rw-r--r-- 1 root sys 0 Feb 27 10:08 afile1
-rw-r--r-- 1 root sys 0 Feb 27 10:08 afile2
-rw-r--r-- 1 root sys 0 Feb 27 10:08 afile3
atl1-11.23 root /mnt # rm afile3
afile3: ? (y/n) y
atl1-11.23 root /mnt # ll
total 16
drwxr-xr-x 2 root sys 96 Feb 27 10:11 .
drwxr-xr-x 27 root root 8192 Oct 24 12:39 ..
-rw-r--r-- 1 root sys 0 Feb 27 10:08 afile1
-rw-r--r-- 1 root sys 0 Feb 27 10:08 afile2
From another server:
atl6-11.31 root /root # mount ignite:/var/tmp/pw /mnt15
nfs mount: ignite:/var/tmp/pw: Permission denied
Here's a link to the "NFS Services Administrator's Guide HP-UX 11iv3"
Hopefully this helps.