服务器 频道

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

更改用户Shell

先创建一个用户test01

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

passwd test01

登录上去查看

echo $SHELL

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

usermod -s /bin/bash test01

确定是否更改

echo $SHELL

 
0
相关文章