<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: question about Netgroups file... in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96445#M19662</link>
    <description>&lt;P&gt;You cannot define ipaddress in netgroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the following would be a typical /etc/netgroup file, on a NIS master:&lt;BR /&gt;&lt;BR /&gt;# cat /etc/netgroup&lt;BR /&gt;&lt;BR /&gt;root-users (-,user1), (-,user2), (-,user3)&lt;BR /&gt;trusted-machines (machine1,-), (machine2,-), (machine3,-)&lt;BR /&gt;&lt;BR /&gt;Netgroups are limited to 1024 characters in size.&lt;BR /&gt;&lt;BR /&gt;If you need to put together a longer netgroup, you can do so by making a meta-group:&lt;BR /&gt;&lt;BR /&gt;meta-group netgroup1 netgroup2 netgroup1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2014 08:31:18 GMT</pubDate>
    <dc:creator>hariprak</dc:creator>
    <dc:date>2014-11-11T08:31:18Z</dc:date>
    <item>
      <title>question about Netgroups file...</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96149#M19635</link>
      <description>&lt;P&gt;stupid question...can a netgroup contain hostnames AND IP addresses?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checked everywhere and can't find the answer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:50:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96149#M19635</guid>
      <dc:creator>MSANDONASSGA</dc:creator>
      <dc:date>2014-11-06T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: question about Netgroups file...</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96199#M19641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;netgroup defines network wide groups used for access permission checking during remote mount request processing. Each line defines a group and has the format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EXAMPLE&lt;BR /&gt;This is a typical netgroup file:&lt;BR /&gt;&lt;BR /&gt;trusted_hosts (adminhost,,) (zeus,,) (thor,,) (minerva,,)&lt;BR /&gt;&lt;BR /&gt;untrusted_hosts&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (sleepy,,) (dopey,,) (grumpy,,) (sneezy,,)&lt;BR /&gt;&lt;BR /&gt;all_hosts&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trusted_hosts untrusted_hosts&lt;BR /&gt;&lt;BR /&gt;With this netgroup file it might make sense to modify /etc/exports to export / on the node only to trusted_hosts, but to export /home to all_hosts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For further more details refer, &lt;A href="https://library.netapp.com/ecmdocs/ECMP1196979/html/man5/na_netgroup.5.html" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMP1196979/html/man5/na_netgroup.5.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 20:59:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96199#M19641</guid>
      <dc:creator>hariprak</dc:creator>
      <dc:date>2015-03-06T20:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: question about Netgroups file...</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96235#M19647</link>
      <description>&lt;P&gt;Thank you for the response. I appreciate it. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this but my question is can I define a host name AND IP Addresses in the netgroup? &amp;nbsp;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#netgroup file example&lt;BR /&gt;linuxhosts (rhel1.corp.com,,) (rhel1-nfs.corp.com,,) (10.10.97.113,,) (10.10.97.114,,)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a requirement to create exports and grant access to 1) the server hostname on VLAN1, i.e. rhel1.corp.com 2) the NFS interface hostname on VLAN2, i.e., rhel1-nfs.corp.com 3) the IP address for each of these two hostnames, i.e., 10.10.97.113, 10.10.97.114 &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer not to have to list the IP addresses in the export file if I can just put them in to the netgroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 19:28:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96235#M19647</guid>
      <dc:creator>MSANDONASSGA</dc:creator>
      <dc:date>2014-11-07T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: question about Netgroups file...</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96445#M19662</link>
      <description>&lt;P&gt;You cannot define ipaddress in netgroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the following would be a typical /etc/netgroup file, on a NIS master:&lt;BR /&gt;&lt;BR /&gt;# cat /etc/netgroup&lt;BR /&gt;&lt;BR /&gt;root-users (-,user1), (-,user2), (-,user3)&lt;BR /&gt;trusted-machines (machine1,-), (machine2,-), (machine3,-)&lt;BR /&gt;&lt;BR /&gt;Netgroups are limited to 1024 characters in size.&lt;BR /&gt;&lt;BR /&gt;If you need to put together a longer netgroup, you can do so by making a meta-group:&lt;BR /&gt;&lt;BR /&gt;meta-group netgroup1 netgroup2 netgroup1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:31:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/96445#M19662</guid>
      <dc:creator>hariprak</dc:creator>
      <dc:date>2014-11-11T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: question about Netgroups file...</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/112247#M23799</link>
      <description>&lt;P&gt;This thread is kind of old and marked as resolved, but this may help someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something to try... (tested on 8.2.3p3 7-mode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the ip addresses to your /etc/hosts file&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;# My Group 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XX.XX.XX.101 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HostGroup1&lt;/P&gt;&lt;P&gt;XX.XX.XX.105 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HostGroup1&lt;/P&gt;&lt;P&gt;XX.XX.XX.45 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HostGroup1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use "HostGroup1" as the host in your NFS permissions, or your netgroup definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a nfs host attaches, a reverse lookup via the order defined in nsswitch.conf is done. &amp;nbsp;it will find the ip in the hosts file, and respond with the "HostGroup1" host name that matches your permissions directly or by netgroup it is listed in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 18:47:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/question-about-Netgroups-file/m-p/112247#M23799</guid>
      <dc:creator>randys</dc:creator>
      <dc:date>2015-11-05T18:47:09Z</dc:date>
    </item>
  </channel>
</rss>

