[
https://issues.apache.org/jira/browse/SSHD-1335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767695#comment-17767695
]
Thomas Wolf commented on SSHD-1335:
-----------------------------------
It depends. If the user should only be able to access {{/A/B}} via SFTP, then
just set that as his home directory in
{{{}VirtualFileSystemFactory.setUserHomeDir(){}}}. It does not have to be the
user's real home directory in the operating system.
But if the user should also be able to access {{/A}} via SFTP, then what you
want is not doable server-side. Commands like {{cd}} or {{pwd}} must be
implemented client-side; and doing an initial "{{{}cd B{}}}" after log-in would
also have to happen in the client.
> Add landing directory feature
> -----------------------------
>
> Key: SSHD-1335
> URL: https://issues.apache.org/jira/browse/SSHD-1335
> Project: MINA SSHD
> Issue Type: Improvement
> Reporter: Ananth kumar
> Priority: Critical
>
> Currently, we are able to set only the home directory using the
> VirtualFileSystemFactory class.
> Our requirement is to land the user in the subdirectories of the home
> directory.
> Is some feature can be provided to land the user in a different directory?
> Eg:
> The User A has the home directory as /A. But the User A should be landed into
> the /A/B directory after login
> Current scenario:
> {code:java}
> sftp> pwd
> /{code}
> required Scenario:
> {code:java}
> sftp> pwd
> /B {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]