[ https://issues.apache.org/jira/browse/SSHD-1335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766877#comment-17766877 ]
Thomas Wolf commented on SSHD-1335: ----------------------------------- AFAIK there is no server-side concept of a "current working directory" in SFTP. You could set the user's SFTP root directory (his "SFTP home directory") to {{/A/B}} in the {{{}VirtualFileSystemFactory{}}}, but then the the SFTP path "/" would refer to {{{}/A/B{}}}, and {{pwd}} on the client would still show "/" after login. > 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: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org