Operating System - HP-UX
1832577 Members
3341 Online
110043 Solutions
New Discussion

Re: EZ man page question-EZ points

 
SOLVED
Go to solution
Kirk Reindl
Frequent Advisor

EZ man page question-EZ points

I'm attempting to view a man page for a samba command/config file: smbpasswd

when I do:
man smbpasswd

I get the manual page for smbpasswd as it relates to its config file which is:

c8mkes34_#ll /var/opt/samba/private/smbpasswd
-rw------- 1 root sys 432 Dec 27 15:32 /var/opt/samba/private/smbpasswd
c8mkes34_#

Well there is another use for smbpasswd and that is to add,delete accounts.

I'd like to view the man page for smbpasswd that deals with adding deleting accounts. I know it exists I just can't access via the man interface.

Here is some more info:

c8mkes34_#whereis smbpasswd
smbpasswd: /opt/samba/bin/smbpasswd /opt/samba/man/man5/smbpasswd.5 /opt/samba/man/man8/smbpasswd.8
c8mkes34_#

I know the one I want is smbpasswd.8 cause if I do a strings on it I can tell that it is one dealing with the program smbpasswd command. Obviously with strings the output is crumby.

Please tell me how I can view smbpasswd.8 thru the man interface.
4 REPLIES 4
John Poff
Honored Contributor

Re: EZ man page question-EZ points

Hi,

Try this:

man 8 smbpasswd


JP
Jeff Schussele
Honored Contributor

Re: EZ man page question-EZ points

Hi Kirk,

Do the following:

export MANPATH=/opt/samba/man/man8:$MANPATH
or
man 8 smbpasswd

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor
Solution

Re: EZ man page question-EZ points

There are 2 entries for smbpasswd. One entry is in section 5 of the man pages, the other (and the one you are looking for) is in section 8.

man 8 smbpasswd

The man pages are divided up into sections. man1, man2, man4, etc. If you do not specify the section, then all will be searched and you will get the first entry that the man command finds.

If you have your whereis database set up you can do a

man -k smbpasswd

and it will show each entry with the corresponding section.
man -k smbpasswd

Kirk Reindl
Frequent Advisor

Re: EZ man page question-EZ points

Closing because other forum members found me a solution.
Thanks