chapter1 Accessing the command line using the local console

一、命令shell

usermod -L username 禁用用户 ide

usermod -U username 开启用户it

禁用用户后, 用户链接时输入正确的密码也提示出错。 主要在/etc/shadow加入!屏蔽用户class

也能够直接修改/etc/password后的shell为/sbin/nologin,输入正确的密码后自动退出。密码

相关文章
相关标签/搜索