From dev-return-38437-apmail-mina-dev-archive=mina.apache.org@mina.apache.org Wed Oct 21 19:43:05 2020 Return-Path: X-Original-To: apmail-mina-dev-archive@www.apache.org Delivered-To: apmail-mina-dev-archive@www.apache.org Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by minotaur.apache.org (Postfix) with ESMTP id DC7371AF91 for ; Wed, 21 Oct 2020 19:43:04 +0000 (UTC) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 1F5C9652B2 for ; Wed, 21 Oct 2020 19:43:03 +0000 (UTC) Received: (qmail 86257 invoked by uid 500); 21 Oct 2020 19:43:01 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 86174 invoked by uid 500); 21 Oct 2020 19:43:01 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@mina.apache.org Received: (qmail 86147 invoked by uid 99); 21 Oct 2020 19:43:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2020 19:43:01 +0000 Received: from jira2-he-de.apache.org (static.54.33.119.168.clients.your-server.de [168.119.33.54]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ADB8D42F86 for ; Wed, 21 Oct 2020 19:43:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 30A6BC80596 for ; Wed, 21 Oct 2020 19:43:00 +0000 (UTC) Date: Wed, 21 Oct 2020 19:43:00 +0000 (UTC) From: "Guillaume Nodet (Jira)" To: dev@mina.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SSHD-1093) Help on permissions on SCP and SFTP operations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SSHD-1093?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D17218= 548#comment-17218548 ]=20 Guillaume Nodet commented on SSHD-1093: --------------------------------------- For SFTP, you can implement either a custom [https://github.com/apache/mina= -sshd/blob/master/docs/sftp.md#sftpfilesystemaccessor]=C2=A0or a custom [ht= tps://github.com/apache/mina-sshd/blob/master/docs/sftp.md#sftpeventlistene= r,]=C2=A0depending on your exact needs. For SCP, you can implement a [https://github.com/apache/mina-sshd/blob/mast= er/docs/scp.md#scptransfereventlistener.]=C2=A0 You can also provide custom= =C2=A0ScpFileOpener and=C2=A0ScpTargetStreamResolver... =C2=A0 > Help on permissions on SCP and SFTP operations > ---------------------------------------------- > > Key: SSHD-1093 > URL: https://issues.apache.org/jira/browse/SSHD-1093 > Project: MINA SSHD > Issue Type: Question > Reporter: Susmit Sarkar > Priority: Blocker > Labels: SCP, SFTP, mina > > We were doing a proof of concept and we are stuck. The use case is before= any file operations I need to check whether the user in session is having = permissions to carry on the operations, along with that we have a logic to = check whether the command is valid or not for both SCP and SFTP. > =C2=A0 > The 2 pre-operations I am not able to perform and I am a bit confused, y= our guidance and help will be=C2=A0highly appreciated. > =C2=A0 > I am sharing the git location so it helps you guys see the code, it's a = very small maven project with FileSystem. > =C2=A0 > We are not able to understand where should we implement the hook to achi= eve the above use case > =C2=A0 > Thank you again > =C2=A0 > [https://github.com/Susmit07/sftp-poc] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org For additional commands, e-mail: dev-help@mina.apache.org