chsh 设置用户禁止登陆

chsh username -s /sbin/nologin   ##禁止登陆

chsh username -s /bin/bash   ##允许登陆
posted @ 2018-09-30 14:12  Lyle_Dong  阅读(466)  评论(0编辑  收藏  举报