chsh修改用户的Shell

chsh修改用户的Shell
[test@localhost etc]$ chsh --help
Usage:
 chsh [options] [username]
Options:
 -s, --shell <shell>  specify login shell
 -l, --list-shells    print list of shells and exit
 -u, --help     display this help and exit
 -v, --version  output version information and exit
 
 -l  列出系统支持的所有Shell
[test@localhost etc]$ chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/tcsh
/bin/csh
[test@localhost etc]$
修改用户Shell
[test@localhost etc]$ chsh
Changing shell for test.
New shell [/bin/bash]: /bin/bash
chsh: Shell not changed.
[test@localhost etc]$

你可能感兴趣的:(shell)