1855749 Members
5497 Online
104103 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)
4 REPLIES 4
Anthony deRito
Respected Contributor
Solution

Re: man pages

I won't ask why you need to do this... you must have a reason...

You can make sure your $MANPATH variable for all users are not defined.

MANPATH tells your man command which directories to search. However, this will not remove the ability to search in default directories which are /usr/share/man, /usr/contrib/man, and /usr/local/man.

Tony
Tim Malnati
Honored Contributor

Re: man pages

The default path for manual pages is located int the file /etc/MANPATH. Move this off somewhere and create a null file in its place. If you want selected users to still have access to the man pages, you can source the new location of the MANPATH file you moved off for that user in the $MANPATH environment variable in their .profile. Keep in mind that a lot of addon applications add their manual pages path to /etc/MANPATH, so you may need to move this data off down the street.
Victor BERRIDGE
Honored Contributor

Re: man pages

You could also unset MANPATH in .profile...
Sam Nicholls
Trusted Contributor

Re: man pages

You could do "chmod 500 /usr/bin/man" to
make the man command executable only by root.
But users can still use "nroff -man" to view
the manpages if they reall want to.

You could also adjust the contents of
/etc/MANPATH, but users can still specify
their own MANPATH settings.

The only sure way to prevent users from
reading manpages, short of deleting them,
is to either make the manpage files
themselves unreadable or any of their
parent directories unexecutable.