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]$
相关推荐
liguojia 2020-10-20
xiaonamylove 2020-10-16
woaimeinuo 2020-10-21
tianhuak 2020-11-24
huha 2020-10-16
lianshaohua 2020-09-23
laisean 2020-11-11
zhangjie 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
wangzhaotongalex 2020-10-20
以梦为马不负韶华 2020-10-20
CARBON 2020-10-20
彼岸随笔 2020-10-20
lianshaohua 2020-10-20
yutou0 2020-10-17
JohnYork 2020-10-16
Julyth 2020-10-16
applecarelte 2020-10-16