跳至内容

"Critical: passwd command missing in AWS CloudShell

0

passwd command is completely missing from the system. Here was the response when I tried the which passwd command.../usr/bin/which: no passwd in (/home/cloudshell-user/.local/bin:/home/cloudshell-user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/node_modules/aws-cdk/bin:/home/cloudshell-user/.local/bin) I have tried restarting the Cloud Shell environment, and the problem persists. I cannot create or manage users as a result

已提问 1 年前161 查看次数

1 回答
1
已接受的回答

Hello.

CloudShell is a service that provides a temporary shell environment in an AWS-managed environment.
CloudShell is typically managed using IAM users or IAM Identity Center (formerly SSO) rather than OS users.
If you want to manage who has access to your AWS account, you should control it using IAM.
https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html

Why are you trying to run the passwd command in CloudShell?
If you really need the passwd command, you can install it in CloudShell using the following command.

sudo dnf install passwd -y
专家

已回答 1 年前

AWS
专家

已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。