- Log on as the root user.
- Run the following command to open the sudoers file:visudo
- Add the appropriate line for the operating system to the sudoers file:
Operating System File Name AIX ALL ALL=(root) NOPASSWD: /usr/sbin/installp *,/usr/bin/lslpp * Linux (CentOS, OEL, RedHat, SLES) ALL ALL=(root) NOPASSWD: /bin/rpm -ivh *,/bin/rpm -e * Linux (Ubuntu) Ubuntu ALL ALL=(root) NOPASSWD: /bin/dpkg -i *,/bin/dpkg -r*,/bin/dpkg -P *