Release Automation

 View Only
  • 1.  How to run linux command with non root user

    Posted Jun 17, 2016 05:33 AM

    There is a shell script on nolio agent and need a non-root user to execute it. Since, agent runs command with root user privileges, is there a way to execute a particular command with a non-root user?



  • 2.  Re: How to run linux command with non root user

    Posted Jun 17, 2016 05:35 AM

    did you try to go to the settings tab of the action and change the executing user there?



  • 3.  Re: How to run linux command with non root user

    Posted Jun 17, 2016 08:03 AM

    Yeah I tried and when I tried to run the process, the action couldn't be initiated.



  • 4.  Re: How to run linux command with non root user

    Posted Jun 17, 2016 08:22 AM

    Can you please share your action settings?

    Did you check the requirements for running commands as another users?



  • 5.  Re: How to run linux command with non root user

    Posted Jun 18, 2016 05:11 AM

    Inputs

    Command Line String: ksh -x test.ksh <param 1> <param 2>

    Work Directory: /home/test/

     

    Settings

    Pause on failure: unchecked

    Target OS: ANY

    User name: testuser



  • 6.  Re: How to run linux command with non root user

    Posted Jun 19, 2016 01:10 AM

    Did you check the requirements document and the KB article?

    Thanks

    Jacky



  • 7.  Re: How to run linux command with non root user
    Best Answer

    Broadcom Employee
    Posted Jun 17, 2016 12:51 PM

    Hi Imran,

    The requirements that Jacky mentioned should definitely be done first. They can be found here:

    Deploy Agents - CA Release Automation - 6.1 - CA Technologies Documentatio

     

    If you experience problems after going through the requirements above then feel free to post here but also have a look at the KB article below since it lists several problems/solutions:

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1759061.aspx

     

    Regards,

    Gregg