创建新用户后无法切换 su: failed to execute /bin/bash: Permission denied
创建新用户后无法切换 su: failed to execute /bin/bash: Permission denied
当使用 su username 从root切换用户时显示
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。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

更多精彩