Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (53 sloc) 2.02 KB
# $Id$
# Authority: dag
# Upstream: Petter Nordahl-Hagen <pnordahl$eunet,no>
%define real_version 080526
Summary: Offline NT password and registry editor
Name: chntpw
Version: 0.0.20080526
Release: 2%{?dist}
License: GPL
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: openssl-devel
chntpw is a utility to (re)set the password of any user that has a valid
(local) account on your NT system, by modifying the crypted password in
the registrys SAM file.
You do not need to know the old password to set a new one. It detects and
offers to unlock locked or disabled out user accounts!
It works offline, that is, you have to shutdown your computer and boot off
a floppydisk or CD. The bootdisk includes stuff to access NTFS partitions
and scripts to glue the whole thing together.
%setup -n %{name}-%{real_version}
%{__make} %{?_smp_mflags} CFLAGS="-DUSEOPENSSL -I. -I%{_includedir} %{optflags}" OSSLLIB="%{_libdir}"
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 chntpw %{buildroot}%{_bindir}/chntpw
%{__install} -Dp -m0755 cpnt %{buildroot}%{_bindir}/cpnt
%{__install} -Dp -m0755 reged %{buildroot}%{_bindir}/reged
%{__rm} -rf %{buildroot}
%defattr(-, root, root, 0755)
%doc *.txt
* Tue Nov 04 2008 Dag Wieers <> - 0.0.20080526-2
- Added missing cpnt and reged binaries.
* Tue Jul 29 2008 Dag Wieers <> - 0.0.20080526-1
- Updated to release 080526.
* Thu May 22 2008 Dag Wieers <> - 0.0.20070923-1
- Updated to release 070923.
* Thu Aug 19 2004 Bert de Bruijn <> - 0.0.20040818-1
- Updated to release 040818.
* Wed Mar 31 2004 Dag Wieers <> - 0.0.20040116-2
- Cosmetic rebuild for Group-tag.
* Tue Mar 16 2004 Dag Wieers <> - 0.0.20040116-1
- Initial package. (using DAR)