I was playing with docker and oraclelinux:7-slim
, to install an Oracle Database. After installing oracle-database-preinstall-19c package, I stopped being able to su -
into oracle account. Here some talk about "nofile unlimited" in limits.conf
. I tried that and it didn't work. Commenting session include system-auth
line in /etc/pam.d/su
works.
However, before I installed the package, the configuration was all the same and I was able to do su - oracle
. Even after installed the package, if I create a new user belonging to the same groups as oracle I can su
into their account. So it had to be something that the package changed.
After some investigation I discovered that the packages installs oracle-database-preinstall-19c.conf
in /etc/security/limits.d/
and that file has all the oracle limits configuration. Only when I commented the following line, was I able to su
into oracle account:
oracle hard memlock 134217728
This sets the memlock to 128Gb.Tried to put smaller values without success. Only when I commented.
So now you know that this is the cause. But of course, if you comment session include system-auth
line in /etc/pam.d/su
it works too.
getent passwd
and are you using LDAP, flat files, or something else? It really looks like UserA's shell is set to/sbin/nologin
/Users/userC
and/Users/UserA
a typo? Intentional? The problem?