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
23
votes
9 answers

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 running a container for the first time. I was not…
icoe
  • 539
  • 1
  • 3
  • 9
23
votes
3 answers

`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 documentation at http://bit.ly/bundler-issues.…
JoJoS
  • 1,971
  • 2
  • 13
  • 15
21
votes
9 answers

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: ./test.sh: Permission denied Any ideas what could be causing…
Marcin
  • 5,469
  • 15
  • 55
  • 69
20
votes
2 answers

Redirect output to a file permission denied?

I want to do a simple redirection. When I do sudo curl > a.txt I want to take all of the data outputted by the curl into a.txt. However, I keep getting an error saying a.txt: Permission denied Would anyone have any idea how to…
user1871869
  • 3,317
  • 13
  • 56
  • 106
20
votes
2 answers

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 other languages, so please forgive me if I seem…
John
  • 215
  • 1
  • 2
  • 6
19
votes
14 answers

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 and command prompt or bash using run as…
Hashim aslam
  • 243
  • 1
  • 2
  • 7
19
votes
5 answers

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 $ ~/Android/Sdk/tools/./emulator…
Stormtrooper CWR
  • 533
  • 1
  • 6
  • 19
18
votes
0 answers

session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied

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?
ganjan
  • 7,356
  • 24
  • 82
  • 133
17
votes
8 answers

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 question is Windows Server 2008 r2 OS and were using…
craig Rickett
  • 428
  • 1
  • 5
  • 17
15
votes
3 answers

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 example: public class StudyFileIo extends Activity { …
mobibob
  • 8,670
  • 20
  • 82
  • 131
15
votes
2 answers

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 with Android KITKAT version won't allow apps to…
14
votes
6 answers

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: - "5432:5432" volumes: -…
Ben-hur Ott
  • 189
  • 1
  • 1
  • 8
14
votes
3 answers

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 denied) in…
Mohammad Ali Akbari
  • 10,345
  • 11
  • 44
  • 62
14
votes
7 answers

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/e819f886bf31b67c42249a0eff8e8b16cf7622: Permission…
InfoTracer
  • 392
  • 1
  • 3
  • 9
14
votes
5 answers

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, User Contact information, Owner Information. I would…
A.J.
  • 8,557
  • 11
  • 61
  • 89