Depending on your system you might also have to edit /etc/pam.d/common-session*
and add
session required pam_limits.so
And of course you have to start a new session for your changes to apply.
Я пытаюсь обеспечить поддержку дампа ядра для моей цели на основе ARM. Я читал об обоих /etc/limits
и /etc/security/limits.conf
. В моей целевой файловой системе нет последней. Поэтому я сделал ниже изменения в/etc/limits
root C100000
После добавления этой строки /etc/limits
ожидал генерации файла ядра, но ulimit -a
показывает мне
core file size (blocks, -c) 0
Почему эти изменения /etc/limits
не отражаются вообще.
И что мне теперь делать?
Нужно ли добавлять /etc/security/limits.conf
в мою файловую систему?
Я не смотрю на вариант использования setrlimit()
.
Depending on your system you might also have to edit /etc/pam.d/common-session*
and add
session required pam_limits.so
And of course you have to start a new session for your changes to apply.
For creating core dump add following command to /etc/profile
ulimit -c 10000
This command set the size limit of core files to 10000 bytes (You can change it to unlimited). Then execute /etc/profile/
again with source /etc/profile
or . /etc/profile