vi /etc/sudoers
subex ALL =(root) NOPASSWD: /usr/ccs/bin/pstack
But the respective user still is prompted for password, and even when the right password is used, the command is still not launched.
[subex@host]$sudo usr/ccs/bin/pstack 26557
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
subex is not in the sudoers file. This incident will be reported.
uname -a
HP-UX host B.11.31 U ia64 0970517552 unlimited-user license