AMBARI-8476. Run sudo commands as sudo and sudo su ability in Resource Management (aonishuk)