My Oracle Support Banner

How To Access a Linux System If BASH Is Not Available (Doc ID 2734795.1)

Last updated on DECEMBER 11, 2020

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64


How to access a Linux system if the /bin/bash is not available?

/bin/bash may became unavailable for unexpected reasons, like a failed upgrade or by being manually deleted. Other causes can result in the bash or sh process being killed as soon as the process is created as a result of a script or hack.


# su - opc
Last login: Fri Dec 11 13:26:01 GMT 2020 from <HOST> on pts/0
su: failed to execute /bin/bash: No such file or directory
# su - opc
Last login: Fri Dec 11 13:26:48 GMT 2020 on pts/0
-bash: error while loading shared libraries: cannot open shared object file: No such file or directory
$ sudo su - oracle 
Last login: Thu Dec  3 18:15:49 UTC 2020 on pts/1 



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.