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
最近更新
最新评论
加载中...