建立新用戶後沒法切換 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

相關文章
相關標籤/搜索