Linux
chsh命令用于更改使用者shell设定
使用
- help
$ 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- 设置用户使用bash
chsh <user> -s /bin/bash