How Do You Fix the Problem of “permission denied” when Trying to Copy a File to a Directory?

Problem scenario
You try to copy a file. It fails with "Permission denied." What should you do?

Possible Solutions
1. Are the permissions of the destination folder/directory permissive? Is you user supposed to be able to write to the destination folder/directory?

2. Is there an open file in the destination directory? Sometimes this can cause unexpected problems (e.g., with Git Bash).

3. Are you sure the location is correct? In today's world with public and private clouds, Git Bash, Git CMD, PowerShell, DOS prompts, Putty terminals, VNC sessions, Remote Desktop Sessions, web UI terminals, servers can become easily confused with each other

Leave a comment

Your email address will not be published. Required fields are marked *