Today we met a problem about user cannot su to a general dev account with the error message below: su: failed to execute /bin/bash: Resource ...
由此报错,可以看到是由于进程过多,资源限制住了,主要检查如下文件: 环境centos . root rac cat etc security limits.conf orgrid soft nproc orgrid hard nproc orgrid soft nofile orgrid hard nofile orgrid soft core unlimitedorgrid hard core ...
2021-07-01 10:13 0 302 推荐指数:
Today we met a problem about user cannot su to a general dev account with the error message below: su: failed to execute /bin/bash: Resource ...
如下,提示资源不足 解决如下 [root@namenode01 backup]# egrep -v "^$|^#" /etc/security/limits.d/20-nproc.conf * soft nproc 65535 #将默认值1024改为65535 ...
在测试环境发现切换至hive用户是报错:failed to execute /bin/bash: Resource temporarily unavailable 执行lsof | grep hive 命令,发现进程3298打开文件数很多 ps -ef ...
解决办法: 其实就是普通用户的家目录缺少配置文件导致: #-->具体学习方法可以参考老男孩linux视频28期第228个视频第4分钟开始讲的。 ...
创建用户: useradd testuser echo "mypasswd" | passwd --stdin testuser 编辑文件 /etc/sudoers 或者使用 visudo 命令 (建议使用这种方法) 添加如下一 ...
在终端上输入指令sudo passwd root 此时输入你的密码 重复再次输入你的密码 再次用su指令切换用户就可以了 ...
su是在用户间切换,可以是从普通用户切换到root用户, test@ubuntu:~$ su Password: root@ubuntu:/home/test# 也可以是从root用户切换到普通用户。如果当前是root用户,那么切换成普通用户test用以下命令:su - test ...
无法通过su命令登录到普通用户 主要原因:系统进程太多,socket不够用(默认为1024) 解决方法:把soft的修改为4096 再重新登录即可 ...