- 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 *,/usr/sbin/mount *,/usr/sbin/umount * Linux ALL ALL=(root) NOPASSWD: /bin/rpm -ivh *,/bin/rpm -e *,/bin/mount *,/bin/umount * Solaris ALL ALL=(root) NOPASSWD: /usr/sbin/pkgadd *,/usr/sbin/pkgrm *,/sbin/mount *,/sbin/umount * HPUX ALL ALL=(root) NOPASSWD: /usr/sbin/swinstall *,/usr/sbin/swremove *,/usr/sbin/swlist *,/usr/sbin/mount *,/usr/sbin/umount *