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

session on ubuntu with amazon-ssm-agent snap installed has non-writeable cwd #598

Open
toabctl opened this issue Nov 8, 2024 · 1 comment

Comments

@toabctl
Copy link

toabctl commented Nov 8, 2024

On a recent Ubuntu instance running amazon-ssm-agent version 3.3.987.0 (installed from the snapstore), the working directory on a newly created session is a readonly directory.

$ aws ssm start-session --target i-0e0d6b6d0d84843b2

Starting session with SessionId: tom-a6rd2j5dx36y98yggjegiu3poq
$ pwd
/var/snap/amazon-ssm-agent/9881
$ 

That is confusing for users especially when they try to call basic commands like:

$ echo "foo" > testfile
sh: 2: cannot create testfile: Permission denied

changing the default working directory to /home/ssm-user for a session would be good:

$ cd
$ pwd
/home/ssm-user
@toabctl
Copy link
Author

toabctl commented Nov 8, 2024

The Canonical public cloud team received a bug report for that: https://bugs.launchpad.net/cloud-images/+bug/2082447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant