Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Quickbuild uses 'root' user to execute the script #10

Kiruthiga ·

I have a shell script in my linux box. I'm calling the script from Quickbuild. The script is just to copy the file from one server to another server. I'm getting authentication failed, connection closed message and the build is failing.

When I checked the ID that is running the script, it says 'root'. Why is quickbuild using the 'root' user to execute the script?

Below is my error message:

01:59:23,188 INFO - Executing pre-execute action...

01:59:23,200 INFO - Running step...

01:59:23,264 INFO - Checking step execute condition...

01:59:23,268 INFO - Step execute condition satisfied, executing...

01:59:23,420 INFO - Executing pre-execute action...

01:59:23,420 INFO - Running step...

01:59:23,777 INFO - uid=0(root) gid=0(root)

01:59:23,797 WARN - Must be attached to terminal for 'am I' option

01:59:23,903 INFO - Oracle Corporation SunOS 5.10 Generic Patch January 2005

01:59:23,920 INFO - uid=0(root) gid=0(root)

01:59:25,079 WARN - This system is operated by the company and may be accessed only by authorized, users for approved purposes. Access and use, or causing access and use, of, this system by anyone other than as permitted by the company are strictly, prohibited by the company and by law and may subject an unauthorized user, including an unauthorized employee, to criminal or civil penalties as well as, company initiated disciplinary proceedings. The use of this system may be , monitored and recorded by the company. Anyone accessing this system, consents to such monitoring and recording. Information obtained by the company, through such monitoring and recording may be disclosed to persons within or, outside the company.

01:59:25,330 WARN - Permission denied, please try again.

01:59:25,336 WARN - Received disconnect from remotehost port 22:2: Too many authentication failures

01:59:25,336 WARN - Authentication failed.

01:59:25,336 WARN - lost connection

01:59:25,341 INFO - Executing post-execute action...

01:59:25,342 ERROR - Step 'master>scpTest' is failed: Failed to run command:
#!/bin/bash
id
who am i
sudo su - alertdev
id
scp /export/home/alertdev/abc alertop@aldev1bsvr01:/opt/app/alert/phoenix/.
Command return code: 1
Command error output: Must be attached to terminal for 'am I' option
This system is operated by the company and may be accessed only by authorized, users for approved purposes. Access and use, or causing access and use, of, this system by anyone other than as permitted by the company are strictly, prohibited by the company and by law and may subject an unauthorized user, including an unauthorized employee, to criminal or civil penalties as well as, company initiated disciplinary proceedings. The use of this system may be , monitored and recorded by the company. Anyone accessing this system, consents to such monitoring and recording. Information obtained by the company, through such monitoring and recording may be disclosed to persons within or, outside the company.
Permission denied, please try again.
Received disconnect from 10.102.184.94 port 22:2: Too many authentication failures
Authentication failed.
lost connection

  • replies 1
  • views 647
  • stars 0
robinshen ADMIN ·

Please make sure to configure QuickBuild running as particular user by changing the property "RUN_AS_USER" in "bin/agent.sh" (or server.sh for QB server process). After changing this, please re-install the service, change relevant directory/file ownership to under the new user, and restart the service.