How to define sudo commands in sudo list

  • KM01445113
  • 19-Mar-2015
  • 19-Mar-2015

Summary

This will give the correct way to define the sudo commands

Error

syntax error at -e line 3, near "="
Execution of -e aborted due to compilation errors.

Cause

When runing Weblogic by Shell job, or any other job that uses the shell for discovery, most of the times you will need to add the sudo commands for the UNIX machines. The commands have to be define both on the Unix and UCMDB side in order for discover to work properly.

Sometime, all the commands are added by just using the "*"(star) but this will fail a lot of the times.

Fix

In order to correctly input this, you will need to enter the path and the list of commands like this (example):

*perl, *ps, *dmidecode, etc