- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- MAN not working
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- 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
03-27-2002 02:46 AM
03-27-2002 02:46 AM
When I try to access help on anything I am getting the following error message :
[/]> man lp
sh: man: Execute permission denied.
I am logged in as root. But I have discovered that if I run > su
it then lets me access man pages.
The MANPATH variable is set correctly.
Thanks you for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:52 AM
03-27-2002 02:52 AM
Re: MAN not working
Sounds like a path problem.
Check roots env.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:58 AM
03-27-2002 02:58 AM
Re: MAN not working
Check with "which man" which file is looked up first in your PATH.
HtH,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:59 AM
03-27-2002 02:59 AM
Re: MAN not working
login as root
whence man
You will probably find a non executable file called man.
su uses another path
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:00 AM
03-27-2002 03:00 AM
Re: MAN not working
MANPATH=/usr/share/man/%:/usr/share/man:/usr/contrib/man/%:/usr/contrib/sr/local/man/%:/usr/local/man:/opt/pd/share/man/%:/opt/pd/share/man:/optman/%L:/opt/perf/man:/share/man:/opt/hpxt/enware/man:/opt/hparray/share/maopt/hparray/share/man:/opt/graphics/starbase/share/man:/opt/audio/share/ma/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/lan/share/man/%L:/opt/langtools/share/man:/opt/video/share/man:/opt/videoout/man:/opt/imake/man:/opt/networker/man
When i su, the variable is exactly the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:05 AM
03-27-2002 03:05 AM
Re: MAN not working
Hi folks, which man shows the following
root : /usr2/sgmbin/man
su : /usr/bin/man
Do I need to change root to /usr/bin/man??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:08 AM
03-27-2002 03:08 AM
Re: MAN not working
Try this :-
/usr/bin/man man
Does it bing up the man on man?
If so then you have a file called man in the path before /usr/bin/man, do a find from /.
find . -name man -print | more
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:09 AM
03-27-2002 03:09 AM
Re: MAN not working
YES to your question.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:13 AM
03-27-2002 03:13 AM
SolutionAnother option is to add an alias to the shell profiles for /usr/bin/man, i.e
alias man='/usr/bin/man'
Good Luck,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:20 AM
03-27-2002 03:20 AM
Re: MAN not working
Where could the /usr2/sgmbin/man be set from - it isn't included in the MANPATH variable?
How can I get 'which man' from root to show /usr/bin/man?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:23 AM
03-27-2002 03:23 AM
Re: MAN not working
As is know if a command is not working because of PATH problem it should give "No manual entry for ls (command)".
use the command " find / -name man | xargs ls -l | pg" to see the permissions of man related files. all these files should grant executable permission to (owner,group and others).
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:30 AM
03-27-2002 03:30 AM
Re: MAN not working
-r-xr-xr-x 1 bin bin 24576 Jun 10 1996 /usr/bin/man
-rwxrwxrwx 1 root sys 10240 Nov 22 14:25 /usr2/sgmbin/man
I'm still not sure how to get "which man" to change to /usr/bin/man for root.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:34 AM
03-27-2002 03:34 AM
Re: MAN not working
Have a look at /etc/MANPATH and remove usr2 from it.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:35 AM
03-27-2002 03:35 AM
Re: MAN not working
/usr2/sgmbin/man is included in the PATH variable. You have to reorganize PATH.
Look at Marks suggestion. I'd prefer the first method.
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 03:35 AM
03-27-2002 03:35 AM
Re: MAN not working
Also check /etc/profile for the path info.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 04:25 AM
03-27-2002 04:25 AM
Re: MAN not working
Thanks everyone for all your help.
/usr2/sgm is not defined in /etc/profile - so I'm trying to find it elsewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 04:30 AM
03-27-2002 04:30 AM
Re: MAN not working
Or any script you start from there?
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 05:25 AM
03-27-2002 05:25 AM
Re: MAN not working
Check /etc/PATH
Mark