Solve the "module is unknown" error of the passwd command.
/*************************************** ***************************
* This article is first published in bbs.bluegem.org linux
* My email: chenfei@sohu.com
* If this article is reprinted, please keep your contact information with me for convenience. Thank you!
**************************************** **************************/
Background:
Or the Minilinux project. I use rh9 as the blueprint, add something from the beginning, and finally achieve 2
1 m. However, when the passwd command is executed, the system reports the "module is unknown" error.
All dynamic libraries related to passwd are recognized, but the same error is reported.
Solution Process:
I first use # ldd/usr/bin/passwd to find all the dynamic libraries related to the passwd command, and cp to the relevant system
Directory. There is still a problem. I think it may be related to ldconfig. I checked the configuration file/et of ldconfig.
C/ldconfig. conf, only related configurations such as kerbro.
On google, the foreigner said it was related to pam and there was a problem with ldopen. But no one gives the exact answer.
Later, I asked a friend about Pam, but he was sure that it was related to Pam. He recommended me to use strace
After tracking, I will use # strace-o passwd. log passwd to save the running result to passwd. log and
Compare the passwd running results in a common system and find the missing Library/usr/lib/libcrack. so.3.
, Or not. In the same way, we found that/usr/lib/crack_dict * is missing *.
So far, passwd can run normally.
The Organization cannot access BBs. It is written by hoho.
What is important is not how to solve the problem, but how to solve the problem.