Questions tagged [permission-denied]
This tag refers to a situation in which you are refused access to a particular system, file, database, etc. that is protected. The most common cause of this is improper credentials (i.e. usernames, passwords, etc.)
1,569
questions
744
votes
43
answers
932k
views
Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
What might be causing the error Error: EACCES: permission denied, access '/usr/local/lib/node_modules'?
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! ...
413
votes
11
answers
523k
views
Permission denied on accessing host directory in Docker
I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good.
I am doing
sudo docker run -i -v /data1/Downloads:/...
384
votes
38
answers
524k
views
Node.js EACCES error when listening on most ports
I'm testing out an app (hopefully to run on heroku, but am having issues locally as well). It's giving me an EACCES error when it runs http.Server.listen() - but it only occurs on some ports.
So, ...
352
votes
22
answers
744k
views
How to fix Error: laravel.log could not be opened?
I'm pretty new at laravel, in fact and I'm trying to create my very first project. for some reason I keep getting this error (I haven't even started coding yet)
Error in exception handler: The stream ...
276
votes
17
answers
294k
views
Github permission denied: ssh add agent has no identities
This is my first time accessing GitHub and I'm not experienced using a console. I am on a MacBook using Bash. When I try to access GitHub, I get this:
git clone [email protected]:dhulihan/league-of-...
194
votes
25
answers
363k
views
Cannot open backup device. Operating System error 5
Below is the query that I am using to backup (create a .bak) my database.
However, whenever I run it, I always get this error message:
Msg 3201, Level 16, State 1, Line 1
Cannot open backup ...
104
votes
25
answers
264k
views
EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I got this permission denied problem when I want to ssh to my ec2 host. I tried existing solution chmod 600 "My.pem" but still didn't work. Here is my debug information:
debug1: Reading configuration ...
103
votes
15
answers
62k
views
Pods-resources.sh Permission denied in iOS Project
I have got an existing project from a client and I tried to run this in my MAC using XCode 5.0
But I am facing this following error. I installed Cocoa Pods but still doesn't work. This project is ...
86
votes
19
answers
400k
views
Cannot open output file, permission denied
So I keep getting this error when trying to compile C++ code using CodeBlocks.
cannot open output file [filename.exe] permission denied
It only started today, and it's sporadic and inconsistent. ...
78
votes
4
answers
301k
views
How to give folder permissions inside a docker container Folder
I am creating a folder inside my Dockerfile and I want to give it a write permission. But I am getting permission denied error when I try to do it
FROM python:2.7
RUN pip install Flask==0.11.1
RUN ...
72
votes
8
answers
102k
views
Why am I getting a permission denied error for schema public on pgAdmin 4?
I'm trying to view the raw data from the AACT Database in pgAdmin 4. I'm on a Mac computer. When I just try to view the first 100 rows from the 'complete_oncology' table, I get the below error:
ERROR: ...
66
votes
8
answers
121k
views
createdb: database creation failed: ERROR: permission denied to create database
I'm pretty much confused about root user,super user,user and permissions! I am not able to create a database inside user "athleticu". Following are the commands I used:-
athleticu@ip-172-30-...
50
votes
2
answers
52k
views
SocketException: Permission Denied?
My LogCat reads:
08-19 09:29:01.964: WARN/System.err(311): java.net.SocketException: Permission denied
08-19 09:29:02.204: WARN/System.err(311): at org.apache.harmony.luni.platform....
40
votes
8
answers
132k
views
Permission denied on CopyFile in VBS
I'm trying to automate pushing a file into my users' home directories, but am stuck on a "Permission Denied" error — is thrown on line 6 here, with the CopyFile call.
There are other parts of the ...
37
votes
4
answers
22k
views
What permissions are required for "Run Script" during a build phase?
In the "Run Script" build phase of my project, everything works if I type in the script into the text box for "run script" in build phases.
But to make editing / diffing etc easier, I thought I would ...
37
votes
2
answers
81k
views
getUserMedia() in chrome 47 without using https
In chrome version 47 they force you to use https to be allow using getUserMedia().
Unfortunately, I can't use https in my whole web, I only use it in the login rest (It a SPA - single page app). So, ...
35
votes
4
answers
89k
views
Unable to upload a file SFTP using SSH.NET in C# - Permission Denied
I am trying to upload a file using SFTP protocol using C# using SSH.NET library. Below is the code I am using
FileInfo f=new FileInfo("C:\\mdu\\abcd.xml");
string uploadfile=f.FullName; ...
34
votes
4
answers
15k
views
What can/should I do about this git gc error? (rm: cannot unlink pack Permission denied)
When running git gc, I keep seeing this error:
rm: cannot unlink 'pack-30b1ff2[reset of hash].pack': Permission denied
What can/should I do about this error?
Update
Sorry, I should have provided ...
34
votes
1
answer
178k
views
WinSCP: Permission denied. Error code: 3 Error message from server: Permission denied [closed]
I am using WinSCP and keep on experiencing this error every time I try to replace/overwrite a file. I have been able to transfer/overwrite a file before with out any problem but not anymore.
The exact ...
32
votes
1
answer
45k
views
Node.js EACCES error when listening on http 80 port (permission denied) [duplicate]
Node.js throws following error while running on http port 80 (default port):-
Error: EACCES, Permission denied
at Server._doListen (net.js:1062:5)
at net.js:1033:14
at Object.lookup (dns....
32
votes
9
answers
185k
views
Permission denied when launch python script via bash
# ./scripts/replace-md5sums.py
bash: ./scripts/replace-md5sums.py: Permission denied
replace-md5sums.py has chmod 600
# ls -l ./scripts/replace-md5sums.py
-rw------- 1 ubuntu ubuntu 661 2011-04-27 ...
30
votes
2
answers
14k
views
File system changes in Android Nougat
Ever since the first release of the Android N developer preview, I get "permission denied" errors when attempting to list the root directory or other system directories. The permissions on these ...
29
votes
7
answers
44k
views
Transferring a file to an amazon ec2 instance using scp always gives me permission denied (publickey,gssapi-with-mic)
I am trying to transfer a file to an ec2 instance. I followed the Amazon's documentation, this is what my command looked like:
scp -i [the key's location] Documents/[the file's location] ec2-user@[...
28
votes
7
answers
208k
views
.bashrc: Permission denied
I try to work with a project in vagrant.
I have made the command vagrant ssh, and connected to VM. Now I need to edit .bashrc file to set path to the source code. But first I couldn't find that file. ...
28
votes
5
answers
88k
views
Kubernetes NFS persistent volumes permission denied
I have an application running over a POD in Kubernetes.
I would like to store some output file logs on a persistent storage volume.
In order to do that, I created a volume over the NFS and bound it ...
28
votes
4
answers
110k
views
Executing a shell script from a PHP script
I want to execute a Bash script present on the system from a PHP script. I have two scripts present on the system. One of them is a PHP script called client.php present at /var/www/html and the other ...
27
votes
5
answers
19k
views
Facing Permission related issues in MacBook pro with Big Sur 11.4
Whenever I'm trying to open Eclipse or SpringToolSuite 4, I'm getting the same permission related issues It was working fine a day before yesterday but now It's showing weird stuff.
You do not have ...
27
votes
9
answers
44k
views
How to stop running Container, if error response from daemon is: Cannot Kill Container [...] permission denied?
Tough task:
Everytime I try to stop or kill a running container, I get permission denied as an error response from Daemon.
I just started learning how to use docker by using a Ubuntu18.04 VM. I was ...
27
votes
2
answers
120k
views
PHP fopen() Error: failed to open stream: Permission denied
I learning how to write a WordPress plugin. I need some help writing some data to an XML file. I'm on my local machine, a Mac running MAMP. I have PHP 5.2.13. In my plugin, I've got:
$file_handle = ...
27
votes
5
answers
118k
views
Why does docker container prompt "Permission denied"?
I use following command to run a docker container, and map a directory from host(/root/database) to container(/tmp/install/database):
# docker run -it --name oracle_install -v /root/database:/tmp/...
26
votes
3
answers
41k
views
`bundle install` failed due to permission denied
I've installed bundler gem on my new server and when I try to execute bundle install, it failed with this error :
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting ...
24
votes
4
answers
21k
views
Python mmap 'Permission denied' on Linux
I have a really large file I'm trying to open with mmap and its giving me permission denied. I've tried different flags and modes to the os.open but its just not working for me.
What am I doing ...
24
votes
3
answers
96k
views
using shutil.copyfile I get a Python IOError: [Errno 13] Permission denied:
I have some python code using shutil.copyfile:
import os
import shutil
src='C:\Documents and Settings\user\Desktop\FilesPy'
des='C:\Documents and Settings\user\Desktop\\tryPy\Output'
x=os.listdir(...
22
votes
17
answers
41k
views
listen EACCES: permission denied in windows
Everything was worked fine before today evening after i uninstalled vscode and installed again I'm facing this issue while try to run npm run app i have no clue how to fix this i tried to run vs code ...
22
votes
9
answers
52k
views
Unable to execute bash scripts even as root?
I have a weird problem, I cant execute bash script even as basic as:
#!/bin/bash
echo "me"
I am saving it as a test.sh and then do chmod 755 test.sh and once run ./test.sh getting:
bash: ./...
20
votes
2
answers
16k
views
Redirect output to a file permission denied? [duplicate]
I want to do a simple redirection. When I do
sudo curl <insert link here> > a.txt
I want to take all of the data outputted by the curl into a.txt. However, I keep getting an error saying
...
20
votes
2
answers
56k
views
JavaMail API to iMail -- java.net.SocketException: Permission denied: connect
I am having trouble getting an application to use the JavaMail API to send out some files in a more automated way than we are used to doing. I am very new to Java and NetBeans, but have programmed in ...
19
votes
5
answers
24k
views
Android Studio 2.3 using emulator from console, "/dev/kvm device: permission denied" for root user
I'm trying to start a virtual android device which I created with the avdmanager of Android Studio 2.3 (via command line)
all commands are performed as root user
when i try to start the emulator via ...
18
votes
8
answers
41k
views
Error on git pull error : cannot open .git/FETCH_HEAD: Permission denied
I'm looking for help !!
I am getting the following error message when trying to complete a git pull;
C:\Jenkins\Repo> git pull error: cannot open .git/FETCH_HEAD: Permission denied
The machine in ...
18
votes
0
answers
21k
views
session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied [duplicate]
Possible Duplicate:
Issues with PHP 5.3 and sessions folder
I get this error sometimes, what gives?
I guess it has something do with file permissions on my ubuntu 10.10 box. How do I stop it?
16
votes
3
answers
31k
views
android createTempFile throws permission denied?
This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following ...
16
votes
2
answers
2k
views
How to check permission is granted for a directory path and won't thorow EACCES error?
I have a photo editing android app that users can choose the output directory of the the result photos. Problem is Google made a change on sdcard write permission with the KITKAT version and devices ...
16
votes
1
answer
29k
views
Docker run "error while creating mount source path '[...]': mkdir [...]: permission denied"
I'm trying to mount a directory in Docker run:
docker run --restart always -t -v /home/dir1/dir2/dir3:/dirX --name [...]
But I get the error:
error while creating mount source path '/home/dir1/dir2/...
15
votes
2
answers
31k
views
process_usershare_file: stat of failed. Permission denied Samba
I created a shared folder using samba in ubuntu to enable windows machines can access it with the following command:
$ sudo net usershare add documents /home/developer/documents "Developer documents" ...
15
votes
6
answers
17k
views
Docker-Compose + Postgres: /docker-entrypoint-initdb.d/init.sql: Permission denied
I have the following docker compose file:
version: "3"
services:
postgres:
image: postgres:11.2-alpine
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
ports:
-...
14
votes
5
answers
16k
views
Send Custom message in Django PermissionDenied
I am using django's PermissionDenied to render 403.html whenever the user is not allowed to access any page.
There are whole lot of pages, of different type, for example, Product page, User Page, ...
14
votes
3
answers
53k
views
a lots of (Permission denied) in catalina.out
How can i install Apache web server and Apache tomcat to avoid get errors like this:
java.io.FileNotFoundException: /usr/local/apache-tomcat-7.0.5/work/Catalina/localhost/_/SESSIONS.ser (Permission ...
14
votes
7
answers
15k
views
Git over samba - unable to write sha1 filename | Permission denied
When I am using git over samba share on windows I get an error when i want to commit a file via git_extentions or tortoiseGIT.
The error is:
error: unable to write sha1 filename .git/objects/b4/...
13
votes
8
answers
34k
views
IntelliJ, unable to share Project on GitHub (Permission Denied)
I'm new to Git and GitHub/GitLab. I try to share my project to GitHub but it throws this exception:
Can't finish GitHub sharing process
Successfully created project 'LiveGame1' on GitHub, but ...
13
votes
2
answers
4k
views
In onRequestPermissionsResult grantResults on some device return empty when user decline the permission
In Shot:, In onRequestPermissionsResult grantResults on some device return empty and some device have a value PackageManager.PERMISSION_DENIED when user decline the permission.
I have implmeneted a ...