“Permission Denied” trying to run Python on Windows 10

As far as I can tell, this was caused by a conflict with the version of Python 3.7 that was recently added into the Windows Store. It looks like this added two “stubs” called python.exe and python3.exe into the %USERPROFILE%\AppData\Local\Microsoft\WindowsApps folder, and in my case, this was inserted before my existing Python executable’s entry in … Read more

NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native)

EISDIR stands for “Error, Is Directory“. This means that NPM is trying to do something to a file but it is a directory. In your case, NPM is trying to “read” a file which is a directory (Line: 4). Since the operation cannot be done the error is thrown. Three things to make sure here. … Read more

How to grant permission to users for a directory using command line in Windows?

As of Vista, cacls is deprecated. Here’s the first couple of help lines: C:\>cacls NOTE: Cacls is now deprecated, please use Icacls. Displays or modifies access control lists (ACLs) of files You should use icacls instead. This is how you grant John full control over D:\test folder and all its subfolders: C:\>icacls “D:\test” /grant John:(OI)(CI)F … Read more

How to restore the permissions of files and directories within git if they have been modified?

Git keeps track of filepermission and exposes permission changes when creating patches using git diff -p. So all we need is: create a reverse patch include only the permission changes apply the patch to our working copy As a one-liner: git diff -p -R –no-ext-diff –no-color \ | grep -E “^(diff|(old|new) mode)” –color=never \ | … Read more

Permission denied on accessing host directory in Docker

See this Project Atomic blog post about Volumes and SELinux for the full story. Specifically: This got easier recently since Docker finally merged a patch which will be showing up in docker-1.7 (We have been carrying the patch in docker-1.6 on RHEL, CentOS, and Fedora). This patch adds support for “z” and “Z” as options … Read more

Cannot read configuration file due to insufficient permissions

There is no problem with your web.config. Your web site runs under a process. In iis you can define the identity of that process. The identity that your web site’s application pool runs as (Network Services, Local System, etc.), should have permission to access and read web.config file. Update: This updated answer is same as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)