R RCW IT TRAINING ← Back to all labs & tools

Free Utility · Windows · Linux Administration

RCW-NixPriv

A portable Windows tool that configures sudo users and their delegated rights on your Linux servers over SSH — entirely through guided prompts. No editing /etc/sudoers by hand, no risk of a typo locking you out of your own box.

Portable · no installer No Python needed visudo-validated Backup & rollback Risk scanner Free
Download for WindowsRCW-NixPriv.exe · 16.5 MB · 64-bit

Version 1.0.0 · Windows 10/11 (x64)

SHA-256
abd718812c93eee34ec256979ce6cd920373cdfc4d70a873dc311fd4069a549e

What it looks like

Every sudo rule on the host, in one grid — colour-coded by how dangerous it is.

RCW-NixPriv delegations list showing sudo rules with risk levels

Live sudo rules pulled from the host, graded low / medium / high risk

RCW-NixPriv grant sudo rights wizard, step 1 of 6

The grant wizard — one plain-English question per screen

Why you'd use it

Hand-editing sudoers is where good admins get burned. This removes the sharp edges.

SAFE

You cannot lock yourself out

Nothing is written until visudo -cf accepts the syntax. A malformed rule is rejected before it ever touches the live file.

PROMPTS

Guided, not hand-typed

Who gets it, what they may run, as which account, with or without a password — answered one question at a time. Users and groups are read live from the host.

LEAST PRIV

Per-command delegation

Let someone restart nginx without handing them root. Ten ready-made task packs (services, logs, packages, network, users, Docker…) you can trim.

AUDIT

Risk scanner

Flags command lists that quietly allow a root shell — editors, find, interpreters, tar, dd, su, chmod.

ROLLBACK

Every change is snapshotted

The previous policy is copied to /var/backups/rcw-nixpriv before each apply. Restore any snapshot in one click.

CLEAN

Touches one file only

Everything lands in /etc/sudoers.d/rcw-nixpriv. Your main /etc/sudoers and other drop-ins are never modified.

Get started in four steps

Nothing to install on Windows, nothing to install on the server.

Download and run RCW-NixPriv.exe It is a single portable file. Keep it on a USB stick or your admin jump box.
Connect to host Address, SSH port, login user, then a password or private key. Your sudo password if the account needs one.
Grant sudo rights Answer the wizard. Review the exact sudoers line and its risk verdict before anything is staged.
Validate & Apply The file is syntax-checked, the old one is backed up, and the new policy goes live as root:root 0440.

What it writes

Readable, commented, and reversible — here is a real example the wizard produces.

# Managed by RCW-NixPriv - do not edit by hand

# --- Command aliases ---
Cmnd_Alias WEB_OPS = /usr/bin/systemctl restart nginx, /usr/sbin/nginx -t

# --- Defaults ---
Defaults log_input, log_output
Defaults timestamp_timeout=15

# --- Delegations ---
# TICKET-4471 web team
%webops ALL=(root) NOEXEC: WEB_OPS
deploybot ALL=(root) NOPASSWD: /usr/bin/systemctl restart myapp

Before you run it

Windows SmartScreen will warn you on first launch

The download is not code-signed, so Windows shows “Windows protected your PC”. Choose More info → Run anyway. Verify the SHA-256 above first if you want to be certain the file is intact. Some antivirus engines also flag single-file Python builds heuristically — that is a known false positive pattern for this packaging method.

🔒
Test on a non-production host first

This tool changes who can become root on your server. That deserves the same care as any other privileged change — try it on a lab VM, confirm the result with sudo -l -U username, then use it in anger.

Requirements & details

WindowsWindows 10 or 11, 64-bit. No installer, no Python, no dependencies.
Target serverOpenSSH, sudo with an @includedir /etc/sudoers.d line (default on Debian, Ubuntu, RHEL, Rocky, Alma, SUSE, Amazon Linux) and an account that can reach root.
AuthenticationPassword or private key — RSA, Ed25519, ECDSA, DSA. Custom SSH port supported.
Stored on your PCHost and user name only, in %APPDATA%\RCW-NixPriv\profiles.json. Passwords are never saved.
Version1.0.0
LicenceMIT — free to use, including at work.