ksmbd.addshare command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ksmbd.addshare: command not found
or when using sudo you get the following error message
sudo: ksmbd.addshare: command not found
Solutions to ksmbd.addshare: command not found
How To Fix ksmbd.addshare: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ksmbd.addshare is provided by ksmbd-tools package.
ksmbd-tools is:
This is an alternative implementation of the CIFS/SMB3 control utilities. The ksmbd part is focused on delivering speedy SMB3 file serving performance and also supporting features more implemented in kernel-space, like RDMA support for SMB Direct. KSMBD doesn’t aim to be as comprehensive as well known Samba for CIFS/SMB support in user-space but is just focused on the performance and kernel feature angle.
The tools can either be used with the kernel module built separately or right from in the Linux kernel.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ksmbd-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ksmbd-tools.
sudo apt -y install ksmbd-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install ksmbd-tools
Summary
In this tutorial we learn how to fix ksmbd.addshare command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.