Faild to su - for a specific user account

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux

Issue

  • There are two user account - oracle and orainfra
[root@localhost ~]# finger oracle
Login: oracle                           Name: Oracle Binaries owner
Directory: /home/oracle            Shell: /usr/bin/ksh
...

[root@localhost ~]# finger orainfra
Login: orainfra                         Name: OID Binaries owner
Directory: /home/orainfra          Shell: /usr/bin/ksh
  • orainfra has no issue in log in, but oracle can't log in
[root@localhost ~]# su – oracle
[root@localhost ~]#

[root@testdb02 ~]# su – orainfra
orainfra:/home/orainfra$

Resolution

  • Please check if there's any syntax error in /home/oracle/.profile
  • You can try the login after moving .profile to other name
  • In the case of bash, it's /home/oracle/.bashrc and /home/oracle/.bash_profile
  • Component
  • ksh

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments