command line vs GUI - Permission denied

Advertisement

rd888
Joined:
Posts:
2
Location:
I want to be in Jamaica

command line vs GUI - Permission denied

Hi there,

I am getting a "Permission denied" error while doing a put. The seemingly same config allows the transfer in the GUI.
Any idea why this is happening?

Command line log: put -preservetime C:\Temp\1\1050253.20190115.csv /
. 2019-01-16 09:50:49.606 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2019-01-16 09:50:49.606 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2019-01-16 09:50:49.606 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
....
. 2019-01-16 09:50:49.627 Copying "C:\Temp\1\1050253.20190115.csv" to remote directory started.
. 2019-01-16 09:50:49.627 Binary transfer mode selected.
. 2019-01-16 09:50:49.627 Opening remote file.
> 2019-01-16 09:50:49.627 Type: SSH_FXP_OPEN, Size: 46, Number: 515
< 2019-01-16 09:50:49.647 Type: SSH_FXP_STATUS, Size: 34, Number: 515
< 2019-01-16 09:50:49.647 Status code: 3, Message: 515, Server: Permission denied, Language:
> 2019-01-16 09:50:49.648 Type: SSH_FXP_LSTAT, Size: 30, Number: 775
< 2019-01-16 09:50:49.668 Type: SSH_FXP_STATUS, Size: 29, Number: 775
< 2019-01-16 09:50:49.668 Status code: 2, Message: 775, Server: No such file, Language:
* 2019-01-16 09:50:49.668 (ETerminal) Permission denied.
* 2019-01-16 09:50:49.668 Error code: 3
* 2019-01-16 09:50:49.668 Error message from server: Permission denied

GUI log:
. 2019-01-16 09:45:07.913 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2019-01-16 09:45:07.913 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2019-01-16 09:45:07.913 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml

Thanks
Richard

Reply with quote

Advertisement

rd888
Joined:
Posts:
2
Location:
I want to be in Jamaica

Re: command line vs GUI - Permission denied

Nevermind. I had omitted to make the path RELATIVE to the user's root folder. in SFTP/SSL "/" means system root not user root.

ie.
put -preservetime C:\Temp\1\1050253.20190115.csv / ERROR
vs
put -preservetime C:\Temp\1\1050253.20190115.csv ./ GOOD

4 hours wasted. Hopefully this helps someone.



rd888 wrote:

Hi there,

I am getting a "Permission denied" error while doing a put. The seemingly same config allows the transfer in the GUI.
Any idea why this is happening?

Command line log: put -preservetime C:\Temp\1\1050253.20190115.csv /
. 2019-01-16 09:50:49.606 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2019-01-16 09:50:49.606 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2019-01-16 09:50:49.606 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
....
. 2019-01-16 09:50:49.627 Copying "C:\Temp\1\1050253.20190115.csv" to remote directory started.
. 2019-01-16 09:50:49.627 Binary transfer mode selected.
. 2019-01-16 09:50:49.627 Opening remote file.
> 2019-01-16 09:50:49.627 Type: SSH_FXP_OPEN, Size: 46, Number: 515
< 2019-01-16 09:50:49.647 Type: SSH_FXP_STATUS, Size: 34, Number: 515
< 2019-01-16 09:50:49.647 Status code: 3, Message: 515, Server: Permission denied, Language:
> 2019-01-16 09:50:49.648 Type: SSH_FXP_LSTAT, Size: 30, Number: 775
< 2019-01-16 09:50:49.668 Type: SSH_FXP_STATUS, Size: 29, Number: 775
< 2019-01-16 09:50:49.668 Status code: 2, Message: 775, Server: No such file, Language:
* 2019-01-16 09:50:49.668 (ETerminal) Permission denied.
* 2019-01-16 09:50:49.668 Error code: 3
* 2019-01-16 09:50:49.668 Error message from server: Permission denied

GUI log:
. 2019-01-16 09:45:07.913 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2019-01-16 09:45:07.913 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2019-01-16 09:45:07.913 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml

Thanks
Richard

Reply with quote

Advertisement

You can post new topics in this forum