私のCentOS 7システムで「su user」をrootとして使用してユーザーパスワードを要求するのはなぜですか? [閉鎖]

私のCentOS 7システムで「su user」をrootとして使用してユーザーパスワードを要求するのはなぜですか? [閉鎖]

私のCentOS 7ラップトップでは、rootからrootの使用rootに切り替えるときにパスワードを尋ねます。usersu useruser

-bash-4.2# su user
 Password: 

root他のアカウントから切り替えるときにパスワードを入力するように求められないでください。

Fedora 27とは異なるCentOS 7システムで同じことを試しました。パスワードを要求せずにsu user簡単にroot切り替えてください。useruser

私はリポジトリが提供するバージョンのみを使用しますsu

なぜこれが起こるのかを助けることができます。

修正する

内容/etc/pam.d/suは次のとおりです

#%PAM-1.0
auth            sufficient  pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient      pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth           required        pam_wheel.so use_uid
auth            substack        system-auth
auth            include         postlogin
account         sufficient  pam_succeed_if.so uid = 0 use_uid quiet
account         include         system-auth
password        include         system-auth
session         include         system-auth
session         include         postlogin
session         optional        pam_xauth.so

ベストアンサー1

この問題は定期更新を使用して解決されましたyum update。この問題の原因が何であるかを知っていれば、まだ非常に役立ちます。

おすすめ記事