Permission Denied on Updates
Client: XP SP2 / WinSCP 3.7.1 (B 257) in Explorer-like view; Upload set permissions to (rw-rw-r) w/ add X to directories; / Putty 0.56
Server: SSH protocol 2, OpenSSH_3.1p1, Encryption: aes, compression no; protocol SFTP(v3) - Server does not support any SFTP extension.
Not sure if this is a misconfiguration or a bug in WinSCP. In previous versions we didn't have this problem (don't know which version that was though). If anyone has suggestions or something they want me to verify let me know.
Also, I use WinSCP everyday and it's an excellent product. Thanks for the hard work prikryl.
----- START Protocol: SFTP (with SCP fallback) Logging -----
Copying 1 files/directories to remote directory "/opt/htdocs"
PrTime: Yes; PrRO: Yes; Rght: rw-rw-r--; PrR: Yes; FnCs: N; RIC: Yes; Resume: S (102400); CalcS: Yes; Mask: *.*
TM: M; ClAr: No; ExclM:
AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
File: "\\<server>\<myfile>.pdf"
Copying "\\<server>\<myfile>.pdf" to remote directory started.
Binary transfer mode selected.
Opening remote file.
Type: SSH_FXP_OPEN, Size: 116, Number: 65283
Type: SSH_FXP_STATUS, Size: 24, Number: 65283
Status/error code: 4, Message: 65283, Server: Failure, Language:
Type: SSH_FXP_LSTAT, Size: 100, Number: 65543
Type: SSH_FXP_ATTRS, Size: 37, Number: 65543
Asking user:
Remote file '<myfile>.pdf' already exists. Overwrite?
New: 53725 bytes, 11/9/2004 5:18:12 PM
Existing: 53725 bytes, 11/10/2004 8:51:00 AM ()
Type: SSH_FXP_OPEN, Size: 116, Number: 65795
Type: SSH_FXP_HANDLE, Size: 13, Number: 65795
Type: SSH_FXP_WRITE, Size: 4121, Number: 66054
27 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
Type: SSH_FXP_CLOSE, Size: 13, Number: 69636
Type: SSH_FXP_STATUS, Size: 24, Number: 69636
Status/error code: 0
Type: SSH_FXP_SETSTAT, Size: 116, Number: 69897
Type: SSH_FXP_STATUS, Size: 34, Number: 69897
Status/error code: 3, Message: 69897, Server: Permission denied, Language:
(ETerminal) Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9
Asking user:
Upload of file '<myfile>.pdf' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn off 'Set permissions' and/or 'Preserve timestamp' option. ("Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9")
(EScpSkipFile) Upload of file '<myfile>.pdf' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn off 'Set permissions' and/or 'Preserve timestamp' option.
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 9
Listing directory "\\<server>\<path>".
Type: SSH_FXP_OPENDIR, Size: 82, Number: 70155
Type: SSH_FXP_HANDLE, Size: 13, Number: 70155
Type: SSH_FXP_READDIR, Size: 13, Number: 70412
Type: SSH_FXP_NAME, Size: 1057, Number: 70412
Type: SSH_FXP_READDIR, Size: 13, Number: 70668
Type: SSH_FXP_STATUS, Size: 28, Number: 70668
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 70916
Type: SSH_FXP_STATUS, Size: 24, Number: 70916
Status/error code: 0
----- END Protocol: SFTP (with SCP fallback) Logging -----
----- START Protocol: SCP (only) Logging -----
Copying 1 files/directories to remote directory "/opt/htdocs/"
PrTime: Yes; PrRO: Yes; Rght: rw-rw-r--; PrR: Yes; FnCs: N; RIC: Yes; Resume: S (102400); CalcS: Yes; Mask: *.*
TM: M; ClAr: No; ExclM:
AscM: *.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
echo "WinSCP: this is begin-of-file" ; scp -r -p -d -t "/opt/htdocs/" ; echo "WinSCP: this is end-of-file:$?"
WinSCP: this is begin-of-file
SCP remote side confirmation (0)
Asking user:
Remote file '<myfile>.pdf' already exists. Overwrite?
New: 212304 bytes, 5/4/2004 8:50:02 AM
Existing: 212304 bytes, 5/4/2004 1:22:07 PM ()
File: "\\<myserver>\<myfile>.pdf"
Copying "\\<myserver>\<myfile>.pdf" to remote directory started.
Binary transfer mode selected.
T1083682202 0 1095778325 0
SCP remote side confirmation (0)
C0664 212304 <myfile>.pdf
SCP remote side confirmation (0)
Sending BINARY data (first block)
Sending NULL.
scp: /opt/htdocs/<myfile>.pdf: set mode: Operation not permitted
SCP remote side error (1):
Asking user:
Copying file '\\<myserver>\<myfile>.pdf' failed. ("scp: /opt/htdocs/<myfile>.pdf: set mode: Operation not permitted")
(EScpFileSkipped) scp: /opt/htdocs/<myfile>.pdf: set mode: Operation not permitted
E
scp: /opt/htdocs/<myfile>.pdf: set times: Operation not permitted
SCP remote side error (1):
(EScpFileSkipped) scp: /opt/htdocs/<myfile>.pdf: set times: Operation not permitted
Listing current directory.
ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
(ECommand) Error listing directory '/opt/htdocs/'.
Unexpected directory listing line '
Invalid rights description ''
----- END Protocol: SCP (only) Logging -----