跳至內容

"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 年前檢視次數 166 次

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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。