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

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

 

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

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

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

 

此时使用
chmod 755 /

chmod 755 /bin

再次尝试切换即可(注:赋权一般使用root用户)

 

其中具体缘由可见https://blog.csdn.net/z50L2O08e2u4afToR9A/article/details/82504829

 

相关阅读:https://www.cnblogs.com/G-Aurora/p/13100261.html

原文地址:https://www.cnblogs.com/G-Aurora/p/13100287.html