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

[BUG] pwsh -rw-rw-r-- #946

Closed
1 task done
glaucon1984 opened this issue Aug 27, 2024 · 0 comments
Closed
1 task done

[BUG] pwsh -rw-rw-r-- #946

glaucon1984 opened this issue Aug 27, 2024 · 0 comments

Comments

@glaucon1984
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Name of mod

powershell

Name of base container

code-server

Current Behavior

pwsh lacks executable permission, fails to run
after chmod a+x pwsh everything works fine and I can open powershell from the VSCode terminal

Expected Behavior

pwsh should be executable

Steps To Reproduce

When opening pwsh in the VSCode terminal:
pwsh execvp(3) failed.: Permission denied
Going back to bash:

$ sudo bash
# ls -la /usr/bin/pwsh
lrwxrwxrwx 1 root root 16 Aug 27 19:46 /usr/bin/pwsh -> /powershell/pwsh
# ls -la /powershell/pwsh
-rw-rw-r-- 1 root root 72520 Aug 15 20:45 /powershell/pwsh
# chmod a+x /powershell/pwsh
# pwsh
PowerShell 7.4.5
PS /config/workspace>

Now, when opening pwsh from the VSCode terminal:
image

Environment

- OS: Ubuntu 24.04
- How docker service was installed: apt install docker.io

CPU architecture

x86-64

Docker creation

I don't have access to it, I installed it from a linuxserver.io template in Portainer.

Container logs

No errors related to pwsh.

If your issue-posting wasn't so strict I could have reported the wrong pwsh permissions much more easily. Also, If you hadn't locked the previous issue that reported this problem I could just have added the comment to chmod a+x /powershell/pwsh generating much less global warming.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants