How To Install chntpw on Fedora 36

In this tutorial we learn how to install chntpw in Fedora 36. chntpw is Change passwords in Windows SAM files

Introduction

In this tutorial we learn how to install chntpw on Fedora 36.

What is chntpw

This is a utility to (re)set the password of any user that has a valid (local) account on your Windows NT/2k/XP/Vista etc system. You do not need to know the old password to set a new one. It works offline, that is, you have to shutdown your computer and boot off a floppy disk or CD or another system. Will detect and offer to unlock locked or disabled out user accounts! There is also a registry editor and other registry utilities that works under Linux/Unix, and can be used for other things than password editing.

We can use yum or dnf to install chntpw on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install chntpw.

Install chntpw on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install chntpw using dnf by running the following command:

sudo dnf -y install chntpw

Install chntpw on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install chntpw using yum by running the following command:

sudo yum -y install chntpw

How To Uninstall chntpw on Fedora 36

To uninstall only the chntpw package we can use the following command:

sudo dnf remove chntpw

chntpw Package Contents on Fedora 36

/usr/bin/chntpw
/usr/bin/cpnt
/usr/bin/reged
/usr/bin/sampasswd
/usr/bin/samusrgrp
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/9150f8ba20534a3e5bc2db230a39325d4ed637
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/fb72961a93ffa0ca4515088945366d634fe54c
/usr/lib/.build-id/66
/usr/lib/.build-id/66/eeff0428c8f4c87f9a2cce33037defe0e69a0b
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/37c8da37ea35d17c20f55051c23c2cb9a6a369
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/35e0175d047980554bcb921ac007c2cfbf9c71
/usr/share/doc/chntpw
/usr/share/doc/chntpw/GPL.txt
/usr/share/doc/chntpw/HISTORY.txt
/usr/share/doc/chntpw/LGPL.txt
/usr/share/doc/chntpw/README.Dist
/usr/share/doc/chntpw/README.txt
/usr/share/doc/chntpw/WinReg.txt
/usr/share/doc/chntpw/regedit.txt
/usr/share/man/man8/chntpw.8.gz
/usr/share/man/man8/reged.8.gz
/usr/share/man/man8/sampasswd.8.gz
/usr/share/man/man8/samusrgrp.8.gz

References

Summary

In this tutorial we learn how to install chntpw on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).