question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission denied in /usr/share/dotnet

See original GitHub issue

Description: Runner does not have permission to install in the default directory

Task version: 3.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Use action with selfhosted ubuntu runner with non-root user permissions

Expected behavior: Install dotnet

Actual behavior: Permission denied

I tried using the env DOTNET_INSTALL_DIR but it doesn’t seem to work

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
NissesSenapcommented, Oct 14, 2022

It would probably be good update the docs to include instructions to set

env:
  DOTNET_INSTALL_DIR: "./.dotnet"

On self hosted linux nodes.

2reactions
IvanZosimovcommented, Oct 4, 2022

@andrewgbell, you are right. The default directory was changed (it’s breaking change), details and motivation can be found here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

net core - Permision denied for dotnet - Stack Overflow
When I run the command as the root user it works perfectly fine. I don't know if this is because I installed dotnet...
Read more >
Permission denied when writing to a folder after deploying to ...
Hi,. i have been getting Permission denied IOexception after deploying a .net core 5 project to a linux ubuntu 20.04, this happens when...
Read more >
Permission denied trying to install DotNet on turnkey-core ...
Usually in my basic Linux attempts if I get permission denied, I put sudo in front, ... How to create SSL certs for...
Read more >
dotnet publish permission denied
-> % dotnet restore Permission denied to modify the '/usr/local/share/dotnet/sdk/NuGetFallbackFolder' folder. Here are some options to fix this error: ----- 1.
Read more >
Permission denied when trying to cd /usr/local/bin from terminal
Instead use something like sudo chmod -R u=rwX,go=rX /usr/local/bin -- the "X" mode sets execute access only if it looks appropriate. – Gordon ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found