How To Troubleshot Login Problems Caused by .bashrc
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Goal
If the configuration of .bashrc cause it to exit, that can cause problems like preventing login.
[client]$ ssh oracle@server Last login: Thu Aug 17 13:07:48 2023 from <CLIENT IP ADDRESS> Connection to server closed. [client]$
Or using a different user:
[opc@server]$ sudo -i -u oracle [opc@server]$
Solution
If the problem is with the unique user that have access to server, it have to be booted using single user mode and recover. Check https://community.oracle.com/customerconnect/discussion/652235/how-to-boot-into-single-user-mode-on-oracle-linux-6
If an alternate user can be used to access the instance, then check the system with:
Tagged:
2