Home  >  Q&A  >  body text

linux - /sbin/nologin是什么意思?

PHP中文网PHP中文网2743 days ago944

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 13:01:38

    Taking your example, I don’t need a mail account, so what account should I use? Use root?

    If there is a security vulnerability in the mail service, wouldn’t it be possible for an attacker to gain root privileges?

    reply
    0
  • 阿神

    阿神2017-04-17 13:01:38

    If a user's default shell is set to /sbin/nologin, this user is prohibited from logging into the system
    For example, you can set the user default shell of applications such as nginx mysql php-fpm to /sbin/nologin
    Improve security

    reply
    0
  • Cancelreply