首页 > 技术文章 > chsh 设置用户禁止登陆

erdi 2018-09-30 14:12 原文

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

chsh username -s /bin/bash   ##允许登陆

推荐阅读