how to fix Cannot Execute which bash : No such file or directory


hi guys, i wanna tell you something about linux. you maybe not strange if you in linux run as root. but if you meet the error which run su and show the log (example) ' Cannot Execute which bash : No such file or directory' what do you thing. ?

okey, here. i wanna give the solutions about these error, lets follow the step.
- first open your terminal
- use favorit text editor, i use vim for text editor here.
- then type,
$sudo vim /etc/passwd
- and look
root:x:0:0:root:/root:
- if root:x:0:0:root:/root:which bash . change into
root:x:0:0:root:/root:/bin/bash
- save  this file as same name do not change !
-  and try to run su and and type your password. tarraa..

this problem as same as with Cannot Execute bin/bash : No such file or directory. so, look and search with same error you do.
thanks i hope this can help you.. :D 

1 comment:

Search This Blog

Powered by Blogger.

About Us

Nama Blog

All About PC

Blog ini hanya membahas tentang pc, jika ada yang lain maka label atau tag nya saya taroh di lain-lain. mari belajar via internet :D

Earn Bitcoin with EZ click, no scam! TESTED BY ME

Advertisement

Formulir Kontak

Name

Email *

Message *