GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: man pages
Operating System - HP-UX
1855749
Members
5497
Online
104103
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2000 05:24 AM
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2000 05:35 AM
08-28-2000 05:35 AM
Solution
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2000 05:43 AM
08-28-2000 05:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2000 05:44 AM
08-28-2000 05:44 AM
Re: man pages
You could also unset MANPATH in .profile...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2000 02:39 PM
08-28-2000 02:39 PM
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.
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP