Details
-
Improvement
-
Status: Resolved
-
Blocker
-
Resolution: Duplicate
-
None
-
None
-
None
-
Java 1.8, Linux, Solaris.
-
Important
Description
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.
is there any better way to handle sudo user related command execution, file upload and downloads with Apachemina?
Thanks,
Siva
Attachments
Attachments
Issue Links
- duplicates
-
SSHD-1268 sudo su non interactively entering a password
- Resolved