1833819 Members
2753 Online
110063 Solutions
New Discussion

Re: Sudo removal

 
SOLVED
Go to solution
Karuppiah Ganesan
Occasional Advisor

Sudo removal

Hi All,

I want to remove sudo completly from the HP Unix Box - version 11.X . Does any one help me how we do this task?

Thanks in advance,

karuppiah.

3 REPLIES 3
skt_skt
Honored Contributor
Solution

Re: Sudo removal

move the /etc/sudoers which controls the sudo operation. If that does not help swremove the relevant product from IPD.
Matti_Kurkela
Honored Contributor

Re: Sudo removal

If sudo was installed using swinstall - then swremove will remove it.

If the sudo .depot package came from the Porting Archive, the files are probably in /opt/sudo (old 11.0 sudo depots) or in /usr/local/(bin|sbin|etc|man) directories (newer packaging style).

If the .depot package came from HP's Internet Express kit, the files should be located somewhere in /opt/iexpress.

Find out the location before running swremove, then inspect the location afterwards: sometimes the sudoers file is not automatically removed (as the uninstallation may be a first step of upgrading sudo, it makes no sense to wipe out sudo configuration file).

If sudo was compiled from source code, you'll need to know what destination directories were chosen by the person who compiled and installed sudo.

Fortunately, sudo has a minimal amount of components:

- the configuration file (named "sudoers")
- the "sudo" binary
- the "visudo" binary
- man pages for "sudoers", "sudo" and "visudo".

There may be some additional README files or other documentation, but all the functional parts are as listed above.

MK
MK
Karuppiah Ganesan
Occasional Advisor

Re: Sudo removal

swremove is best one.