[Solved] Failed to execute/bin/bash: resource temporarily unavailable

[[email protected] config]# su – mform
Last login: Mon Apr 16 14:08:05 CST 2018 on pts/4
su: failed to execute /bin/bash: Resource temporarily unavailable
[[email protected] config]#
[[email protected] config]#
[[email protected] config]# egrep -v “$|#” /etc/security/limits.d/20-nproc.conf

     soft    nproc     4096

root soft nproc unlimited
[[email protected] config]# su – mform
Last login: Mon Apr 16 14:16:25 CST 2018 on pts/4
su: failed to execute /bin/bash: Resource temporarily unavailable
[[email protected] config]#
[[email protected] config]#
[[email protected] config]#
#change the default numble 4096 to 8192
[[email protected] config]# vim /etc/security/limits.d/20-nproc. conf
[[email protected] config]# egrep -v “$|#” /etc/security/limits.d/20-nproc.conf

     soft    nproc     8192

root soft nproc unlimited
[[email protected] config]# su – mform
Last login: Mon Apr 16 14:16:49 CST 2018 on pt s/4
[[email protected] ~]$ id
uid=1002(mform) gid=1003(mform) groups=1003(mform)


Read More: