What if an ordinary user of the centos system cannot log in?
What if an ordinary user of the centos system cannot log in? I believe that many novice rookies can do nothing about this. Through the summary of this article, I hope you can find a solution.
There is a prompt for ordinary CENTOS7.5 users to log in-bash: ulimit: open files: cannot modify limit: Operation not permitted
Generally speaking, we all modify the file / etc/security/limits.conf, and my configuration in the file is as follows
Soft nproc 65535hard nproc 65535soft nofile 65535hard nofile 65535
The results found by the command ulimit-an are as follows, which are not consistent with the configuration.
Open files (- n) 400000
Thinking that the configuration is invalid and many modifications cannot be solved, I suddenly think of another way to modify openfile to modify / etc/profile. Sure enough, I see the following content in the last line, just comment it, and the problem is solved.
Ulimit-n 400000 or more is the solution that ordinary users of centos system can not log in, and you have to use it before you know the main points. If you want to read more related articles, you are welcome to follow the industry information channel!