Operating System - HP-UX
1835947 Members
3709 Online
110088 Solutions
New Discussion

pwgrd: Invalid entry found in group file /etc/group

 
Lance Reichenberger
Occasional Advisor

pwgrd: Invalid entry found in group file /etc/group

What could be causing this entry in the syslog.log.
13 REPLIES 13
RAC_1
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

pwck, grpck.
logins -d

Does it retur any erros??
There is no substitute to HARDWORK
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

Yes the grpck:
Multiples of these just dif groups:
Acctg::108:bob,sandy,judyk,james,paulj,williams,michael
williams - Logname not found in password file
michael - Logname not found in password file
blank line
Sundar_7
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

Looks like the users that are member of that group are not valid users

edit /etc/group and remove the login names that are no longer valid.
Learn What to do ,How to do and more importantly When to do ?
Sunil Sharma_1
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

There are some users in group file who does not exist in system.

remove them from /etc/group file.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

thanks all that worked for the groups. But what about this message as well from the syslog:

syslog: libc: bad lookup policy for hosts in /etc/nsswitch.
Sundar_7
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

Post the output of the following command

# grep "^host" /etc/nsswitch.conf

Learn What to do ,How to do and more importantly When to do ?
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

I changed it the dns and see no more errors:
Here is the output:

# grep "^host" /etc/nsswitch.conf
hosts: dns
#

However this inof is now in the syslog:

telnetd[4197]: gethostbyaddr: wendy_herbstman.superbainc.pr
iv. != 192.1.1.230

Is the above because I am now resolving correctly???
Sundar_7
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

telnetd[4197]: gethostbyaddr: wendy_herbstman.superbainc.pr
iv. != 192.1.1.230

You should not get the above error message. Make sure you have the correct DNS servers listed in the /etc/resolv.conf file.

When there is a new connection to your system, system does a gethostbyname & gethostbyaddr and expects that the result matches.

If it doesnt, then you get the above message. This effectively means the forward and reverse look up of the host name is not in wack.
Learn What to do ,How to do and more importantly When to do ?
RAC_1
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

Can you resolv host "wendy_herbstman.superbainc.priv." from dns server?? (the one defined in /etc/resolv.conf)

nsquery hosts "wendy_herbstman.superbainc.pr
iv." dns

Does it return OK?? Does "wendy_herbstman.superbainc.priv." has entry in /etc/hosts?? If yes, modify your nsswitch.conf file as follows. (hosts directive)
hosts : files [NOTFOUND-continue] dns

Anil

There is no substitute to HARDWORK
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

there is no entry in etc/host. I cleaned up the DNS servers as they had 2 diff IPs for that entry.
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

with the Hosts : dns it kills my printer queue. However if I put the files [notfound-continue]dns, i get the following errors in syslog. back to where i was when i started:
Feb 24 13:53:38 RP74 syslog: libc: bad lookup policy for hosts in /etc/nsswitch.
conf, using defaults..
RAC_1
Honored Contributor

Re: pwgrd: Invalid entry found in group file /etc/group

It is [NOTFOUND=continue] and not [NOTFOUND-continue]

typo from me.
There is no substitute to HARDWORK
Lance Reichenberger
Occasional Advisor

Re: pwgrd: Invalid entry found in group file /etc/group

is this how it is supposed to read? With spaces between files and [ and ] and dns???

hosts: files [NOTFOUND=continue] dns