You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Thomas Wolf (Jira)" <ji...@apache.org> on 2022/09/28 05:49:00 UTC

[jira] [Comment Edited] (SSHD-1298) password less sudo user commands execution and file.

    [ https://issues.apache.org/jira/browse/SSHD-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610275#comment-17610275 ] 

Thomas Wolf edited comment on SSHD-1298 at 9/28/22 5:48 AM:
------------------------------------------------------------

BTW, you can paste text and format it as code in Jira. (It's in the "+" drop-down menu.) That's should be easier for you than taking screenshots, and it'd be more convenient for everybody else.

 


was (Author: wolft):
BTW, you can paste test and format it as code in Jira. (It's in the "+" drop-down menu.) That's should be easier for you than taking screenshots, and it'd be more convenient for everybody else.

 

> password less sudo user commands execution and file.
> ----------------------------------------------------
>
>                 Key: SSHD-1298
>                 URL: https://issues.apache.org/jira/browse/SSHD-1298
>             Project: MINA SSHD
>          Issue Type: Improvement
>         Environment: Java 1.8, Linux, Solaris.
>            Reporter: sivaprasad
>            Priority: Blocker
>         Attachments: image-2022-09-23-18-01-38-617.png, image-2022-09-23-18-02-25-225.png, image-2022-09-23-18-04-29-364.png, image-2022-09-27-19-34-06-130.png
>
>
> Hi Team,
> To establish the Session connection, I am using a regular username(siva) and password(siva).  once a session is created successfully, by using the same session I need to check out another sudo user 'oracle' to execute a command on Linux or Solaris, why is because this oracle user(passwordless access for this user) has those permissions to execute commands. here i  attached the sample code i am using now. but it is working in some cases only. sometimes commands are giving 1 as existstatus and the error stream throws an error message even though I allocated pty to the session properly. someone, please help me how to overcome this. 
> !image-2022-09-23-18-04-29-364.png!
>  
> !image-2022-09-23-18-01-38-617.png!
>  
> !image-2022-09-23-18-02-25-225.png!
>  
> is there any better way to handle sudo user related command execution, file upload and downloads with Apachemina?
>  
> Thanks,
> Siva
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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