- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- where is my man page?
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
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
08-11-2004 01:28 AM
08-11-2004 01:28 AM
$ man chmod
No matches for column name -x
$ echo $MANPATH
/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/samba/man://opt/perl/man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/audio/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt/hpnpl//man:/opt/lsof/man:/opt/rexx/man
Same result for man 1 chmod.
man 2 chmod (system call) gives the man page OK.
man on various other commands seems to be OK.
Any ideas what's wrong and how to fix it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:33 AM
08-11-2004 01:33 AM
Re: where is my man page?
Do you have it?? I meas accidental delete etc??? IF you have, does the man path returned from above command in your MANPATH??
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:33 AM
08-11-2004 01:33 AM
Re: where is my man page?
What happens if you try:
find /usr/share/man -name chmod*
/usr/share/man/cat1.Z/chmod.1
/usr/share/man/man1.Z/chmod.1
/usr/share/man/man2.Z/chmod.2
/usr/share/man/ja_JP.eucJP/man1.Z/chmod.1
/usr/share/man/ja_JP.eucJP/man2.Z/chmod.2
/usr/share/man/ja_JP.SJIS/man1.Z/chmod.1
/usr/share/man/ja_JP.SJIS/man2.Z/chmod.2
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:34 AM
08-11-2004 01:34 AM
Re: where is my man page?
catman -w
chmod is on all my systems as a man page. Did you check the obvious problem as in the actual file is missing?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:45 AM
08-11-2004 01:45 AM
Re: where is my man page?
chmod: /sbin/chmod /usr/bin/chmod /usr/share/man/man1.Z/chmod.1 /usr/share/man/man2.Z/chmod.2
$ cd /usr/share/man
$ find . -name chmod*
./cat1.Z/chmod.1
./cat2.Z/chmod.2
./man1.Z/chmod.1
./man2.Z/chmod.2
Hmmm... lets look at the files:
$ find . -name chmod* | xargs -i ll {}
-rw-rw-rw- 1 mc2000 devamarta 39 Dec 19 2002 ./cat1.Z/chmod.1
-rw-rw-rw- 2 root sys 4373 Jan 24 2003 ./cat2.Z/chmod.2
-r--r--r-- 1 bin bin 4571 Nov 7 1997 ./man1.Z/chmod.1
-r--r--r-- 2 bin bin 3419 Oct 27 1997 ./man2.Z/chmod.2
Somehow the man page has become owned or overwritten by one of my users, and it has 666 perms, along with chmod.2 !!!!!!!!!!!!!!
Ironically he was the one that complained about it.
We never have anything to do with changing manpages and cannot think of anything in the past that I or my fellow sysadmins could have done to change it.
Could something have caused a corruption to the file as it was being unpacked for him to view it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 01:52 AM
08-11-2004 01:52 AM
Re: where is my man page?
find /usr/share/man -name chmod* | xargs -i ll {}
-rw-rw-rw- 1 plr support 5814 Aug 11 09:31 /usr/share/man/cat1.Z/chmod.1
-r--r--r-- 1 bin bin 4777 Nov 14 2000 /usr/share/man/man1.Z/chmod.1
-r--r--r-- 2 bin bin 3923 Nov 14 2000 /usr/share/man/man2.Z/chmod.2
The cat1.Z one is owned by me. I'll check on another box.
On other boxes, it's owned by root with the same permissions and stays that way even after I do a "man chmod".
What happens if you try fixing the ownership back to root?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 02:17 AM
08-11-2004 02:17 AM
Re: where is my man page?
I copied the file in from another system (same os level) and it is fine now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2004 06:00 AM
08-11-2004 06:00 AM
Re: where is my man page?
Since nothing but text files exist iin this directory, it is a fairly low risk. But for a truly paranoid server, you can remove all the cat*.Z directories (and their contents). Now, every man page request will say "formatting...please wait" and no 666/777 permissions will be found. Use the values in /etc/MANPATH to locate all the active man page directories.
Bill Hassell, sysadmin