创建不可登录本地系统的用户

创建

useradd -s /sbin/nologin team1
passwd team1

file

验证是否可登录

su team1

file