Friday, January 23, 2015

Why it was failed to run command ‘/bin/bash’ and was throwing error "No such file or directory" during configuring chrooted ftp?

Issue/Symptom  : Receiving following error while execute below command

$chroot /chroot
"Editing Chroot: failed to run command ‘/bin/bash’: No such file or directory

OS Environment : RHEL 5,6
Involved Software/Application : openssh, coreutils, rssh
Investigation : Found that /bin/bash is present inside /chroot directory.
Permanent Solution :

1. $ldd /chroot/bin/bash to see dependent libraries.
2. Copy missing libraries from /lib64 or /usr/lib64 to /chroot/lib64

Root Cause Analysis : Libraries of /bin/bash were missing or were 
partially present. 

No comments:

Post a Comment