Operating System - HP-UX
1753835 Members
7451 Online
108806 Solutions
New Discussion юеВ

Re: Getting "command not found" after sudo upgrade

 
John Dvorchak
Honored Contributor

Re: Getting "command not found" after sudo upgrade

Have the user type sudo -l (that is a - ell)to see what commands he can run. Then have him type the command verbatim! If the sudoers file has the full path then he must enter the full path in the sudo command.

$sudo -l
User xxxx may run the following commands on this host:
(root) NOPASSWD: /bin/rlogin *, /bin/rsh *,

for example then the user would have to run:

$sudo /bin/rlogin whateversystem
If it has wheels or a skirt, you can't afford it.
G V R Shankar
Valued Contributor

Re: Getting "command not found" after sudo upgrade

Hi,

Please relogin to the system after you have updated the PATH variable.

OR

export PATH=$PATH:/opt/dba/sudo:.

check executing the command.

Ravi.
f. halili
Trusted Contributor

Re: Getting "command not found" after sudo upgrade

thanks all.
derekh