PDA

View Full Version : How to enable core dump permanently



jjaison-daniel
August 22nd, 2013, 03:07 PM
gusr1@tbox102:~$ echo $USER
gusr1
gusr1@tbox102:~$ grep -e core -e item /etc/security/limits.conf
#<domain> <type> <item> <value>
#<item> can be one of the following:
# - core - limits the core file size (KB)
#<domain> <type> <item> <value>
gusr1 soft core unlimited
* soft core unlimited
gusr1 hard core unlimited
* hard core unlimited
#root hard core 100000
gusr1@tbox102:~$

Even though I set unlimited in /etc/security/limits.conf still the core dump size is zero.(checked after reboot also)
gusr1@tbox102:~$ ulimit -c
0

Any idea what else I have to check. In terminal if I "set ulimit -c unlimited" is working but after rebooting its gone.
I don't want set the core dump size in the any local profile, I wants to enable permanently in global way.

Also checked the following post, but not helpful to me
http://ubuntuforums.org/showthread.php?t=1494590

oldos2er
August 22nd, 2013, 07:10 PM
Moved to General Help.

jjaison-daniel
August 29th, 2013, 09:40 AM
Added line "session required pam_limits.so" in the common-session, saw this in some google search. but still ulimit -c is zero. And in /etc/pam.d/login already has this.

gusr1@tbox102:~$ tail --lines=2 /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive
==> /etc/pam.d/common-session <==
session required pam_limits.so


==> /etc/pam.d/common-session-noninteractive <==
session required pam_limits.so

gusr1@tbox102:~$ grep pam_limits /etc/pam.d/login
session required pam_limits.so

gusr1@tbox102:~$ ulimit -c
0