如何更改某用户的默认Shell?

Wikipedia,自由的百科全书

更改用户Shell

先创建一个用户test01

useradd -m -d /export/home/test01 test01

passwd test01

登录上去查看

echo $SHELL

确认用户logout并执行用户Shell的更改

usermod -s /bin/bash test01

确定是否更改

echo $SHELL

Personal tools