Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1298

password less sudo user commands execution and file.

    XMLWordPrintableJSON

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

        1. image-2022-09-23-18-01-38-617.png
          12 kB
          sivaprasad
        2. image-2022-09-23-18-02-25-225.png
          13 kB
          sivaprasad
        3. image-2022-09-23-18-04-29-364.png
          23 kB
          sivaprasad
        4. image-2022-09-27-19-34-06-130.png
          3 kB
          sivaprasad
        5. image-2022-09-28-18-57-02-354.png
          6 kB
          sivaprasad
        6. image-2022-09-28-18-59-16-962.png
          4 kB
          sivaprasad
        7. image-2022-09-28-19-05-00-814.png
          27 kB
          sivaprasad
        8. image-2022-09-28-19-12-17-243.png
          11 kB
          sivaprasad
        9. image-2022-09-29-18-52-06-070.png
          92 kB
          sivaprasad
        10. image-2022-10-19-15-32-21-146.png
          37 kB
          sivaprasad

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sivaprasad sivaprasad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: