Solve the "module is unknown" error of the passwd command.

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.