Thursday, January 10, 2008

HowTo: Enable PortMap on Fedora 8

Looking for portmap rpm package in Fedora 8?
How to recover and install portmap on Fedora 7 and Fedora 8?
Have you lost or uninstalled your portmap package on Fedora 7/8?
Does your NFS service handing due to deactivated portmap service?
Are you experiencing weird start up problems with your NFS?

What is Portmap?

Portmap is a security tool which prevents theft of NIS (YP), NFS and other sensitive information via the portmapper. A portmapper manages RPC connections, which are used by protocols like
NFS and NIS. The portmap package should be installed on any machine which acts as a
server for protocols using RPC.

Doing the below results on searchinf for portmap service brings out zero results.

~~~~~~~~~~~~~~~~~~~~~~~~~~~
# rpm -qa portmap
# which `portmap`
# yum install portmap
# whereis portmap
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Solution:

With old Fedora, portmap is installed from portmap package, but in Fedora 7 and Fedora 8, portmap has been replaced by RPCBind on Fedora 7 and Fedora 8.

To activate portmap service, simply
~~~~~~~~~~~~~~~~~~~~~~~~~
# service rpcbind start
# service rpcbind restart
~~~~~~~~~~~~~~~~~~~~~~~~~

To make portmap and rpcbind activate permanently between reboots,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# chkconfig --levels 35 rpcbind on
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you don't have your portmap or rpcbind installed, simply install rpcbind using yum like so
~~~~~~~~~~~~~~~~~~~~~~~~~~
# yum install rpcbind
~~~~~~~~~~~~~~~~~~~~~~~~~~

Since NFS service fails without portmap/rpcbind service being activated, try enabling your NFS service daemon now to further test the recently installed package:

~~~~~~~~~~~~~~~~~~~~~~~~~~~
# service nfs start
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enjoy.

1 comments:

Unknown said...

Thanks. That helped a lot. For some reason after Fedora update this service was lost.

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy