Operating System - Linux
1827769 Members
2771 Online
109969 Solutions
New Discussion

Re: Problem with setting up Oracle Account on RHEL 5.3

 
Alzhy
Honored Contributor

Problem with setting up Oracle Account on RHEL 5.3

I added oracle account, oinstall and dba group. Set password but I can't login (ssh) to the account. It just would not log on:

ssh -l oracle linux1
oracle@linux1's passwd:
Connection to linux1 closed.

Also as root:

[root@linux1 ~]# su - oracle
could not open session

Other accounts however are fine.

[root@linux1 ~]# id oracle
uid=509(oracle) gid=509(oinstall) groups=509(oinstall),510(dba) context=root:system_r:unconfined_t:SystemLow-SystemHigh

/etc/passwd:
oracle:x:509:509::/users/oracle:/bin/bash

HomeDir:
[root@linux1 ~]# ls -ld /users/oracle
drwx------ 3 oracle oinstall 4096 May 29 14:53 /users/oracle

UNAME:
Linux linux1 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

(Oracle Enterprise linux)

Anything I need to check.?


Any help will be appreciated.

Thanks.

Hakuna Matata.
10 REPLIES 10
iinfi1
Super Advisor

Re: Problem with setting up Oracle Account on RHEL 5.3

hi there
i m a novice. but still want to try this.
if this is a test system you are working on,
can you remove the groups oinstall, dba and the user oracle and start over with adding the two groups and oracle user and then try again?

there seems to be some problem here
[root@linux1 ~]# id oracle
uid=509(oracle) gid=509(oinstall) groups=509(oinstall),510(dba) context=root:system_r:unconfined_t:SystemLow-SystemHigh
can a uid and gid of a use be the same even though it is mapped to another group? i m not sure
Ivan_68
New Member

Re: Problem with setting up Oracle Account on RHEL 5.3

Maybe somebody was playing with PAM login/su/system-auth configuration.

Check for messages in /var/log/messages and /var/log/secure.

Modules to check:

pam_limits
pam_listfile
Asif Sharif
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

Hi Z1ncwiskr,

I think the problem is that the permissions on the /etc/passwd file are not set correctly.

If you experience this problem and you do a check on the file you will most likely see something similar as in this example:

[root@linux1 ~]# ls -rtl /etc/passwd
passwd -rw------- 1 root root 1871 May 31 16:35 passwd
[root@linux1 ~]#


The correct permission on the file should be:
-rw-r--r-- 1 root root 1871 May 31 16:35 passwd

To correct this you should invoke the chmod command to change the permissions on the file.
[root@linux1 ~]## chmod 644 passwd

This will solve the problem and will enable you to su to an other user.

Regards,
Asif Sharif
Regards,
Asif Sharif
Alzhy
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

No dice. The permission is correct.

I was following essentially the Oracle Installation instructions to the letter.

All other accounts I set up work fine -- as long as the login name is not oracle.

I am testing Oracle Enterprise Linux. So we do not have a subscription yet to ULN.

Could this be it? That Oracle Linux can't be installed with Oracle software IF one has no ULN (Unbreakable Linux Network) support subscription?

Hakuna Matata.
iinfi1
Super Advisor

Re: Problem with setting up Oracle Account on RHEL 5.3

Alzhy
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

Any specific thread? Still looking though.
Hakuna Matata.
Ivan Ferreira
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

I think that is a pam issue, I had these kind of problems with some miss steps in limits configuration. Have you verified that?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alzhy
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

Ivan,
Thanks.
I followed the attached:

http://download.oracle.com/docs/html/B14402_01/qig_master.htm#sthref6

And from said docu:

To increase the shell limits:

Add the following lines to /etc/security/limits.conf file:

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

Add the following line to the /etc/pam.d/login file, if it does not already exist:

session required /lib/security/pam_limits.so


You think this is what's causing my issue sir?

Many thanks.
Hakuna Matata.
Ivan Ferreira
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

Sometimes, the library is located in another directory, or is missing. I think that your path is correct. But try commenting that line, or change it to this:

session required pam_limits.so
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Alzhy
Honored Contributor

Re: Problem with setting up Oracle Account on RHEL 5.3

I simply reinstalled OEL, problem solved.

Still scrtaching myhead though.
Hakuna Matata.