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

fix: Show informative error for non-executable exec target #688

Closed
wants to merge 1 commit into from

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Apr 4, 2022

Description of the Pull Request (PR):

When the target executable of singularity exec lacks +x
permissions, show a sensible error message rather than permission denied.

Now...

$ singularity exec ~/ubuntu_latest.sif /etc/hosts
ERROR:   /etc/hosts is not executable, please check permissions. If it is a shell built-in, specify an executable instead. E.g. use /bin/echo instead of echo.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg added the bug Something isn't working label Apr 4, 2022
@dtrudg dtrudg added this to the SingularityCE 3.10 milestone Apr 4, 2022
@dtrudg dtrudg self-assigned this Apr 4, 2022
@dtrudg dtrudg force-pushed the issue607 branch 2 times, most recently from 2fb08c8 to d5c9e03 Compare April 4, 2022 16:10
When the target executable of `singularity exec` lacks `+x`
permissions, show a sensible error message rather than `permission
denied`.

Fixes sylabs#607
@dtrudg
Copy link
Member Author

dtrudg commented Apr 4, 2022

Closing unfixed - see discussion on issue #607

@dtrudg dtrudg closed this Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"permission denied" error when exec-ing non-exectuable is not friendly
1 participant