Linux chsh 命令用于更改使用者 shell 设定
使用
$ chsh -h
Usage: chsh [options] [LOGIN]
Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account
chsh <user> -s /sbin/nologin
chsh <user> -s /bin/bash