WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to modify open files in tc  (Read 1776 times)

Offline zbs888

  • Newbie
  • *
  • Posts: 42
How to modify open files in tc
« on: March 14, 2021, 08:33:54 PM »
I installed linuxpam.tcz file,and i modified /usr/local/etc/security/limits.conf file
Code: [Select]
* soft nofile 1048576
* hard nofile 1048576
* soft nproc 655350
* hard nproc 655350

And i reboot system , ulimit -a
Code: [Select]

open files                      n 1024


How to take effect?
« Last Edit: March 14, 2021, 08:39:29 PM by zbs888 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11632
Re: How to modify open files in tc
« Reply #1 on: March 14, 2021, 08:42:48 PM »
Hi zbs888
Did you back up the  /usr/local/etc/security/limits.conf  file?

Offline zbs888

  • Newbie
  • *
  • Posts: 42
Re: How to modify open files in tc
« Reply #2 on: March 14, 2021, 09:05:13 PM »
Dear sir
I added above statements in /usr/local/etc/security/limits.conf  , but I didn't know how to make it work

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11632
Re: How to modify open files in tc
« Reply #3 on: March 14, 2021, 09:28:02 PM »
Hi zbs888
I really don't know anything about using PAM, but maybe something here is of use:
http://forum.tinycorelinux.net/index.php/topic,24284.msg153676.html#msg153676