- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- NFS (and NIS) with netgroups
Operating System - Linux
1822550
Members
2949
Online
109642
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
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
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
тАО07-10-2009 01:29 PM
тАО07-10-2009 01:29 PM
NFS (and NIS) with netgroups
Greetings,
I am trying to mount a share from a client listed in a netgroup on the server and I keep getting "Permission denied".
SERVER (lmvm1)
--------
cat /etc/netgroup
my_netgroup (Config387VM3,,NIS_DOMAIN)
cat /etc/exports
/mnt/psv2/my_nfs1/ @my_netgroup(rw,async,no_root_squash)
showmount -e
/mnt/psv2/my_nfs1 @my_netgroup
CLIENT (Config387VM3)
--------
# mount -t nfs lmvm1:/mnt/psv2/my_nfs1/ /mnt/1
mount: lmvm1:/mnt/psv2/my_nfs1/ failed, reason given by server: Permission denied
The man page for "netgroup" states:
"The Linux libc5 does not query the /etc/netgroup file directly, it only querys the NIS server for the groups".
I took that to mean netgroups would not work without setting up a NIS server, so I configured the NFS server as a NIS server as well. I changed the /var/yp/Makefile to build the netgrp database. I'm fairly confident that the communication between the NIS client and server is working appropriately since a 'ypcat passwd' on the client is reading the servers passwd file.
When I export the share to the world (*) or the specific client (Config387VM3), the mount succeeds. Can anyone help me figure out why it 's not working when the client is specified in a netgroup?
Thanks.
I am trying to mount a share from a client listed in a netgroup on the server and I keep getting "Permission denied".
SERVER (lmvm1)
--------
cat /etc/netgroup
my_netgroup (Config387VM3,,NIS_DOMAIN)
cat /etc/exports
/mnt/psv2/my_nfs1/ @my_netgroup(rw,async,no_root_squash)
showmount -e
/mnt/psv2/my_nfs1 @my_netgroup
CLIENT (Config387VM3)
--------
# mount -t nfs lmvm1:/mnt/psv2/my_nfs1/ /mnt/1
mount: lmvm1:/mnt/psv2/my_nfs1/ failed, reason given by server: Permission denied
The man page for "netgroup" states:
"The Linux libc5 does not query the /etc/netgroup file directly, it only querys the NIS server for the groups".
I took that to mean netgroups would not work without setting up a NIS server, so I configured the NFS server as a NIS server as well. I changed the /var/yp/Makefile to build the netgrp database. I'm fairly confident that the communication between the NIS client and server is working appropriately since a 'ypcat passwd' on the client is reading the servers passwd file.
When I export the share to the world (*) or the specific client (Config387VM3), the mount succeeds. Can anyone help me figure out why it 's not working when the client is specified in a netgroup?
Thanks.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:03 PM
тАО07-10-2009 02:03 PM
Re: NFS (and NIS) with netgroups
Still not sure what is going on, but now it seems to be working. The last thing I had done was to make sure I could mount by exporting it to the specific client (changing /etc/exports to share out to Config387VM3). On the client I mounted successfully and submitted this thread. After that I killed rpc.mountd on the server, changed /etc/exports to share out to the netgroup again, and restarted rpc.mountd in debug mode (rpc.mountd -F -d all). Finally, on the client, I unmounted and then remounted, it succeeded. Hmmm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2009 02:30 PM
тАО07-10-2009 02:30 PM
Re: NFS (and NIS) with netgroups
SOLVED:
I discovered that the client was not listed in the servers /etc/hosts file. After adding it and restarting the network, I could mount with the client specified through a netgroup.
I discovered that the client was not listed in the servers /etc/hosts file. After adding it and restarting the network, I could mount with the client specified through a netgroup.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP