-
Notifications
You must be signed in to change notification settings - Fork 328
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
Allow RunAs with root user #318
Comments
Thank you for submitting this. We are investigating whether or not this is a viable option. |
The Session Manager logs in with a default user named ssm-user which has root/admin privilages. Can this user serve your use case/cases instead? |
@ferkhat-amz Thank you for getting back! In our specific case, we ended up going with custom Documents with a specific Although, as a quality of life thing, it would have been great to allow direct login as |
Thanks for your feedback, we have noted this request. |
Hello!
My organization has been experimenting with SSM, I really love it so far!
One snag we ran into, is we wanted to use
RunAs
with the root user. Unfortunately, this user hasUID
as0
andGID
as0
, preventing us from logging in. For reference, here's the error:We found this to be the culprit:
https://github.com/aws/amazon-ssm-agent/blob/master/agent/session/shell/shell_unix.go#L215-L220
Is this done intentionally? If not, I've opened the following WIP PR to allow
0
as a valid GID / UID 😄#317
If there is interest in merging this change, I will perform more testing / validation before removing the WIP status 🚀
Thanks!
The text was updated successfully, but these errors were encountered: