Home > NUKM > Configuration > Sudo Setup

ReclaimNUKM Sudo Configuration

NUKM Definition: NUKM is defined by the acronym for 'Next Unit of Kill Module' as it pertains to data sanitization.

Overview

ReclaimNUKM requires elevated privileges to perform disk wiping operations. By default, this would require entering a sudo password for each operation. This configuration allows passwordless execution of the necessary commands.

⚠️ Security Considerations
IMPORTANT: This configuration grants passwordless sudo access to disk wiping commands. Only install this on systems where:

Installation

Option 1: Automated Setup (Recommended)

./setup-sudoers.sh

This will configure passwordless sudo for all necessary commands and eliminate password prompts on subsequent application launches.

Option 2: Manual Installation

  1. Copy reclaimzapper-sudoers to /etc/sudoers.d/:
    sudo cp reclaimzapper-sudoers /etc/sudoers.d/reclaimzapper
  2. Edit the file to replace username with your actual username:
    sudo nano /etc/sudoers.d/reclaimzapper
  3. Set proper permissions:
    sudo chmod 0440 /etc/sudoers.d/reclaimzapper

Commands Configured

The following commands require sudo privileges:

Core Wipe Commands

Filesystem Commands

Enterprise Drive Commands

USB & Hardware Commands

Benefits

After running the setup script, ReclaimNUKM will:

Testing

After installation, test that it works:

# This should not prompt for password
sudo dd --version
sudo sgdisk --version
sudo sg_readcap --version
sudo smartctl --version
sudo ddrescue --version

Verification

Check that the configuration is active:

sudo -l | grep NOPASSWD

Removal

To remove the configuration:

sudo rm /etc/sudoers.d/reclaimzapper

Alternative Approaches

Group-Based Configuration

For multi-user environments, create a dedicated group:

sudo groupadd diskadmin
sudo usermod -a -G diskadmin username

Then modify the sudoers file to use:

%diskadmin ALL=(ALL) NOPASSWD: /bin/dd
%diskadmin ALL=(ALL) NOPASSWD: /sbin/sgdisk
# ... etc

Temporary Elevation

Run ReclaimNUKM with sudo from the start:

sudo ./ReclaimNUKM

Troubleshooting

Still Getting Password Prompts

  1. Check the sudoers file syntax:
    sudo visudo -f /etc/sudoers.d/reclaimzapper
  2. Verify your username is correct in the file
  3. Check for syntax errors in sudoers:
    sudo visudo -c

Permission Denied Errors

Ensure the commands exist at the specified paths:

which dd sgdisk partprobe udevadm mkfs.ext4 shred

Files