Sunday, October 9, 2022

[SOLVED] limits.conf not taking effect

Issue

I have been trying to open oracle db. It gives below error.

ORA-27515: inadequate memlock limit

So I put below lines in limits.conf.

*   soft   memlock    60397977
*   hard   memlock    60397977

However even after reboot, it doesn't take effect.

Both these files contains below line ./etc/pam.d/su and /etc/pam.d/sshd:

session    required     pam_limits.so

Solution

Figured out that UsePam was set 'no' in /etc/ssh/sshd_config file. I made it 'yes', rebooted the node and it worked.



Answered By - GH P
Answer Checked By - Mary Flores (WPSolving Volunteer)