RHEL ユーザーアカウントを完全に無効にする方法
Issue
- アカウントへのすべてのリモートアクセスを無効にするにはどうしたら良いですか? "
passwd -l" (そして同じトークンによる "usermod -L") は、SSH パブリックキー (または、有効にできる pam_unix 以外の PAM モジュール) による認証を無効にしないため、十分ではありません。
また、シェルを/bin/falseまたは/sbin/nologinに変更することは、インタラクティブなログインにのみ影響するため、この方法もまた十分ではありません。
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
