how to set open file limit for non admin user

Issues related to applications and software problems
Post Reply
knzzz
Posts: 156
Joined: 2017/02/25 12:41:42

how to set open file limit for non admin user

Post by knzzz » 2020/10/25 03:53:18

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

aks
Posts: 3045
Joined: 2014/09/20 11:22:14

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

Post by aks » 2020/10/25 18:39:16

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).

Post Reply

Return to “CentOS 7 - Software Support”