Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2017, 07:19 AM
jjx jjx is offline
Registered User
 
Join Date: Sep 2008
Posts: 37
Vshell home directory

I am creating an internal DB user
I define as Virtual Root "D:\SFTP_Root\User1"
Alias: "Folder1"

So when someone logins, a direcorty "Folder1" appears" inside the root of the SFTP. All user actions must be limited inside "Folder1"

- Is there a way to allow users access the / of the Virtual Root ?

- If I define the following:
Virtual Host: "D:\SFTP_Root\"
Alias: "User1"
still I cannot access the D:\SFTP_Root\User1 on the disk

Any ideas?
Thank you
Reply With Quote
  #2  
Old 04-12-2017, 10:22 AM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 806
Hi jjx.

When you ask if there is a way to allow users access to the
/ of the virtual root, what exactly do you mean?

Which client are you using to connect to VShell to test your
virtual roots?

Some clients, like SecureFX, have the ability to display
multiple virtual roots, so if your user has been added to
the "Folder1" root and the "User1" root, they would both
appear as hard drives when you connect:

Folder1:\
User1:\

I would expect that if you have access to both roots,
accessing the "User1" root would give you access to
D:\SFTP_Root and everything inside of it, assuming
that the NTFS permissions for the System User that
you used for the VShell User Database allows you
access to all subfolders and files.

Command line clients don't have the ability to display
multiple virtual roots the way that SecureFX can. So if you
have created multiple virtual roots for a user who connects
with a command line client, you might want to enable the
"Use single virtual root" option. When that is enabled, the
user will be placed into the "virtual" root, which is just a
top level placeholder called "/". It is not a directory, so
when you are placed in "/", you will have to change
directories before you can transfer files. Being placed
into "/" will allow you to get a file listing to see each of
your virtual roots.

Does this help you to accomplish what you want?

JJH
Reply With Quote
  #3  
Old 04-13-2017, 01:20 AM
jjx jjx is offline
Registered User
 
Join Date: Sep 2008
Posts: 37
I am using FlashFXP client to do the tests.
I am trying to save backup files from Cisco Firepower.
"Use single virtual root" is enabled.

What I see when I login from flashfxp:



What I have configured on VShell:



Alias "Firepower" is added to the root.
All actions (file creation, edit, etc) should be done inside this direcotry.

What I want to accomplish:

I want "/" to be the root and be full accessible for the user.
Is this possible?
Attached Images
File Type: png Snap1.png (5.4 KB, 548 views)
File Type: png Snap2.png (49.8 KB, 528 views)
Reply With Quote
  #4  
Old 04-13-2017, 09:46 AM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 806
Thanks for providing the screenshots. I'll need more information to understand the way things are currently configured and what problem you are trying to solve. I see that you currently have three virtual roots configured.

Do you want the user named "Firepower" to have access to all three roots?

Are there other users that have been added to the roots you have created for AVAYA and CiscoConfigs?

When you say that you want "/" to be the root, are you saying that when the user "Firepower" types /, it should be equivalent to the Firepower folder?

If so, if the user named "Firepower" has been added to more than one root, what should "/" mean in that case?

If each user has only been added to one root, should / mean the same thing for each of those users (their own root folder)?

If you want it to be the same for every user, are you sure that the users who are currently connecting to VShell don't have an automated task that might get broken by changing the way that "/" is treated?

JJH
Reply With Quote
  #5  
Old 04-13-2017, 03:09 PM
jjx jjx is offline
Registered User
 
Join Date: Sep 2008
Posts: 37
Do you want the user named "Firepower" to have access to all three roots?
No, each user should be locked in each own personal directory.

Are there other users that have been added to the roots you have created for AVAYA and CiscoConfigs?
Yes.

When you say that you want "/" to be the root, are you saying that when the user "Firepower" types /, it should be equivalent to the Firepower folder?

When "firepower" user logins, it should be redirected to "/" which corresponds to
"D:\sftp_root\Firepower" locally. I don't want to have an extra "Firepower" inside when connected though the client!


If each user has only been added to one root, should / mean the same thing for each of those users (their own root folder)?
Yes, each user access a different directory.
Reply With Quote
  #6  
Old 04-13-2017, 04:59 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 806
In that case, there is a registry setting that you can set which should give you the desired behavior. If you run regedit, you can look for the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\VanDyke\VShell\Server

Then you can enable the following setting by changing the DWORD value to "1":

"SFTP Enable Pre 2.6 Virtual Root Compatibility"

Does that give you the behavior you want?

Thanks
JJH
Reply With Quote
  #7  
Old 04-23-2017, 07:11 AM
jjx jjx is offline
Registered User
 
Join Date: Sep 2008
Posts: 37
I will try the above change during this week and I will post an update

Thank you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:36 PM.