How To Quickly Fix Permission Denied. Error Code: 3 In 2024
Fix faulty permission settings that stop you from transfering files
2 min. read
Updated on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
In this article, we discuss how to fix Permission denied. Error code:3 Error message from server: permission denied when trying to transfer files.
The message is either a SFTP error 3 or a WinSCP network error that signals you don’t have the necessary rights to access or transfer a directory or file.
Here’s how to fix it:
How do I fix the denied permissions error?
1. Check account
Make sure you’re logged into a Windows account with admin rights. This error often means you cannot move files because you don’t have permission to.
2. Change file permission to read/write
2.1. Using a SSH Client
- Type in this code to give read permission:
sudo chmod -R 755 /remote-dir/
- Type in this code to give write permission:
sudo chmod -R 777 /remote-dir/
- Try the file copy or transfer again and see if you have the permission denied error message.
Changing the file permission to RXW for everyone could pose a security risk. Hence, if this is your adopted method, you should undo it once the transfer is completed.
2.2. Using Powershell/CMD
- Press Win + X and select “Command Prompt (Admin)” /”Windows PowerShell (Admin)”/”Terminal (Admin)”.
- Type the following command:
icacls "C:\path\to\directory" /grant Everyone:(OI)(CI)F /T
- Press Enter.
C:\path\to\directory
represents the full path to a specific directory on your Windows system. Replace it with the actual path of the target directory when changing permissions. For example, C:\Users\Username\Documents\Project
specifies the Project folder in the Documents directory Changing the file permission to RXW for everyone could pose a security risk. Hence, if this is your adopted method, you should undo it once the transfer is completed.
3. Confirm the remote file path
This is a rookie mistake, but not one to be ignored. You may have just typed in the wrong resource path. In this case, your access will be denied.
All you need to do is confirm the correct path and re-input it. If you still do not have access, skip to the next solution.
With any of these three fixes, you should have been able to resolve the permission denied. error code: 3 error message from server: permission denied on your server.
You mainly have to pay attention to user rights, and you will be able to avoid this issue in the future.
User forum
1 messages