chntpw/chntpw.spec

Name: chntpw
Summary: Offline NT password and registry editor
Version: 0.0.20080526
Release: 2
License: GPL
Group: Applications/System
URL: http://home.eunet.no/~pnordahl/ntpasswd/
Description: 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.

CentOS 7 x86_64

The build could not start because the following file is missing: chntpw-source-080526.zip

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: chntpw-source-080526.zip

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $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
URL: http://home.eunet.no/~pnordahl/ntpasswd/

Source: http://home.eunet.no/pnordahl/ntpasswd/chntpw-source-%{real_version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: openssl-devel

%description
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.

%prep
%setup -n %{name}-%{real_version}

%build
%{__make} %{?_smp_mflags} CFLAGS="-DUSEOPENSSL -I. -I%{_includedir} %{optflags}" OSSLLIB="%{_libdir}"

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 chntpw %{buildroot}%{_bindir}/chntpw
%{__install} -Dp -m0755 cpnt %{buildroot}%{_bindir}/cpnt
%{__install} -Dp -m0755 reged %{buildroot}%{_bindir}/reged

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc *.txt
%{_bindir}/chntpw
%{_bindir}/cpnt
%{_bindir}/reged

%changelog
* Tue Nov 04 2008 Dag Wieers <dag@wieers.com> - 0.0.20080526-2
- Added missing cpnt and reged binaries.

* Tue Jul 29 2008 Dag Wieers <dag@wieers.com> - 0.0.20080526-1
- Updated to release 080526.

* Thu May 22 2008 Dag Wieers <dag@wieers.com> - 0.0.20070923-1
- Updated to release 070923.

* Thu Aug 19 2004 Bert de Bruijn <bert@debruijn.be> - 0.0.20040818-1
- Updated to release 040818.

* Wed Mar 31 2004 Dag Wieers <dag@wieers.com> - 0.0.20040116-2
- Cosmetic rebuild for Group-tag.

* Tue Mar 16 2004 Dag Wieers <dag@wieers.com> - 0.0.20040116-1
- Initial package. (using DAR)