Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo: not found\n exit status 127" #865

Open
zengxiaoliang opened this issue Mar 14, 2023 · 0 comments
Open

sudo: not found\n exit status 127" #865

zengxiaoliang opened this issue Mar 14, 2023 · 0 comments
Assignees
Labels
type/enhancement New feature or request

Comments

@zengxiaoliang
Copy link

异常日志:

"response": {
"code": 54000,
"error": "unexpected status, expected status: create, but the real status: Error, please wait!",
"result": {
"error": "/bin/sh -c sudo -u test /usr/lib/jdk1.8.0_231/bin/java -Xms128M -Xmx128M -Xnoclassgc -ea -Xbootclasspath/a:/usr/lib/jdk1.8.0_231/lib/tools.jar -jar /opt/chaosblade/lib/sandbox/lib/sandbox-core.jar 7 \"/opt/chaosblade/lib/sandbox/lib/sandbox-agent.jar\" \"home=/opt/chaosblade/lib/sandbox;token=348254078129;server.ip=127.0.0.1;server.port=37419;namespace=chaosblade\": cmd exec failed, err: /bin/sh: sudo: not found\n exit status 127",

原因:
在容器环境中,本身不具备sudo -u 切换用户,导致执行出现
sudo: not found

希望解决:

如何使用其他命令来替换sudo -u test ,实现 切换用户

@MandssS MandssS added the type/enhancement New feature or request label Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants