Operating System - HP-UX
1833914 Members
2197 Online
110063 Solutions
New Discussion

proper syntax for /etc/netgroup file

 
SOLVED
Go to solution
Edwin R. Rivera
Occasional Contributor

proper syntax for /etc/netgroup file

hey all,

thanks to jfr for all his help so far. he's another NIS newbie question:

my box won't boot b/c of improper syntax in my /etc/netgroup file. i only have one entry, and i can't figure out what i'm doing wrong.

here's what i have:

mygroup (sun1,,mydomain) (sun2,,mydomain) (hp1,,mydomain) (hp2,,mydomain) (dec1,,mydomain)

i have it all on one line. in my terminal it does wrap at the last triple. do i need a \ ?
do i need commas in between the triples?

help... thanks!!
1 REPLY 1
Shannon Petry
Honored Contributor
Solution

Re: proper syntax for /etc/netgroup file

It looks okay to me so far, however there are many concerns. Namely how name resolution occurs. The syntax is as you have it.
netgroup (host, user, domain) (h, u, d)
If the line goes past your screen, I would recommend turning on wrapp! I have used backslashes to continue lines too but have not in a while because of NIS complaining.

Depending on what is going on and what you are using netgroups for remember that auth(name resolution) works differently. It is best to create two entries if your using DNS for each host. I.E.
grp1net (host1, , domain) (host2, , domain)
grp2nonet (host1, , ) (host2, , )
This covers you especially for NFS authorization when mounts are requested

Regards,
Shannon
Microsoft. When do you want a virus today?