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,輸入正確的密碼後自動退出。密碼

相關文章
相關標籤/搜索