Install sudo Package
An XCCDF Rule
Description
The sudo
package can be installed with the following command:
$ sudo yum install sudo
Rationale
sudo
is a program designed to allow a system administrator to give
limited root privileges to users and log root activity. The basic philosophy
is to give as few privileges as possible but still allow system users to
get their work done.
- ID
- xccdf_org.ssgproject.content_rule_package_sudo_installed
- Severity
- Medium
- References
- Updated
Remediation - Puppet
include install_sudo
class install_sudo {
package { 'sudo':
ensure => 'installed',
}
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-82214-8
- NIST-800-53-CM-6(a)
Remediation - script:kickstart
package install sudo
Remediation - OS Build Blueprint
[[packages]]
name = "sudo"
version = "*"
Remediation - script:bootc
dnf install sudo
Remediation - Anaconda Pre-Install Instructions
package --add=sudo
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
if ! rpm -q --quiet "sudo" ; then
yum install -y "sudo"
fi