Using sudo, child background process doesn't display output

Solution Verified - Updated -

Issue

When trying to run following script /tmp/parent.sh:

#!/bin/bash
/tmp/child.sh &

where /tmp/child.sh reads:

#!/bin/bash
echo child output

via sudo:

sudo -u test /tmp/parent.sh

no output is printed.

Environment

  • Red Hat Enterprise Linux (RHEL) 6.5
  • sudo-1.8.6p3-12.el6

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