-bash: ulimit: open files: cannot modify limit: Operation not permitted

报错:-bash: ulimit: open files: cannot modify limit: Operation not permitted

在免密登录的时候,出现-bash:ulimit错误,如下:

[laowang@cdh201 ~]$ ssh [email protected]
The authenticity of host 'cdh205.ultraman.org (10.22.5.105)' can't be established.
ECDSA key fingerprint is 16:1f:1d:89:9a:6b:5d:86:99:b3:50:d5:4e:d9:9a:f0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'cdh205.ultraman.org' (ECDSA) to the list of known hosts.
Last login: Mon Jul 16 10:48:49 2018 from 100.2.5.11
-bash: ulimit: open files: cannot modify limit: Operation not permitted

出现的这个问题是因为不能检测到正确的配置文件中的值。这个配置文件应该是/etc/security/limits.conf。查看里面的格式是否正确。

你可能感兴趣的:(Linux)