EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SimpleSFTPClient.UploadFile issue

Posted: 01/31/2011 16:29:01
by Kory Sarnelli (Standard support level)
Joined: 12/05/2008
Posts: 10

I have a client who uses VShell Server (VShell_3_6_5_615 VShell) and am using the ElSimpleSFTPClient.UploadFile method to transfer a file (in VB.net). The issue is that although I am specifiying an absolute path in the method, the file is transfered relative to the user's home directory.

For example (assuming the user's home directory is 'home' in this case):

xxx.uploadFile("c:\test.txt", "/home/test.txt")

The file winds up in /home/home/test.txt

Is there a known issue with VShell server? If so is there any suggested way to work around it?

Posted: 01/31/2011 16:47:34
by Ken Ivanov (Team)

Thank you for contacting us.

The server is likely to virtualise the part of file system visible to user, mapping user's home directory as their virtual root directory. It is a pretty common way of server setup, directed at prevention of unauthorised access by restricting users' freedom within their home directories.

Allowing users access to upper directories requires re-configuration of the server, so please contact it's administrator in this regard.
Posted: 01/31/2011 16:57:24
by Kory Sarnelli (Standard support level)
Joined: 12/05/2008
Posts: 10

Thanks for the response.

The confusing part is that if I connect with another client (FileZilla) it puts me into '/home' and I am able to browse up to the root folder '/'. However, the file I uploaded via the SimpleSFTPClient component is in '/home/home/test.txt'. So I don't think they have the server configured to use the home directory as the virtual root. Any ideas?
Posted: 01/31/2011 17:14:39
by Ken Ivanov (Team)

And does the SimpleSFTPDemo sample see the upper folders (e.g. "/")?
Posted: 01/31/2011 17:28:24
by Kory Sarnelli (Standard support level)
Joined: 12/05/2008
Posts: 10

Interesting - no, the SimpleSFTPDemo client cannot see the parent folder. What does that mean exactly?
Posted: 01/31/2011 17:39:15
by Ken Ivanov (Team)

Could you please check the values returned by the following calls right after connecting to the server:

Posted: 01/31/2011 17:53:57
by Kory Sarnelli (Standard support level)
Joined: 12/05/2008
Posts: 10

'/AffinityDrop' is the user's home directory. Note that this issue is only occuring with VShell server. The application delivers to several other SFTP servers without any issue.

>>2011.01.31 18:02:54 - RequestAbsolutePath(".") AffinityDrop:/
>>2011.01.31 18:02:54 - RequestAbsolutePath("/") AffinityDrop:/
>>2011.01.31 18:02:54 - RequestAbsolutePath("../") AffinityDrop:/
Posted: 01/31/2011 18:12:10
by Ken Ivanov (Team)

Hmm, all the symptoms show that there's no upper directory available for SFTP clients. Does FileZilla see the entire directory structure starting from the physical root ("/") directory?

BTW, is FileZilla used in SFTP mode? If it's used in FTP-over-SSL mode, different file system view may be exposed.

Would it be possible for you to provide us test access to the server? It would be the easiest way to investigate the issue.
Posted: 01/31/2011 20:38:39
by Kory Sarnelli (Standard support level)
Joined: 12/05/2008
Posts: 10

Filezilla can navigate to the upper directory and successfully list but there are no other subdirectories.

Definitely using SFTP, the server does not actually support FTPS.

Unfortunately I can't provide access to the server - it is restricted to certain IP's and I don't have any control over it.

Thanks for looking into the issue. I'm sure it has something to do with a misconfiguration on the server and I believe I can work around it. I'll let you know if I get any more info from the sys admin of the server.



Topic viewed 2232 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!