You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How To Troubleshot Login Problems Caused by .bashrc

in Linux 2 comments

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!