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.)

Use this tag for questions related to being unable to access a particular system, file, database, etc. that is protected because of permission issues.

1520 questions
34
votes
4 answers

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; …
Timothy Rajan
  • 1,947
  • 8
  • 38
  • 62
34
votes
1 answer

WinSCP: Permission denied. Error code: 3 Error message from server: Permission denied

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 error message: Cannot create remote file…
user742102
  • 1,335
  • 8
  • 32
  • 51
34
votes
4 answers

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 more info. Yes, I have tried a reboot. In…
danludwig
  • 46,965
  • 25
  • 159
  • 237
31
votes
1 answer

Node.js EACCES error when listening on http 80 port (permission denied)

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.js:132:45) at Server.listen (net.js:1027:20) …
Meet Mehta
  • 4,839
  • 3
  • 20
  • 27
30
votes
2 answers

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 directories didn't seem to change (as far as I can…
28
votes
9 answers

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 16:30 ./scripts/replace-md5sums.py
r9s
  • 281
  • 1
  • 3
  • 4
28
votes
6 answers

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@[public dns]:[home/[destination]] where I replaced…
Amre
  • 1,630
  • 8
  • 29
  • 41
27
votes
5 answers

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 permission to open the application…
27
votes
5 answers

.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. So I googled and find that the way is call…
srgg6701
  • 1,878
  • 6
  • 23
  • 37
27
votes
4 answers

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 is a Bash script called testscript present at…
nmadhok
  • 1,704
  • 3
  • 16
  • 20
26
votes
2 answers

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 = fopen('markers.xml', 'w'); $stringdata = "Test…
Laxmidi
  • 2,650
  • 12
  • 49
  • 81
25
votes
5 answers

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 to the POD through the related volume claim. When I…
fragae
  • 285
  • 1
  • 3
  • 9
24
votes
4 answers

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 wrong? >>> import os,mmap >>> mfd = os.open('BigFile',…
tMC
  • 18,105
  • 14
  • 62
  • 98
24
votes
5 answers

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/install/database bofm/oracle12c:preinstall…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
24
votes
3 answers

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…
DrDark
  • 445
  • 2
  • 4
  • 12