1.禁止用户登陆 后缀名为 /sbin/nologin 。
2.允许用户登陆 后缀名为 /bin/bash.
linux 用户登陆权限设定
原文:https://www.cnblogs.com/zengqinhai/p/9699450.html