• centos7系统root无法通过su切换到某个普通用户


     如下,提示资源不足

    [root@namenode01 backup]# su - app
    Last login: Tue Apr 26 09:48:44 CST 2016 from application03 on pts/0
    su: failed to execute /bin/bash: Resource temporarily unavailable

     解决如下

    [root@namenode01 backup]# egrep -v "^$|^#" /etc/security/limits.d/20-nproc.conf
    * soft nproc 65535 #将默认值1024改为65535
    root soft nproc unlimited
    

      

     验证结果

    [root@namenode01 backup]# su - app
    Last login: Tue Apr 26 10:38:20 CST 2016 on pts/0
    
    [app@namenode01 ~]$ id
    uid=1001(app) gid=1001(app) groups=1001(app) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
    

     

  • 相关阅读:
    【题解】B进制星球
    高斯消元
    7.16
    题解 P1572 【计算分数】
    7.30
    7.31
    项目中使用 MyBatis(一)
    从整体上了解Spring MVC
    Spring注解
    Spring IOC 和 DI
  • 原文地址:https://www.cnblogs.com/faithH/p/11810651.html
Copyright © 2020-2023  润新知