Operating System - HP-UX
1752271 Members
4362 Online
108786 Solutions
New Discussion юеВ

Re: sudo problem in Hp-ux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

sudo problem in Hp-ux

Hi

sudo is installed In my hp-ux server.

I checked below using below command.

root@lgapps:/root > swlist -l product | grep -i sudo
sudo 1.6.6 sudo


But the problem is i am not able to execute "visudo" "vi /usr/local/etc/sudoers"

Ex:

root@lgapps:/root > visudo
su: visudo: not found.

How to solve this problem.

11 REPLIES 11
smatador
Honored Contributor

Re: sudo problem in Hp-ux

Hi,
maybe an issue with the path.
if
# which visudo
no visudo in ....
# swlist -l file sudo.1.6.6 | grep visudo
Correct you PATH
Patrick Wallek
Honored Contributor

Re: sudo problem in Hp-ux

visudo is probably j2st not in your PATH variable.

You need to figure out where 'visudo' is installed, and then add that directory to your PATH.
Pete Randall
Outstanding Contributor

Re: sudo problem in Hp-ux

Most likely, sudo is going to be installed in /usr/local, though it may be in /opt. Try running "find /opt /usr -name visudo" to find out which, then add that location to your PATH environment variable.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: sudo problem in Hp-ux

Hi

I am getting following error message.

1)swlist -l file sudo.1.6.1 | grep visudo

ERROR: Software "sudo.1.6.1" was not found on host "ad002223:/".

2) root@lgapps:/root > which visudo
no visudo in /appl/avl/bin /usr/sbin

3) I am not able to find "visudo"
smatador
Honored Contributor
Solution

Re: sudo problem in Hp-ux

Hi,
Typo error, on the first you talk about 1.6.6 not 1.6.1. Try with 1.6.6
Patrick Wallek
Honored Contributor

Re: sudo problem in Hp-ux

2) root@lgapps:/root > which visudo
no visudo in /appl/avl/bin /usr/sbin

All this is saying is that 'visudo' is not found in the 2 directories listed.

Try the 'find' command that Pete suggested. That should locate the 'visudo' program.
senthil_kumar_1
Super Advisor

Re: sudo problem in Hp-ux

Hi

I am getting following error message:

>swlist -l file sudo.1.6.6 | grep visudo
ERROR: Software "sudo.1.6.6" was not found on host "ad002223:/".
Pete Randall
Outstanding Contributor

Re: sudo problem in Hp-ux

Assuming that the sudo in question was downloaded from the Porting and Archive Center, it would be installed in /usr/local. If you look at the man page on the P&A site, it suggest running "sudo -e" which will invoke whichever editor is currently set.


Pete

Pete
smatador
Honored Contributor

Re: sudo problem in Hp-ux

Hi,
sudo.1.6.6 is a old release perhaps for 11.00.
I get it in attach for 11.00.