Running remote jobs as sudo user fails with the error 'Error initializing command: RuntimeError - Failed to change to effective user, exit code: 1'

Solution Verified - Updated -

Issue

  • Remote jobs fails with the below error while running it as a sudo user.
Error:
Error initializing command: RuntimeError - Failed to change to effective user, exit code: 1

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content