Link to home
Start Free TrialLog in
Avatar of eugeneca
eugeneca

asked on

Login as oracle problem

Prepare for installation of Oracle 11g R2 on SUSE Linux Enterprise Server 11 R2.   First created the user: oracle and its password.  Now create a new session, and login as oracle, the error message states:

xsession: login for oracle is disabled.

What was wrong here?



Thanks to help
Avatar of David VanZandt
David VanZandt
Flag of United States of America image

xsession is related to the x-server, so it sounds like this isn't an Oracle question yet.  Try connecting a terminal session directly on the database server as root, and then sudo to oracle.  Oracle should be an O/S account, and described in full detail in the Oracle RDBMS installation notes.
If it has to login with /bin/bash, make sure that it (/bin/bash) is present in /etc/shells

vi /etc/shells

/bin/bash
....

Make sure that password is not locked in anyway and user oracle has a shell.  Examine /etc/passwd and /etc/shadow files.
Avatar of eugeneca
eugeneca

ASKER

The Whole Story:

I am preparing for installation of Oracle 11g R2 on SUSE Linux Enterprise Server 11 R2. First I logged in as root, then created a user named oracle (with its password). Next I tried to switch to user oracle:

#su - oracle

Supposedly I am now oracle user. But when I check the current user for the session, it is still the root, not oracle.

I tested:

echo $USER
or
last | grep $USER
or
env | grep -i user

They all returned: root

Why so?


Now start a new session, and login as oracle, the error message states:

xsession: login for oracle is disabled.
SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
#vi /etc/shells
RETURNED: /bin/bash

#su - oracle
RETURNED: blank line (no error message)

#whoami
RETURNED: root

#grep  oracle /etc/passwd
RETURNED:  oracle:x:104:107:Oracle user:/opt/oracle:/bin/false

#grep  oracle /etc/shadow
RETURNED:  oracle:$2y$10$7POSd1HGFeu0Yy5GwJx6EegVlwkSmeTNIS2bYdRChxL.pz84jTYDC:15520:0:99999:7:::

#grep  oracle /etc/shells
RETURNED:  
/bin/bash
/bin/bash1
/usr/bin/bash


Looks like the /bin/false blocked the access.
How did you create the account, to have it got /bin/false as shell ?
# /usr/bin/useradd  -u 502 -g pinstall -G dba  oracle
#passwd oracle
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial