Hi, freebsd-security. I have FreeBSD 5.3-STABLE. When I try to change user's password (via passwd) I recieve the following: passwd: entry inconsistent passwd: pam_chauthtok(): error in service module passwd: in pam_sm_chauthtok(): pw_copy() failed and password stays unchanged. There are no other errors in the authorization system at all. Contents of /etc/pam.d stayed unchanged (compared to /usr/src/pam.d) Permissions: /etc/group 644 root:wheel /etc/passwd 644 root:wheel /etc/master.passwd 600 root:wheel I have /usr/ports/security/pam_mysql installed, but this problem (as I remember) was here from the beginning, long before I installed pam_mysql. Because of need I created pam.conf with some opts. But if I remove it and reboot the problem persists. What could go wrong? -- Best regards, Tarasov Oleg mailto:subscriber@osk.com.ua
FreeBSD MailList <subscriber@osk.com.ua> writes:> When I try to change user's password (via passwd) I recieve the > following: > > passwd: entry inconsistent > passwd: pam_chauthtok(): error in service module > passwd: in pam_sm_chauthtok(): pw_copy() failedDo you by any chance have multiple entries for the same user in master.passwd? If you do, use vipw(8) to remove all but one, and try again. DES -- Dag-Erling Sm?rgrav - des@des.no
Hello, Jason L. Schwab <jlschwab@jlschwab.com> wrote:> Tarasov Oleg;> (as root) > # pwd_mkdb /etc/master.passwd> It seems that the actual database file is fine, but the plaintext > versions think that they are corrupt, this should solve your issue.> Then try changing the users password, it should be successful.> -JasonThanx, that was the problem. Actually I changed master.passwd by hands and forgot to use pwd_mkdb. My mistake, a lesson to me. Sorry for inconfidence. -- Best regards, Oleg Tarasov mailto:subscriber@osk.com.ua
On Fri, Mar 25, 2005 at 10:09:48AM +0200, Oleg Tarasov wrote:> Hello, > > Jason L. Schwab <jlschwab@jlschwab.com> wrote: > > > Tarasov Oleg; > > > > > (as root) > > # pwd_mkdb /etc/master.passwd > > > It seems that the actual database file is fine, but the plaintext > > versions think that they are corrupt, this should solve your issue. > > > Then try changing the users password, it should be successful. > > > -Jason > > Thanx, that was the problem. Actually I changed master.passwd by hands > and forgot to use pwd_mkdb. My mistake, a lesson to me. Sorry for > inconfidence.You CAN change master.passwd by hand, if you use vipw(8). vipw(8) will sync the two databases for you.> > > > -- > Best regards, > Oleg Tarasov mailto:subscriber@osk.com.ua > > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"-- Peter C. Lai University of Connecticut Dept. of Molecular and Cell Biology Yale University School of Medicine SenseLab | Research Assistant http://cowbert.2y.net/