autodir command not found

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

Introduction

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

autodir: command not found

or when using sudo you get the following error message

sudo: autodir: command not found

Solutions to autodir: command not found

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

In Ubuntu autodir is provided by autodir package.

autodir is:

A modular and thread-enabled tool to create and/or mounting and managing automagically and transparently user/group home directories, on demand.

It can work with any authentication framework (e.g. system files, NIS, LDAP or SQL) and does not require PAM, which is a required feature for session-less service such as smtp servers.

Automounter version 4 (autofs4) has to be enabled when compiling the kernel. Debian packaged kernels have it enabled as module.

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

sudo apt-get -y install autodir

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

You can also use apt command to install autodir.

sudo apt -y install autodir

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

sudo aptitude install autodir

Summary

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