In Ubuntu 20.04 conda gives a Permission denied error - anaconda

One day, as my Ubuntu user, there was a problem with my installation of conda,
/home/data/userleo/anaconda3/conda/bin: Permission denied
Even when I gave annaconda3 chmod -R 777, this problem still occurs. So I deleted conda, but when I reinstalled, the following problem appeared,
bash /home/data/userleo/anaconda3/conda.exe
PREFIX=/home/data/userleo/anaconda3
Unpacking payload ...
Anaconda3-2021.05-Linux-x86_64.sh: line 381: /home/data/userleo/anaconda3/conda.exe: Permission denied
Anaconda3-2021.05-Linux-x86_64.sh: line 383: /home/data/userleo/anaconda3/conda.exe: Permission denied
381 "$CONDA_EXEC" constructor --extract-tar --prefix "$PREFIX"
383 "$CONDA_EXEC" constructor --prefix "$PREFIX" --extract-conda-pkgs || exit 1
How do I get Anaconda to work without permission denied errors?

Assuming you have installed conda correctly , no idea why there is exe with ubuntu .
what you can do is to Check the cached installed earlier , the remaining files in any , and the installed files .
with ls -ld /path/to/folder
you will noticed that root is the owner for some files , then you can change it with chown

Related

Why am I unable to build pyodide?

I find myself attempting to build pyodide from sources on a linux machine. However an attempt to run the make command gives me the following permission denied error.
savakar#Qulal:/media/savakar/PROJECTS/pyodide$ make
./tools/dependency-check.sh
/bin/bash: line 1: ./tools/dependency-check.sh: Permission denied
make: *** [Makefile:201: check] Error 126
I have installed the build dependencies from the Dockerfile.
It appears to be a permissions issue, however I have attempted to give read,write and execution permissions to the directory via the command
chmod 777 -R /media/savakar/PROJECTS/pyodide/
chmod +rwx -R pyodide/
chmod +rwx -R ./tools
amongst other attempts at giving execute permission to the files.

Install package in RStudio got permission denied

I was trying to install rattle package in RStudio in Mac but had this problem.
The downloaded source packages are in
‘/private/var/folders/jg/725mdnns39z944j_s1q2hwg40000gn/T/Rtmpe2a0uF/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning messages:
1: In file.create(f.tg) :
cannot create file '/usr/local/Cellar/r/3.6.3_1/lib/R/doc/html/packages.html', reason 'Permission denied'
2: In make.packages.html(.Library) : cannot update HTML package index
I tried the following methods:
One
I used the following lines to change folder permission
ls -ld /usr/local/Cellar
sudo chmod a+w /usr/local/Cellar
The folder permission is changed as follows:
drwxrwxrwx 118 dph admin 3776 Apr 23 00:40 /usr/local/Cellar
But the problem still not solved.
Two
I found .libPaths() to check lib directory and change that folder's permission, too. It doesn't work.
Three
I used .libPaths("/home/rlib") to change installation place. Doesn't work.
Four
I moved to the terminal rather than the RStudio console to install the package. As I suspect RStudio may have no right to access folders. When installing, the terminal asked me allowing the terminal to access folders? But even choosing yes doesn't work.
My suspicion is correct. One comment in the RStudio forum said we need to open the application on administration mode. And I found in Mac, you can do this:
cd /Applications/iTunes.app/Contents/MacOS/
sudo ./MacOS
And it is working!!

Xcode Build Issue - permission denied

I am using Xcode 10.1. Everytime I build my project I get this error:
/Users/{username}/Library/Developer/Xcode/DerivedData/{random_name}/Build/Intermediates.noindex/....
line 2: /Users/{username}/path_to_app/Pods/Target Support
Files/pod_name/... Permission denied
I already tried the accepted answer here. I also tried doing the sudo chown but those did not fix the error. These are the actual steps I did, multiple times:
Remove all files in the DerivedData
Do the sudo chown in both paths: DerivedData and path_to_app
Clean
Build
What am I missing?
What worked for me is using chmod. Here's the command chmod -R 755 {my_working_folder}. For an explanation of what the numbers represent, you may read this article.
Here's what worked for me.Navigate to the directory which contains the file (for which you receive "Permission Denied" error) ,Then in terminal type chmod 777 (your_file_name). What basically you are doing is giving read/write/execute permission to your file . For more info check this article - https://www.maketecheasier.com/file-permissions-what-does-chmod-777-means/

Permission denied in mac terminal

I'm trying to write a command on mac terminal using the root, but it shows me that the permission denied, when I use the sudo it shows that the command not found
can any one please help me
aftheers-MacBook-Air:scripts root# ./ArduinoWifiShield_upgrade.sh
-sh: ./ArduinoWifiShield_upgrade.sh: Permission denied
You have to make the file executable:
chmod +x ArduinoWifiShield_upgrade.sh
To avoid permission denied prompt, type this command and continue
sudo su
Install the packages in this admin mode,
then go back to normal mode
exit

Permission denied when installing ruby

I am working on installing another version of ruby on another server which is CentOS 6.7 When while trying to configure ruby within the tmp directory I receive a:
sudo: unable to execute ./configure: Permission denied
Here is exactly what I am doing leading up to this:
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | tar xz
cd ruby-2.1.2
./configure --disable-install-rdoc <!-- here is were we fail with permission denied
I am currently logged in as root. I have played around with changing my file permissions and that did not seem to help at all.
Any suggestions?
From this link it appears /tmp is mounted as read-only.
Open /etc/fstab, find the line that mounts your /tmp dir, and remove the noexec flag. Then remount the filesystem (or simply restart your system).
As a side note, you will also want to avoid running ./configure and make as root user. Only when it comes to run make install should you run as root.

Resources