VSCode won't install extension - Permission denied - visual-studio-code

I am having a problem installing extensions on VSCode on macOS Catalina. In console says permission denied. When I checked permission, I have read and write permission and still won't install.
I couldn't find the respective solution to the error so eventually posting here and seeking help to fix the issue.
Error Message
extensionsActions.ts:265 Error: Unable to write file
'/Users/me/Library/Application
Support/Code/CachedExtensionVSIXs/shan.code-settings-sync-3.4.3'
(NoPermissions (FileSystemError): Error: EACCES: permission denied,
open '/Users/me/Library/Application
Support/Code/CachedExtensionVSIXs/shan.code-settings-sync-3.4.3')

Of course, the issue was permission. Fixed by change ownership of the folder CachedExtensionVSIXs
User this command to fix it
sudo chown -R ~/Library/Application\ Support/Code/CachedExtensionVSIXs
Or lead to the Code folder ~/Library/Application\ Support/Code and run the below command
sudo chown -R CachedExtensionVSIXs

Related

I keep getting an error code "unable to write program user data" I can't even open the program visual studio code

It says please make sure the following directories are writable.
/Applications/untitled folder/Library/ApplicationSupport/Code
/Applications/untitled folder/.vscode/extensions
what does it want me to do I am clueless?
Go to C:\Users\Azox and delete .vscode.
Go to C:\Users\Azox\AppData\Roaming and delete Code.
I am leaving this answer here because I had a-lot of trouble with this problem.
Steps:
sudo chown -R username ~/.vscode/extensions
sudo chown -R username ~/Library/Application\ Support/Code
Then you should be able to open vscode from the application folder.
To find out what your username is just type whoami in the terminal.

A fatal error has occurred Cannot write to cache directory /home/promozjo/tmp/horde Details have been logged for the administrator

A fatal error has occurred
Cannot write to cache directory /home/promozjo/tmp/horde
Details have been logged for the administrator.
Check as which user your web server runs, most probably it is www-data. Then issue
chown -R www-data:www-data /home/promozjo/tmp/horde
Also a possible quick fix (but not recommended):
chmod -R 777 /home/promozjo/tmp/horde

Permissions When Attempting to install mongodb

I am trying to install mongoDB and need to tap their repo with homebrew. However, every time I run the command, I get a permission error. I am on macOs if that helps
I tried running it with and without sudo and get errors either way.
brew tap mongodb/brew
It should just tap the repo
Without Sudo-
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/.git/FETCH_HEAD: Permission denied
With Sudo-
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
I figured out the issue. I had the change the permissions of the
/usr/local/Homebrew
directory so that it could be edited by anyone. I did this using the GUI, but you could do it using this command
cd /usr/local && sudo chown -R 777 Homebrew
If you're in Catalina, then give the owner user permission to "Homebrew" folder:
sudo chown -R $(whoami) /usr/local/Homebrew/

Matlab startup error permission denied

The error message is as follows. How to deal with this trouble?
Error using connector.internal.autostart.run
Cannot CD to C:\Users\dell\AppData\Local\Temp (Directory permission
denied).
The following worked for me:
1 - Go into the MATLAB installation directory using terminal.
2 - Change installation file type in the sense of permission and execution:
sudo chmod +x install
3 - Run installer:
sudo ./install
Apparently the aforementioned method provides permission in the necessary steps.

unable to set up spark notebook getting the no such command error and permission denied errors

I am trying to run spark notebook on my machine and I followed the procedure mentioned in "spark notebook io". During this procedure, I am giving the command bin/spark-notebook, in the terminal, and I am getting
Error: permission denied
and when I am using sudo bin/spark-notebook I am getting
Error: no such command
How can I resolve this issue?
Changing permissions fixed the bin/spark-notebook command for me. Go to the folder containing the parent of the bin folder (I renamed mine sparknotebook). Then execute chmod 755 sparknotebook and you should be able to proceed with cd sparknotebook and bin/spark-notebook should work.
Similar to Ricky, I changed the access permissions, but with the following command worked for me:
chmod +x [name of root directory of the expanded distribution]
I just run
sudo chmod +x bin/spark-notebook
on my macbook air and it works