-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
incorrect installation with pip install when /tmp/ mounted with noexec option #4223
Comments
@mszumilak - Thank you for posting this issue and the production steps. I was able to reproduce and confirm the behavior.
This appears to be an issue with the pip because some the files in the /bin directory do not have the execution bit set. After doing some digging I found a related issue in the pypa/pip repo with more details. I suggest +1 the issue. It looks like there are a couple of work arounds mentioned in #2830, on Stack Overflow, and in our online documentation. Let us know if there are any questions. |
Issue on PIP was opened in March and not fixed yet. I believe proper chmod settings can be set in setup.py for awscli. Chmod is handled in similar way for youtube-dl for example. |
@mszumilak - Thanks for your feedback. I am marking this issue as an Enhancement as it may be reasonable to implement in CLI V2 which we are tracking under #3587. |
Does os.chmod() in the for loop have to wait for v2? |
@mszumilak I think we can address it in v1 possibly. Can you point to how In the meantime, I'd recommend installing via the bundled installer or just updating the permissions on the executable that |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
SUMMARY
AWSCLI pip installation does not work when /tmp mounted with noexec.
OS / ENVIRONMENT
Any Linux, particularly:
STEPS TO REPRODUCE
mount -o remount,noexec /tmp
With /tmp with exec option awscli works fine:
With noexec it does not:
EXPECTED RESULTS
Package should handle setting proper permission while being installed. There are some packages not affected by this issue.
The text was updated successfully, but these errors were encountered: