Topic "Permission denied - Error code 3"

Author Message
guest

Guest


Can anyone point me in the right direction to solve my problem?

When I try to transfer a file I get the following error:

Permission denied
Error Code: 3
Error message from server: Permission denied
Request Code: 3
Advertisements
dlaws

Guest


I have the same problem as what you are facing and i don't know what to do.

I found the post below and it seemed to have worked for the guy asking the question, it may work for you? I've not had any luck with it, please let me know if you crack it.

https://communities.vmware.com/message/533317


Regards
d
gate4Win
[View user's profile]

Joined: 2007-09-28
Posts: 2
Location: Gate - Rivire-du-Loup, Qubec (Canada)
Just follow the each step and you will get it fixed:

1) Open WinSCP
2) Bottom-left --> put a check on Advanced options
3) Bottom of white window (Just above Advanced options) --> Left click on Preferences
4) Now move to your right in line 2/3 of the way --> Left click on the Preferences "Radio-type" Button
5) Now in the "Confirmations" box, 4th item from the top, Transfer resuming remove the 'check-mark'
6) Left-click on the OK Button -----> You're done ! Enjoy it

jga
gate4Win
[View user's profile]

Joined: 2007-09-28
Posts: 2
Location: Gate - Rivire-du-Loup, Qubec (Canada)
DLAWS:

Please forget about the previous reply (Posted: 28 Sep 2007 05:46).

The problem is with permission security of your server. (My server ---> FreeBSD 6.2)

The only way I could sign-in and transfer/delete/etc.. files from/to my PC was to give "root" permission to login through SSH login. (Have to set PermitRootLogin yes) in "sshd_config" file.

No more "Permission denied - error code 3".

Gate
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
guest wrote:
Can anyone point me in the right direction to solve my problem?

When I try to transfer a file I get the following error:

Permission denied
Error Code: 3
Error message from server: Permission denied
Request Code: 3

Please post a main error message too.
_________________
Martin Prikryl
acnow2

Guest


I am using winscp to access my aws instance. I followed all the steps https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html#putty-private-key and I was able to connect but when I am going to edit any directory it gives me this error


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

Any idea why is doing that? Thanks in advance! Al
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
acnow2 wrote:
I am using winscp to access my aws instance. I followed all the steps https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html#putty-private-key and I was able to connect but when I am going to edit any directory it gives me this error


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

Duplicate post:
https://winscp.net/forum/viewtopic.php?t=14235
_________________
Martin Prikryl
dceddy
[View user's profile]

Joined: 2014-08-29
Posts: 1
I'm having a similar problem to the prior report as shown on this attachment with no Request Code shown on the error message. I try to upload one file with no problem, but have this problem only on a new file as shown. both of these files are the same for permissions settings. I tried several times in case of any file corruption, but had the same issue every time.

Does anybody have any suggestions that we should try when this problem occurs?

guest wrote:
Can anyone point me in the right direction to solve my problem?

When I try to transfer a file I get the following error:

Permission denied
Error Code: 3
Error message from server: Permission denied
Request Code: 3
Win SCP access problem.jpg (320.1 KB) [Download]

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
dceddy wrote:
I'm having a similar problem to the prior report as shown on this attachment with no Request Code shown on the error message. I try to upload one file with no problem, but have this problem only on a new file as shown. both of these files are the same for permissions settings. I tried several times in case of any file corruption, but had the same issue every time.

So do both files exist in the remote directory, with the same permissions? Or does the first file exist only and the second one (the one your get the error with) is new?
Guest




Both files do exist in the same root directory with the same permissions. One is old and one is new. But, I try to upload both to the same directory. The old one does upload to the server and overwrites the old existing file on the server, and the new one will not and has the error message. It is possible that the administrator of the webserver has recently changed something, and I will follow up on that, but I would like to have some idea of what could cause that.
Guest




We're having a similar problem. We can rename, delete and create. But when we overwrite, it seems to upload OK but we get error 3 saying upload "was successful, but error occurred while setting the permissions and/or timestamp"

The suggestion is to "turn off setting permissions or preserving timestamp" or we can "ignore permission errors"

Not sure what the best option is and the impact of each.

Permissions are fine, and the problem still occurs if we CHMOD 777. We can overwrite file just fine using the same user in FlashFXP.

audit.log and secure log are all green, no problems.

Running WinSCP Version 5.5.4. (Build 4433)
Server : Centos release 6.5 (Final)
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
Anonymous wrote:
We're having a similar problem. We can rename, delete and create. But when we overwrite, it seems to upload OK but we get error 3 saying upload "was successful, but error occurred while setting the permissions and/or timestamp"

The suggestion is to "turn off setting permissions or preserving timestamp" or we can "ignore permission errors"

Not sure what the best option is and the impact of each.

Permissions are fine, and the problem still occurs if we CHMOD 777. We can overwrite file just fine using the same user in FlashFXP.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
marty

Guest


I could successfully transfer to HTML Document Root (/var/www/html owned by www-data) but
not to /usr/local/bin owned by root. Error code 3.

I was in www-data's group, but not in root. Added myself to root's group with 775 permission.

(DUH. What took me so long? Maybe we're ALL too busy lol.)
shamnas

Guest


ssh to your server using putty or whatever..
chmod 777 <directory name> and copy whatever you like
change the permissions back...
Balaam

Guest


Because you dont have the right. -rwx r--
benjamin

Guest


i had the same message. It happens because my sftp server was full. I have solved my problem by removing files on my sftp server.
ngocht

Guest


I had the same problems. But i login by my personal account. So i try again by root account and it work Very Happy
IC

Guest


try sudo chmod 777 /Directory-name in putty or tiger vNC
it worked for me
Guest




[sudo chown -R -v ec2-user /var/www/ or sudo chown -R -v ubuntu /var/www/
CharlieL2017

Guest


Hey Everyone our problem clearly is the same as other's on this site we bought a lapLeah Age 6 top from Dell ad it keep's Error: Permission to read and write N:\Temp fix remote folder to continue something on the lines of this How can we fix this problem without a operating system or Windows 10 please let me our email is charlielapoite@gmail.com I Miss my good laptop we are using our shitty slow one lol PLEASE HELP[/i][/b]
brockayers

Guest


Hello, Im fairly new to Raspberry Pi, programming, and all this stuff.
I'm trying to copy a file from my Rpi to my computer via WINSCP. When I try to open the folder with the file in it, I get: "Permission denied.
Error code: 3
Error message from server: Permission denied"

Could someone explain what I need to do to get permission??
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
brockayers wrote:
Hello, Im fairly new to Raspberry Pi, programming, and all this stuff.
I'm trying to copy a file from my Rpi to my computer via WINSCP. When I try to open the folder with the file in it, I get: "Permission denied.
Error code: 3
Error message from server: Permission denied"

Could someone explain what I need to do to get permission??

Same answer: Start a new post and post a log file or at least a complete error message. Explain what do you mean by "open the folder with the file".
Guest




You should give all permission to that pertcular user in sudoers file and u have to give 777 permission to the folder to which you trying to copy the file.
Hellllllllllooooooooooooo

Guest


Anonymous wrote:
You should give all permission to that pertcular user in sudoers file and u have to give 777 permission to the folder to which you trying to copy the file.
Very Happy Smile
6thPlaneta

Guest


shamnas wrote:
ssh to your server using putty or whatever..
chmod 777 <directory name> and copy whatever you like
change the permissions back...


It's true.
for safety you can chmod 775 like this:

sudo chmod 775 /YOUR_DIRECTORY
FUM

Guest


How the error occurred in my case was during a file transfer. I was wondering if I could transfer a file between two separate ftp sessions inside WinSCP.

How I resolved the file permission Error:

1- I renewed the session, where I got the permission Error, by pressing the button with the two opposing green arrows inside a folder icon (Refresh, Ctrl+R).
(Not sure if it made any difference but that is what I did).

2- Then I clicked on the folder icon where a downward green arrow is (Open directory/bookmark, Ctrl+O), which brought up the file path.

3- I selected the file path where I have my domains.

4- Clicked OK

Suddenly it worked again.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License