How To Install chntpw on Fedora 34

chntpw is Change passwords in Windows SAM files

Introduction

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

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 34. In this tutorial we discuss both methods but you only need to choose one of method to install chntpw.

Install chntpw on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install chntpw

Install chntpw on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove chntpw

chntpw Package Contents on Fedora 34

/usr/bin/chntpw
/usr/bin/cpnt
/usr/bin/reged
/usr/bin/sampasswd
/usr/bin/samusrgrp
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/4ea8eab29193d87efd50d3ed2ca585aacc0108
/usr/lib/.build-id/13
/usr/lib/.build-id/13/8e1eaf7d5f4fa6a6fca742d6eaf2fdf9aec101
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/971149f41ec10435cbc05c747eb714b36747ef
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/7012bb147d38a68eadcfadab3c3f9e47b83d07
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/2b6bb310c3095fa5d40d0727f233ba2c62708c
/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 34 using yum and dnf.