Using sudo, child background process doesn't display output
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
