Answer the question
In order to leave comments, you need to log in
Debian PHP. How to make authorization for root in PAM?
Installed PAM. Authorization on the site works for everyone except root. I read that I need to change something in the configs /etc/pam.d/ Please tell me what needs to be changed? I can't find it at all.
Heh, just found a solution. In /etc/pam.d/php you need to comment out the line auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die]
Answer the question
In order to leave comments, you need to log in
Telepaths are on vacation, sorry :) PAM is a system of plug-in authentication modules designed to flexibly configure authentication, authorization and other things that have little to do with the site. As well as the root on the site, there is absolutely nothing to do. How is the task formed?
Ksyusha :
1. You are trying to shoot yourself in the leg very painfully. Almost always, if root rights are required somewhere, you can issue only the necessary part of them through sudo/acl/capabilities.
2. But, without shooting yourself in the foot, you won't gain experience, and indeed "because I can" is our main motto, therefore:
- check that root can log in with this password locally
- see what interesting things appear in /var/ log/auth.log
- remove everything else from /etc/pam.d/php. In theory, you can leave only pam_unix
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question