1819803 Members
2987 Online
109607 Solutions
New Discussion юеВ

man not working

 
SOLVED
Go to solution
Popy
Regular Advisor

man not working

Guys,

man is nont working for my users on a 11.11 system. It is working for root user.

I set the MANPSATH and other PATh variables, same for root and all other users bbut still there no luck..Pls help

$ man man
No manual entry for man.
$ man ls
No manual entry for ls.

echo $MANPATH
/opt/ldapux/share/man:/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/ldapux/ypldapd/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/resmon/share/man/%L:/opt/gnome/man:/opt/perf/man/%L:/opt/perf/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man:/opt/graphics/common/man:/opt/perl/man:/opt/prm/man/%L:/opt/prm/man:/opt/ssh/share/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/hpnpl//man:/opt/resmon/share/man:/opt/EMCpower/share:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/share/man

echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pd/bin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/usr/sbin/diag/contrib:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/hpsmh/bin:/opt/perl/bin:/opt/prm/bin:/opt/ssh/bin:/opt/gwlm/bin:/opt/ignite/bin:/opt/hpnpl//bin:/opt/mozilla:/opt/sentinel/bin:/opt/langtools/bin:/opt/r/bin:/usr/local/bin:.

7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: man not working

Hi:

Make sure that your manpage directories ('/usr/share/man/*') allow read/execute permission for everyone.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: man not working

Shalom,

Works for root.

Does not work for others.

swlist -l file | grep ls

To get the location.

Check permissions. My guess is group and or other read permissions are not present. Compare the files to a working system and make the permissions match with chmod

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: man not working

I'm a one-language guy, so I know nothing,
but ...

> I set the MANPSATH and other PATh
> variables, same for root and all other
> users bbut still there no luck.

That sounds like a good start, but with all
those "%L"'s in MANPATH, more of the
environment makes a difference. According to
"man man", "See environ(5) for a complete
description of MANPATH." According to "man
environ":
[...]
%L The value of LC_MESSAGES.
[...]

So, what does "echo $LC_MESSAGES" say for
each user?

(If that guess doesn't help, I'd look for
other environment differences.)
Bill Hassell
Honored Contributor

Re: man not working

The man page directories and files are common targets for security auditors even though there is nothing but text in them. cd to the /usr/share/man directory. Everything with the name "cat" must be 777 (drwxrwxrwx), and everything with "man" should be 555 (dr-xr-xr-x). To find all the errors, just run the command:

swverify \*

then look at the bottom of the listing for the swjob line and run that command to get the list of errors.


Bill Hassell, sysadmin
Popy
Regular Advisor

Re: man not working

James' assumption was correct, the permissions were wrong on /usr/share/man, I remember I did a system hardening last week, looks like I went a step ahead of made things even harder :-)

Anyways, things are good now, thank you very much for all your replies. 10 points to James !!

RV
Dennis Handly
Acclaimed Contributor

Re: man not working

>Bill: everything with the name "cat" must be 777

If you don't care about the man cache performance, you can just remove the cat directories, IF their is an original copy in the man directory.
Geoff Wild
Honored Contributor

Re: man not working

Also, don't forget to do a:

catman -w

That will build the /usr/share/lib/whatis db so you can do a man -k

IE:

# man -k swap
BN_swap(3) - exchange BIGNUMs
allocate_fs_swapmap(5) - determines when swapmap structures are allocated for filesystem swap
lvlnboot(1M) - prepare LVM logical volume to be root, boot, primary swap, or dump volume
lvrmboot(1M) - remove LVM logical volume link to root, primary swap, or dump volume
makecontext, swapcontext(2) - manipulate user contexts
nswapdev(5) - maximum number of devices that can be enabled for swap
nswapfs(5) - maximum number of file systems that can be enabled for swap
pstat(), pstat_getcommandline(), pstat_getcrashdev(), pstat_getcrashinfo(), pstat_getdisk(), pstat_getdynamic(), pstat_getfile(), pstat_getfile2(), pstat_getfiledetails(), pstat_getipc(), pstat_getlocality(), pstat_getlv(), pstat_getlwp(), pstat_getmpathname(), pstat_getmsg(), pstat_getnode(), pstat_getpathname(), pstat_getpmq(), pstat_getproc(), pstat_getprocessor(), pstat_getproclocality(), pstat_getprocvm(), pstat_getpsem(), pstat_getpset(), pstat_getsem(), pstat_getshm(), pstat_getsocket(), pstat_getstable(), pstat_getstatic(), pstat_getstream(), pstat_getswap(), pstat_getvminfo()(2) - get system information
remote_nfs_swap(5) - enable swapping across NFS
swab( )(3C) - swap bytes
swapinfo(1M) - system paging space information
swapmem_on(5) - allow physical memory size to exceed the available swap space
swapon(1M) - enable device or file system for paging
swapon(2) - add swap space for interleaved paging/swapping
swchunk(5) - swap chunk size in 1 KB blocks
vxvmboot(1M) - prepare VERITAS Volume Manager volume as a root, boot, primary swap or dump volume


shows all the pages that have swap in them.


Rgds...Geoff

PS: I thought the title of this thread was quite funny - "man not working" - IE men not working....I'm suprised Rita hasn't given us what for :)
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.