Is it safe to remove rpcbind?


I have a fresh Debian 8.1 x64 droplet and I noticed that rpcbind is enabled listening on port 111.

Is it safe to completely remove it (rpcbind) along with nfs-common package ?

Is it needed by Digital Ocean in someway I may not be aware of?

Thank you, any help appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It is safe.

Debian installs (not just digital Ocean) default to running rpcbind and rpc.statd

Both of these services are only needed if you plan on using NFS for file sharing. They are otherwise unneeded and are a potential security risk.

You can disable them by running the following commands as root: update-rc.d nfs-common disable update-rc.d rpcbind disable

That will prevent them from starting at boot, but they will continue if already running until you reboot or stop them yourself.

for systemd: get root stop the service: #systemctl stop rpcbind.service disable the service:#systemctl disable rpcbind.service

Thank you. Very helpful!