Cannot Create Remote File via SFTP upload
I am attempting to do a simple sFTP transfer from a Wintel machine to an AIX server. I believe I have all of my rights and groups and things set correctly.
In fact, as the user (sintedi), when logged on to AIX, I am able to create files in this directory (e.g. "touch file" is OK). I also tested by temporarily enabling regular ftp and I was able to do the upload. The only way this doesn't seem to be working is via WinSCP/sFTP connection
When I use the GUI or Command line for WinSCP, I get "cannot create remote file", "permission denied", "error code 3"
Below is a snip of the log. I think the problem is in code below, but I don't know where it is getting that particular set of rights. (AIX output shown below snip).
. 2014-04-09 12:13:14.523 Changing directory to "in".
. 2014-04-09 12:13:14.523 Getting real path for '/sap_imports/p01/sintel/in'
> 2014-04-09 12:13:14.523 Type: SSH_FXP_REALPATH, Size: 35, Number: 64784
< 2014-04-09 12:13:14.529 Type: SSH_FXP_NAME, Size: 73, Number: 64784
. 2014-04-09 12:13:14.529 Real path is '/sap_imports/p01/sintel/in'
. 2014-04-09 12:13:14.529 Trying to open directory "/sap_imports/p01/sintel/in".
> 2014-04-09 12:13:14.529 Type: SSH_FXP_LSTAT, Size: 35, Number: 65031
< 2014-04-09 12:13:14.530 Type: SSH_FXP_ATTRS, Size: 37, Number: 65031
. 2014-04-09 12:13:14.530 Getting current directory name.
. 2014-04-09 12:13:14.531 Listing directory "/sap_imports/p01/sintel/in".
> 2014-04-09 12:13:14.531 Type: SSH_FXP_OPENDIR, Size: 35, Number: 65291
< 2014-04-09 12:13:14.532 Type: SSH_FXP_HANDLE, Size: 13, Number: 65291
> 2014-04-09 12:13:14.532 Type: SSH_FXP_READDIR, Size: 13, Number: 65548
< 2014-04-09 12:13:14.534 Type: SSH_FXP_NAME, Size: 207, Number: 65548
> 2014-04-09 12:13:14.534 Type: SSH_FXP_READDIR, Size: 13, Number: 65804
< 2014-04-09 12:13:14.535 Type: SSH_FXP_STATUS, Size: 28, Number: 65804
< 2014-04-09 12:13:14.535 Status code: 1
> 2014-04-09 12:13:14.535 Type: SSH_FXP_CLOSE, Size: 13, Number: 66052
. 2014-04-09 12:13:14.536 ..;d;4096;2014-04-09T16:12:02.000Z;"root" [0];"sapsys" [203];rwxr-xr-x;0
. 2014-04-09 12:13:17.142 Copying 1 files/directories to remote directory "/sap_imports/p01/sintel/in/" . 2014-04-09 12:13:17.142 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2014-04-09 12:13:17.142 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2014-04-09 12:13:17.142 File: "C:\test.txt"
. 2014-04-09 12:13:17.143 Copying "C:\test.txt" to remote directory started.
. 2014-04-09 12:13:17.143 Binary transfer mode selected.
. 2014-04-09 12:13:17.144 Opening remote file.
> 2014-04-09 12:13:17.144 Type: SSH_FXP_OPEN, Size: 60, Number: 66307
< 2014-04-09 12:13:17.144 Type: SSH_FXP_STATUS, Size: 24, Number: 66052
. 2014-04-09 12:13:17.144 Discarding reserved response
< 2014-04-09 12:13:17.147 Type: SSH_FXP_STATUS, Size: 34, Number: 66307
< 2014-04-09 12:13:17.147 Status code: 3, Message: 66307, Server: Permission denied, Language:
. 2014-04-09 12:13:17.147 Cannot create new file "/sap_imports/p01/sintel/in/test.txt", checking if it exists already
> 2014-04-09 12:13:17.147 Type: SSH_FXP_LSTAT, Size: 44, Number: 66567
< 2014-04-09 12:13:17.157 Type: SSH_FXP_STATUS, Size: 29, Number: 66567
< 2014-04-09 12:13:17.157 Status code: 2, Message: 66567, Server: No such file, Language:
* 2014-04-09 12:13:17.157 (ETerminal) Permission denied.
* 2014-04-09 12:13:17.157 Error code: 3
* 2014-04-09 12:13:17.157 Error message from server: Permission denied
* 2014-04-09 12:13:17.157 Request code: 3
. 2014-04-09 12:13:17.157 Asking user:
. 2014-04-09 12:13:17.157 Cannot create remote file '/sap_imports/p01/sintel/in/test.txt'. ("Permission denied.
. 2014-04-09 12:13:17.157 Error code: 3
. 2014-04-09 12:13:17.157 Error message from server: Permission denied
. 2014-04-09 12:13:17.157 Request code: 3")
* 2014-04-09 12:13:18.315 (EScpSkipFile) Cannot create remote file '/sap_imports/p01/sintel/in/test.txt'.
* 2014-04-09 12:13:18.315 Permission denied.
* 2014-04-09 12:13:18.316 Error code: 3
* 2014-04-09 12:13:18.316 Error message from server: Permission denied
* 2014-04-09 12:13:18.316 Request code: 3
. 2014-04-09 12:13:18.316 Listing directory "/sap_imports/p01/sintel/in".
> 2014-04-09 12:13:18.316 Type: SSH_FXP_OPENDIR, Size: 35, Number: 66827
< 2014-04-09 12:13:18.318 Type: SSH_FXP_HANDLE, Size: 13, Number: 66827
> 2014-04-09 12:13:18.318 Type: SSH_FXP_READDIR, Size: 13, Number: 67084
< 2014-04-09 12:13:18.321 Type: SSH_FXP_NAME, Size: 207, Number: 67084
> 2014-04-09 12:13:18.321 Type: SSH_FXP_READDIR, Size: 13, Number: 67340
< 2014-04-09 12:13:18.323 Type: SSH_FXP_STATUS, Size: 28, Number: 67340
< 2014-04-09 12:13:18.323 Status code: 1
> 2014-04-09 12:13:18.323 Type: SSH_FXP_CLOSE, Size: 13, Number: 67588
. 2014-04-09 12:13:18.323 ..;d;4096;2014-04-09T16:12:02.000Z;"root" [0];"sapsys" [203];rwxr-xr-x;0[/code]
drwxr-xr-x 2 root system 4096 Apr 09 16:19 in