checkgid command not found

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

Introduction

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

checkgid: command not found

or when using sudo you get the following error message

sudo: checkgid: command not found

Solutions to checkgid: command not found

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

In Ubuntu checkgid is provided by apache2-utils package.

apache2-utils is:

Provides some add-on programs useful for any web server. These include:

  • ab (Apache benchmark tool)
  • fcgistarter (Start a FastCGI program)
  • logresolve (Resolve IP addresses to hostnames in logfiles)
  • htpasswd (Manipulate basic authentication files)
  • htdigest (Manipulate digest authentication files)
  • htdbm (Manipulate basic authentication files in DBM format, using APR)
  • htcacheclean (Clean up the disk cache)
  • rotatelogs (Periodically stop writing to a logfile and open a new one)
  • split-logfile (Split a single log including multiple vhosts)
  • checkgid (Checks whether the caller can setgid to the specified group)
  • check_forensic (Extract mod_log_forensic output from Apache log files)
  • httxt2dbm (Generate dbm files for use with RewriteMap)

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

sudo apt-get -y install apache2-utils

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

You can also use apt command to install apache2-utils.

sudo apt -y install apache2-utils

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

sudo aptitude install apache2-utils

Summary

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