RHEL ユーザーアカウントを完全に無効にする方法

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.