Page 1 of 1

how to set open file limit for non admin user

Posted: 2020/10/25 03:53:18
by knzzz
Hi Team,

am using centos 7 in which /etc/security/limit.d/20.dconf

in which i made the entry for non admin user

nonadminuser nproc 28000

logout outt the session of the user then logged back in as nonadminuser then i gave the command
ulimit -n

10480

and also let me know how to set the open files limit and soft limit for non admin user kindly assist

Re: how to set open file limit for non admin user

Posted: 2020/10/25 18:39:16
by aks
Set the systemd property to match you limit.
limits.d kind wroks, but it is "advisory"
Where as systemd is "hard core" - that's the story and only the story.
(It's something like LimitNOFILE= ... just Google).