LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to modify PAM.d conf. files (https://www.linuxquestions.org/questions/linux-general-1/how-to-modify-pam-d-conf-files-21388/)

sunnycn 05-20-2002 10:47 AM

How to modify PAM.d conf. files
 
help me , i am a newbie....
i forgot root password ,then i go into sigle user mode and want to change a new password using passwd command,but fail ...now i only login system through linux single mode, can you help me?

run redhat 6.2(Zoot) ,kernel 2.2.14-5.0 on an i586.

apsswd error information: use not known to the underlying
authentication module

lilo boot: linux single

login conf. file:
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_pwdb.so shadow nullok
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
passwd required /lib/security/pam_cracklib.so
passwd required /lib/security/pam_pwdb.so nullok
use_authok md5 shadow
session required /lib/security/pam_pwdb.so
session optional /lib/security/pam_console.so

passwd conf. file:
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
passwd required /lib/security/pam_cracklib.so
passwd required /lib/security/pam_pwdb.so use_authok nullok
md5 shadow

HOW TO RECOVERY original Login ? How to modify conf. files?
give me detail..


Thanks in advance

sunny


All times are GMT -5. The time now is 02:45 AM.