我在mac终端输入:sudo -s 想要切换到root权限时出现了 bash-3.2# bash
解决方法:su -l yujianbinmac (yujianbinmac是我当前管理员名称)就能切换到以前的用户了终端