1856604 Members
17689 Online
104113 Solutions
New Discussion

Re: man pages

 
SOLVED
Go to solution
Jasmin Berube
Advisor

man pages

How do i desactivate all man pages?
(HP-UX 10.20)
3 REPLIES 3
Shannon Petry
Honored Contributor
Solution

Re: man pages

I think you mean remove all man pages????

If so, dont know why you would want to, but you can just rename the directories that the files live in. This is safer than just removing the files if you or someone else descides later to re-activate man pages.
The man pages live in "/usr/share/man" and have many sub folders. Just renaming "/usr/share/man" to "/usr/share/man.old" should remove the ability to use man pages.

Best regards!
Shannon
Microsoft. When do you want a virus today?
Andy Monks
Honored Contributor

Re: man pages

You could also swremove the man pages.

Something like :-

swlist -l fileset -a name | grep "\-MAN" > /tmp/manpages

then 'check' the /tmp/manpages files to ensure that all the filesets are really man pages. It's could pick something else up. In which case edit the file.

Then :-

swremove -f /tmp/manpages
Alan Riggs
Honored Contributor

Re: man pages

As stated in the other thread, the easiest way to prevent users from accessing man pages is to unset the MANPATH variable in either /etc/profile or the individual user's .profile.

Alternatively, you would need to swremove all man page documentations and then find/remove all manpages installed by poducts that do not register with sw.