I created an sftp connection 9.8 webMethods but i am tryng to access the directory to process some files it is throwing an error “Error opening remote file” this is due to reading the directory. The home directory does not have read write permission.To grant the permission to the “/” directory i don’t know what is the correct path .could any one help me in the same.
I configure the sftp using openssh and i tried to login through coreftp client and it is able to login now i am trying to place the .txt files to process but i am not able to place the files into the directory as it is not allowing me to do that.
Thanks for replying actually we can use any directory but I don’t know how and where to change the sftp directory if you can can please tell me how to change this root directory to my custom directory let me know.
pub.client.sftp:login
pub.client.sftp:cd (if you already have a directory under the root directory)
pub.client.sftp:chmod (provide write and read access if not)
pub.client.sftp:put
pub.client.sftp:logout
OR
To create directory
pub.client.sftp:login
pub.client.sftp:cd (if you already have a directory under the root directory)
pub.client.sftp:mkdir
pub.client.sftp:put
pub.client.sftp:logout
Pass on your sample flow package to suggest further.
when the user your are using for sftp login is configured as chroot user you will see a “/” directory which is internally mapped to the user´s home directory.
On this you can grant whatever permission you want.
But if this is not configured as a chroot user you should any configurations to modify the permissions of the “/” directory as this might render your installation vulnerable for certain things. This should be reported by security scans on the system.
Please elaborate on this and get in contact with your Unix Administrator for clarification.