nmbd command not found

In this troubleshooting guide we learn how to fix nmbd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nmbd: command not found

or when using sudo you get the following error message

sudo: nmbd: command not found

Solutions to nmbd: command not found

How To Fix nmbd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nmbd is provided by samba package.

samba is:

Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as an NT4-style domain controller, and can integrate with both NT4 domains and Active Directory realms as a member server.

This package provides the components necessary to use Samba as a stand-alone file and print server or as an NT4 or Active Directory domain controller. For use in an NT4 domain or Active Directory realm, you will also need the winbind package.

This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).

To fix this problem, we can install more using the command below.

sudo apt-get -y install samba

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install samba.

sudo apt -y install samba

Or if you have aptitude installed you can use the following command.

sudo aptitude install samba

Summary

In this tutorial we learn how to fix nmbd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.