1752812 Members
5855 Online
108789 Solutions
New Discussion юеВ

Re: Login issue

 
SOLVED
Go to solution
bchinnat
Frequent Advisor

Re: Login issue

I am getting both file
[root@junldb02 log]# rpm -qla pam | grep pam_limits.so
/lib64/security/pam_limits.so
/lib/security/pam_limits.so
FLQ
Valued Contributor

Re: Login issue

Hi Bala,

can you post your pam config?

bchinnat
Frequent Advisor

Re: Login issue

Now I am able to login, Below changes I had done. I remove the below two entires from the file /etc/pam.d/login.

session required /lib/security/$ISA/pam_limits.so

session required /lib/security/pam_limits.so

Please can any one explain me what is the purpose of above two lines in this login file.
Huc_1
Honored Contributor

Re: Login issue

A little l long to explain best is to read

http://www.faqs.org/docs/securing/chap5sec44.html

have a read man limits.conf

and look in your file /etc/security/limits.conf
to see if some tailoring has been added/modified (maybe its commented by editor ? ... good practice that !)

also a sometime revealing.

# ls -l /etc/security/limits.con*
and a
# stat /etc/security/limits.con*

Hope the above gets you rolling.

enjoy life.

Jean-Pierre Huc
Smile I will feel the difference
FLQ
Valued Contributor

Re: Login issue

Hi Bala,

Here is the link the should help you understand the purpose of pam_limits

http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_limits.html

Here, another link for pam config

http://aplawrence.com/Basics/understandingpam.html

The variable $ISA is there to take care of the architecture type of your machine. 32-bit or 64-bit

Link: http://www.enterprisenetworkingplanet.com/netsecur/article.php/3514511

Check if you have the file

/lib64/security/pam_limits.so

and change/add the line in your pam config file.

Try to login afterwards.
bchinnat
Frequent Advisor

Re: Login issue

Thanks to every one for your time on this request..