LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to set nofile (open files) for a normal user (https://www.linuxquestions.org/questions/linux-server-73/how-to-set-nofile-open-files-for-a-normal-user-684265/)

robertjinx 11-18-2008 03:28 AM

How to set nofile (open files) for a normal user
 
Hello, I have a weird issue, I have tried to setup "nofile" in /etc/security/limits.conf for a normal user from 1024 to 4096.

I have tried in different ways and still doesnt work:

user - nofile 4096
user hard nofile 4096
user soft nofile 4096

@user - nofile 4096
@user hard nofile 4096
@user soft nofile 4096

%user - nofile 4096
%user hard nofile 4096
%user soft nofile 4096


None of this settings work. I still have 1024 on that user. If i check like this there is 4096: su - user -c 'ulimit -a', everything seems ok, but if i login with that user and run ulimit -a, the open file settings is still at 1024.

Does anyone know whats the deal? Or the issue?


All times are GMT -5. The time now is 09:26 PM.