WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline zbs888

  • Newbie
  • *
  • Posts: 39
How to modify open files in tc
« on: March 14, 2021, 05: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, 05:39:29 PM by zbs888 »

Offline Rich

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

Offline zbs888

  • Newbie
  • *
  • Posts: 39
Re: How to modify open files in tc
« Reply #2 on: March 14, 2021, 06: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: 11227
Re: How to modify open files in tc
« Reply #3 on: March 14, 2021, 06: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