tomaswolf commented on issue #406:
URL: https://github.com/apache/mina-sshd/issues/406#issuecomment-1693699285

   Take a look at 
[`SimpleAccessControlSftpEventListener.java`](https://github.com/apache/mina-sshd/blob/98ee32d612803bc63f1032c02d28e91cfc17b34d/sshd-contrib/src/main/java/org/apache/sshd/contrib/server/subsystem/sftp/SimpleAccessControlSftpEventListener.java#L44).
 That shows how this could be done. The listener has access to the 
`ServerSession`, so you should be able to find the logged-in user, and from 
that determine in your own datastructures whether to allow a particular 
operation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to