Thanks a lot, I applied that patch, but that did not seem to work. I get the same errors. Could this have something to do with pam?
Robert On Tue, 18 Mar 2003 10:43:58 -0600 Dan Nelson <[EMAIL PROTECTED]> wrote: > In the last episode (Mar 18), Robert Kellner said: > > I have a problem with passwords on FreeBSD 5.0: I am using NIS, but > > neither root, nor the users can change their nis passwords with > > yppasswd. Root is asked for the old password and when trying to set a > > new one it fails. If a user tries to change his password, this will > > not succeed either. > > > > here are some loggings: > > root tries to change a password: > > > > Changing NIS password for testuser > > Old Password: > > New Password: > > Retype New Password: > > yppasswd: pam_chauthtok(): error in service module > > > > from /var/log/messages: > > Mar 18 16:15:30 server yppasswd: in pam_sm_chauthtok(): yppasswd_local(): failed > > to connect to rpc.yppasswdd: server.mydomain.com: RPC: Program not registered > > I get this too; trying to change the password as a regular user from > the NIS server fails with the same error. I have no workaround for > this. > > > a user tries to change a password: > > > > Changing NIS account information for testuser on server.mydomain.com. > > Changing NIS password for testuser on server.mydomain.com. > > Please enter new password: > > Please retype new password: > > Error while changing the NIS password. > > The NIS password has not been changed on server.mydomain.com. > > > > and from /var/logmessages: > > Mar 18 16:17:24 btcips73x1 rpc.yppasswdd[2320]: pw_mkdb() failed > > Are you exporting /etc/master.passwd via NIS, or are you exporting > /var/yp/master.passwd? There are a couple bugs in rpc.yppasswdd when > you are not exporting /etc/master.passwd. Try the attached patch and > see if it helps. Make backups of /etc/master.passwd and > /var/yp/master.passwd just in case :) > > -- > Dan Nelson > [EMAIL PROTECTED] > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
