Here is what we’re running on RHEL6.7, and it’s throwing 99 as the return code ($?)
test:/root# /sbin/runuser -s /bin/ksh - tomcat -c whoami
test:/root# echo $?
test:/root# 99
Kyle Wooten
Systems Engineer – OSE Linux Engineering
The Home Depot
– NewMarket - Atlanta
2221 Newmarket Parkway Marietta Suite 120, GA 30067
Phone: 770-433-8211, Ex. 24889 | Cell: 678-237-5506
From: Wooten, Kyle
Sent: Friday, August 28, 2015 12:52 PM
To: 'bug-coreutils@gnu.org'
Subject: Coreutils RHEL 6.7 runuser
/sbin/runuser issue on RHEL 6.7 when executing `whoami` as tomcat.
Strace –f attached.
Kyle Wooten
Systems Engineer – OSE Linux Engineering
The Home Depot – NewMarket - Atlanta
2221 Newmarket Parkway Marietta Suite 120, GA 30067
Phone: 770-433-8211, Ex. 24889 | Cell: 678-237-5506