Operating System - HP-UX
1832645 Members
2450 Online
110043 Solutions
New Discussion

Difficulty changing NIS passwd.

 
Mahima Kaushik_2
Frequent Advisor

Difficulty changing NIS passwd.

Few users are having difficulty changing their NIS passwd. After password reset user can log in with temporary passwd but once user tries to change his password using passwd command it gives him the G??segmentation fault errorG??. I do not see any /etc/ptmp file or any other lock file out there. I canG??t even use G??yppasswd useridG?? on NIS server. It comes up with G??user not found in passwd fileG?? which is not true since "ypcat passwd|grep userid" returns an entry for userid. It only happens for few users (4 out 50 users). Need Help.
Aim high!
9 REPLIES 9
S.K. Chan
Honored Contributor

Re: Difficulty changing NIS passwd.

On the NIS master, check your master password file and group file to make sure there is no inconsistencies/error.
# pwck
# grpck
Does this happens regardless of which NIS clients you're on ?
Mahima Kaushik_2
Frequent Advisor

Re: Difficulty changing NIS passwd.

I think pwck and grpck only work on local machine not on NIS system. Our system is nisd. Also it is happening on all clients.

Thanks!
Aim high!
S.K. Chan
Honored Contributor

Re: Difficulty changing NIS passwd.

You can still run it on your master password file on your NIS master. I know .. it'll report "login directory not found" possibly on all the entries but that is not what we're looking for. There may be so other error (for example, an extra "unknown" field, a hidden character at the end of an entry), all these can be detected by pwck. It's still worth to just run it one pass just to make sure it's ok.
Robert-Jan Goossens
Honored Contributor

Re: Difficulty changing NIS passwd.

Hi,

Question. Are those (5) users on a different vlan ? If so is there a NIS slave server in that vlan ?

RJ
Mahima Kaushik_2
Frequent Advisor

Re: Difficulty changing NIS passwd.

Users are in same vlan.
Aim high!
Robert-Jan Goossens
Honored Contributor

Re: Difficulty changing NIS passwd.

Hi,

What about using ypbind -l to log any errors to an errorlog.

Look at man ypbibd.

Regards

Robert-Jan.
Mahima Kaushik_2
Frequent Advisor

Re: Difficulty changing NIS passwd.

Tried ypbind -l logfile
It does not report any error message to the logfile.
Aim high!
Govind
Frequent Advisor

Re: Difficulty changing NIS passwd.

I had a similar issue sometime back when passwd doesnt work well in a NIS environment I always ask users to use "yppasswd username". Hope this works!!!
Govind
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....
Govind
Frequent Advisor

Re: Difficulty changing NIS passwd.

The other thing I noticed is if the users home directories are automounted from several different workstations(which typically is the case) pwck and grpck would give you lots of errors related to the homedirectories if they are not all mounted on the NIS-MASTER.
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....