Linux su 切換到某使用者時報錯: could not open session

tolywang發表於2015-09-18
root@hostname # su - oracle
could not open session

root@hostname # grep oracle.*nofile /etc/security/limits.conf
oracle          -       nofile          unlimited 

set nofile in limits.conf to some number instead of unlimited:

root@hostname # vi /etc/security/limits.conf
root@hostname # grep oracle.*nofile /etc/security/limits.conf
oracle          -       nofile          65536
root@hostname # su - oracle
-bash-4.1$ id
uid=201(oracle) gid=5504(oinstall) groups=5504(oinstall),251(dba),5502(asmdba),5505(oper)
-bash-4.1$

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1802882/,如需轉載,請註明出處,否則將追究法律責任。

相關文章