1.禁止用户登陆 后缀名为 /sbin/nologin 。 2.允许用户登陆 后缀名为 /bin/bash. 转载于:https://www.cnblogs.com/zengqinhai/p/9699450.html