建立新用户后没法切换 su: failed to execute /bin/bash: Permission denied

建立新用户后没法切换 su: failed to execute /bin/bash: Permission denied

 

当使用 su username 从root切换用户时显示html

su: failed to execute /bin/bash: Permission denied

(也有人显示的是su: /bin/bash: Permission denied)bash

 

此时使用
chmod 755 /.net

code

chmod 755 /binhtm

再次尝试切换便可(注:赋权通常使用root用户)blog

 

其中具体原因可见https://blog.csdn.net/z50L2O08e2u4afToR9A/article/details/82504829get

 

相关阅读:http://www.javashuo.com/article/p-wxlmecgj-bs.htmlio