nisserver-plugin-defs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nisserver-plugin-defs: command not found
or when using sudo you get the following error message
sudo: nisserver-plugin-defs: command not found
Solutions to nisserver-plugin-defs: command not found
How To Fix nisserver-plugin-defs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nisserver-plugin-defs is provided by slapi-nis package.
slapi-nis is:
This package provides two plugins for Red Hat and 389 Directory Server.
The NIS Server plugin allows the directory server to act as a NIS server for clients, dynamically generating and updating NIS maps according to its configuration and the contents of the DIT, and serving the results to clients using the NIS protocol as if it were an ordinary NIS server.
The Schema Compatibility plugin allows the directory server to provide an alternate view of entries stored in part of the DIT, optionally adding, dropping, or renaming attribute values, and optionally retrieving values for attributes from multiple entries in the tree.
To fix this problem, we can install more using the command below.
sudo apt-get -y install slapi-nis
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install slapi-nis.
sudo apt -y install slapi-nis
Or if you have aptitude installed you can use the following command.
sudo aptitude install slapi-nis
Summary
In this tutorial we learn how to fix nisserver-plugin-defs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.