[ https://issues.apache.org/jira/browse/SSHD-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Wolf resolved SSHD-1298. ------------------------------- Resolution: Duplicate The error messages you got tell you the problem, and how to fix it: sudo asks for a password, but there's no tty defined, but you could the {{-S}} option of sudo and feed the password via stdin. > 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-17-49-38-155.png, > 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 > > > Hi Team, > How can we execute commands by using the Sudo credentials? > example: to establish the Clientsession connection, I am using a regular > username and password. by using the same session I need to check out another > Sudo user oracle to execute a command on Linux because only an oracle 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. some times throwing some errors > !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-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org