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.

Insufficient permission to manipulate /usr/local/bin

See original GitHub issue

Rancher Desktop Version

0.7.1

Rancher Desktop K8s Version

1.21.7 (stable)

What operating system are you using?

macOS

Operating System / Build Version

macOS Monterey 12.1

What CPU architecture are you using?

arm64 (Apple Silicon)

Windows User Only

No response

Actual Behavior

In Rancher Desktop, Supporting Utilities I have the error Insufficient permission to manipulate /usr/local/bin: Error: EACCES: permission denied, access '/usr/local/bin' and the box next to each supporting utility is greyed out.

image

This affects only installing supporting utilities from Rancher Desktop. All other functions of Rancher Desktop seem to be working as expected. The utilities work and can interact with the running Kubernetes instance when installed any other way.

Steps to Reproduce

This is a new laptop, first time configuration.

I downloaded Rancher.Desktop-0.7.1.aarch64.dmg from the releases page, opened it, dragged “Rancher Desktop.app” into Applications, and launched it.

It went through the first-time Kubernetes download without issue. Quitting and re-opening Rancher Desktop has not made any difference.

Result

Screen Shot 2021-12-22 at 12 09 08 PM

Logs attached in case they’re helpful. background.log images.log k3s.log k8s.log lima.ha.stderr.log lima.ha.stdout.log lima.log lima.serial.log

Expected Behavior

I expect the Supporting Utilities tab of Rancher Desktop to be able to install the supporting utilities it lists.

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:27
  • Comments:43 (10 by maintainers)

github_iconTop GitHub Comments

28reactions
fungiboletuscommented, Jan 7, 2022

I agree that usr/local/bin should be owned by root. My workaround is to run

sudo chown $USER /usr/local/bin

then I can check the checkboxes in rancher desktop, and I restore the root owner:

sudo chown root /usr/local/bin
27reactions
janduboiscommented, Dec 31, 2021

@spuder The problem is the /usr/local/bin no longer exists, or is not owned by yourself. You can fix that by running the following commands in a terminal:

sudo mkdir -p /usr/local/bin
sudo chown $USER /usr/local/bin

The first sudo command will prompt you for your password. Once the directory exists, and is writable by you, RD should be able to create the symlinks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - Rancher Desktop Docs
Q: The tools on the Support Utilities page are not installed and I see a Insufficient permission to manipulate /usr/local/bin error, how do...
Read more >
How to install when permission denied to /usr/local/bin/ [closed]
But it is permission denied to /usr/local/bin/ . So, I created a directory called /home/users/me/muscle instead of /usr/local/bin/ and continued ...
Read more >
Error: EACCES: permission denied, access '/usr/local/lib ...
I have in the output: dest: '/usr/local/bin/.npm-uJtxIR1m' . So should I chown /usr/local/bin because the .npm.. seems a dynamic file/folder?
Read more >
Trying out Rancher desktop with MAC | by Ayesha Jayasankha
If it exist but still showing the error , you can use the following command to grant the access. sudo chown $USER /usr/local/bin....
Read more >
Permission Denied on Docker Command - Rancher Forums
rancher@rancher:~$ docker -bash: /usr/bin/docker: Permission denied. This appears to happen on any version after 0.5.0.
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