|
|
f508414 |
Name: chntpw
|
|
|
f508414 |
# Version is taken from HISTORY.txt
|
|
Conrad Meyer |
247e1f8 |
Version: 1.00
|
|
|
d28d7be |
Release: 5.140201%{?dist}
|
|
|
f508414 |
Summary: Change passwords in Windows SAM files
|
|
|
f508414 |
License: GPLv2
|
|
Conrad Meyer |
247e1f8 |
URL: http://pogostick.net/~pnh/ntpasswd/
|
|
Conrad Meyer |
247e1f8 |
Source0: http://pogostick.net/~pnh/ntpasswd/chntpw-source-140201.zip
|
|
|
f508414 |
Source2: chntpw-README.Dist
|
|
Conrad Meyer |
247e1f8 |
# The man pages are borrowed from Debian
|
|
Conrad Meyer |
247e1f8 |
Source10: chntpw.8
|
|
Conrad Meyer |
247e1f8 |
Source11: reged.8
|
|
Conrad Meyer |
247e1f8 |
Source12: sampasswd.8
|
|
Conrad Meyer |
247e1f8 |
Source13: samusrgrp.8
|
|
|
f508414 |
|
|
Conrad Meyer |
fb66fe7 |
BuildRequires: gcc
|
|
|
affa7b3 |
BuildRequires: libgcrypt-devel
|
|
|
f508414 |
|
|
|
6e892e7 |
# Patches sent upstream on 2009-06-08.
|
|
Conrad Meyer |
247e1f8 |
Patch1: chntpw-140201-get_abs_path.patch
|
|
|
6e892e7 |
|
|
|
affa7b3 |
# Patch from Debian (RHBZ#504595).
|
|
Conrad Meyer |
247e1f8 |
Patch3: chntpw-140201-port-to-gcrypt-debian.patch
|
|
|
affa7b3 |
|
|
|
bf3b22a |
# Patches from Jim Meyering to improve robustness of the code.
|
|
Conrad Meyer |
fd64259 |
Patch4: chntpw-110511-robustness.patch
|
|
|
9cb3759 |
Patch5: chntpw-080526-correct-test-for-failing-open-syscall.patch
|
|
Conrad Meyer |
fd64259 |
Patch6: chntpw-110511-detect-failure-to-write-key.patch
|
|
Conrad Meyer |
fd64259 |
Patch7: chntpw-110511-reged-no-deref-null.patch
|
|
|
bf3b22a |
|
|
|
7fea2df |
# Patch derived from Oleg Samarin (RHBZ#1645886)
|
|
|
7fea2df |
Patch8: chntpw-140201-fix-bogus-errno-use.patch
|
|
|
7fea2df |
|
|
|
f508414 |
|
|
|
f508414 |
%description
|
|
|
f508414 |
This is a utility to (re)set the password of any user that has a valid
|
|
|
f508414 |
(local) account on your Windows NT/2k/XP/Vista etc system. You do not
|
|
|
f508414 |
need to know the old password to set a new one. It works offline, that
|
|
Conrad Meyer |
247e1f8 |
is, you have to shutdown your computer and boot off a floppy disk or CD
|
|
|
f508414 |
or another system. Will detect and offer to unlock locked or disabled
|
|
|
f508414 |
out user accounts! There is also a registry editor and other registry
|
|
Conrad Meyer |
247e1f8 |
utilities that works under Linux/Unix, and can be used for other things
|
|
|
f508414 |
than password editing.
|
|
|
f508414 |
|
|
|
f508414 |
|
|
|
f508414 |
%prep
|
|
Conrad Meyer |
247e1f8 |
%setup -q -n %{name}-140201
|
|
|
f508414 |
cp -p %{SOURCE2} README.Dist
|
|
|
3ed22fa |
sed -e 's/\r$//' WinReg.txt > WinReg.txt.eol
|
|
|
3ed22fa |
touch -c -r WinReg.txt WinReg.txt.eol
|
|
|
3ed22fa |
mv WinReg.txt.eol WinReg.txt
|
|
|
f508414 |
|
|
|
6e892e7 |
%patch1 -p1
|
|
|
affa7b3 |
%patch3 -p1
|
|
|
bf3b22a |
%patch4 -p1
|
|
|
9cb3759 |
%patch5 -p1
|
|
|
9cb3759 |
%patch6 -p1
|
|
|
1130319 |
%patch7 -p1
|
|
|
7fea2df |
%patch8 -p1
|
|
|
6e892e7 |
|
|
|
f508414 |
|
|
|
f508414 |
%build
|
|
Conrad Meyer |
247e1f8 |
make CC="%__cc" EXTRA_CFLAGS="$RPM_OPT_FLAGS" \
|
|
Conrad Meyer |
247e1f8 |
chntpw cpnt reged sampasswd samusrgrp
|
|
|
f508414 |
|
|
|
f508414 |
|
|
|
f508414 |
%install
|
|
|
f508414 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f508414 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
Conrad Meyer |
247e1f8 |
cp chntpw cpnt reged sampasswd samusrgrp $RPM_BUILD_ROOT%{_bindir}
|
|
|
f508414 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8/
|
|
Conrad Meyer |
247e1f8 |
cp -p %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
|
|
Conrad Meyer |
247e1f8 |
$RPM_BUILD_ROOT%{_mandir}/man8/
|
|
|
f508414 |
|
|
|
f508414 |
|
|
|
f508414 |
|
|
|
f508414 |
%files
|
|
|
f508414 |
%doc GPL.txt LGPL.txt README.txt regedit.txt WinReg.txt HISTORY.txt
|
|
|
f508414 |
%doc README.Dist
|
|
|
f508414 |
%{_bindir}/chntpw
|
|
|
f508414 |
%{_bindir}/cpnt
|
|
|
f508414 |
%{_bindir}/reged
|
|
Conrad Meyer |
247e1f8 |
%{_bindir}/sampasswd
|
|
Conrad Meyer |
247e1f8 |
%{_bindir}/samusrgrp
|
|
Conrad Meyer |
247e1f8 |
%{_mandir}/man8/*.8*
|
|
|
f508414 |
|
|
|
f508414 |
|
|
|
f508414 |
%changelog
|
|
|
d28d7be |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-5.140201
|
|
|
d28d7be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
d28d7be |
|
|
|
7fea2df |
* Sat Jun 22 2019 Conrad Meyer <cemeyer@uw.edu> - 1.00-4.140201
|
|
|
7fea2df |
- Add fix for rhbz# 1645886. Thanks Oleg Samarin.
|
|
|
7fea2df |
|
|
|
b5663ce |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-3.140201
|
|
|
b5663ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b5663ce |
|
|
Conrad Meyer |
fb66fe7 |
* Thu Jul 19 2018 Conrad Meyer <cemeyer@uw.edu> - 1.00-2.140201
|
|
Conrad Meyer |
fb66fe7 |
- Add missing GCC BR after removal from buildroot
|
|
Conrad Meyer |
fb66fe7 |
- Unfuck version number bumped incorrectly by RE
|
|
Conrad Meyer |
fb66fe7 |
|
|
Conrad Meyer |
fb66fe7 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-1.140201
|
|
|
bace41e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
bace41e |
|
|
Conrad Meyer |
247e1f8 |
* Mon Jul 02 2018 Conrad Meyer <cemeyer@uw.edu> - 1.00-0.140201
|
|
Conrad Meyer |
247e1f8 |
- Update to latest upstream, 1.00 / 140201
|
|
Conrad Meyer |
247e1f8 |
- Rebase patches as needed
|
|
Conrad Meyer |
247e1f8 |
- Import additional and enhanced manual pages from Debian
|
|
Conrad Meyer |
247e1f8 |
- Adds two new binaries: sampasswd and samusrgrp
|
|
Conrad Meyer |
247e1f8 |
- Clean up rpmlint warnings (tabs, spelling, log date)
|
|
Conrad Meyer |
247e1f8 |
|
|
|
3cd5295 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.6-30.110511
|
|
|
3cd5295 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3cd5295 |
|
|
|
d685847 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.6-29.110511
|
|
|
d685847 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
d685847 |
|
|
|
9253059 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.6-28.110511
|
|
|
9253059 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
9253059 |
|
|
|
ef88d99 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.6-27.110511
|
|
|
ef88d99 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ef88d99 |
|
|
|
dffd0e1 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.6-26.110511
|
|
|
dffd0e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
dffd0e1 |
|
|
|
838c56e |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-25.110511
|
|
|
838c56e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
838c56e |
|
|
|
0613b3b |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-24.110511
|
|
|
0613b3b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
0613b3b |
|
|
|
a7ad7fd |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-23.110511
|
|
|
a7ad7fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
a7ad7fd |
|
|
|
184b648 |
* Wed Apr 23 2014 Tomáš Mráz <tmraz@redhat.com> - 0.99.6-22.110511
|
|
|
184b648 |
- Rebuild for new libgcrypt
|
|
|
184b648 |
|
|
|
c00bf92 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-21.110511
|
|
|
c00bf92 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c00bf92 |
|
|
|
7a11e2b |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-20.110511
|
|
|
7a11e2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7a11e2b |
|
|
|
d947db7 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-19.110511
|
|
|
d947db7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d947db7 |
|
|
|
96bb389 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-18.110511
|
|
|
96bb389 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
96bb389 |
|
|
Conrad Meyer |
13bf89e |
* Sun Dec 18 2011 Conrad Meyer <konrad@tylerc.org> - 0.99.6-17.110511
|
|
Conrad Meyer |
13bf89e |
- Fix 'robustness' patch (#755622)
|
|
Conrad Meyer |
13bf89e |
|
|
Conrad Meyer |
fd64259 |
* Tue Nov 1 2011 Conrad Meyer <konrad@tylerc.org> - 0.99.6-16.110511
|
|
Conrad Meyer |
fd64259 |
- Update to latest upstream (110511) (#750005).
|
|
Conrad Meyer |
fd64259 |
- Update fedora patches to apply cleanly, dropping useless hunks
|
|
Conrad Meyer |
fd64259 |
as needed.
|
|
Conrad Meyer |
fd64259 |
- Add upstream version to "Release" tag, so that people can
|
|
Conrad Meyer |
fd64259 |
actually tell which version of upstream we're shipping from the
|
|
Conrad Meyer |
fd64259 |
rpm version.
|
|
Conrad Meyer |
fd64259 |
|
|
|
38f2b5c |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-15
|
|
|
38f2b5c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
38f2b5c |
|
|
|
d64202c |
* Mon Jun 7 2010 Conrad Meyer <konrad@tylerc.org> - 0.99.6-14
|
|
|
d64202c |
- Upstream changed hosts; fixed URL and Source0.
|
|
|
d64202c |
|
|
|
806dc33 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-13
|
|
|
806dc33 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
806dc33 |
|
|
|
1130319 |
* Wed Jul 22 2009 Richard W.M. Jones <rjones@redhat.com> - 0.99.6-12
|
|
|
1130319 |
- Two^W Three more patches from Jim Meyering to improve general code quality.
|
|
|
9cb3759 |
|
|
|
bf3b22a |
* Mon Jul 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0.99.6-10
|
|
|
bf3b22a |
- Three patches from Jim Meyering aiming to improve the general
|
|
|
bf3b22a |
robustness of the code.
|
|
|
bf3b22a |
|
|
|
affa7b3 |
* Mon Jun 8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.99.6-9
|
|
|
affa7b3 |
- Compile against libgcrypt instead of OpenSSL (RHBZ#504595).
|
|
|
affa7b3 |
- Compile as a 64 bit native binary on 64 bit platforms.
|
|
|
affa7b3 |
|
|
|
6e892e7 |
* Mon Jun 8 2009 Richard W.M. Jones <rjones@redhat.com> - 0.99.6-8
|
|
|
6e892e7 |
- Fix three crashing bugs in 'reged -x' command.
|
|
|
6e892e7 |
|
|
|
ad2abec |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.6-7
|
|
|
ad2abec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
ad2abec |
|
|
|
877f000 |
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> - 0.99.6-6
|
|
|
877f000 |
- rebuild with new openssl
|
|
|
877f000 |
|
|
Conrad Meyer |
247e1f8 |
* Sun Oct 12 2008 Conrad Meyer <konrad@tylerc.org> - 0.99.6-5
|
|
|
be6f4ff |
- Bump because force-tag was removed. Please add it back.
|
|
|
be6f4ff |
|
|
|
f508414 |
* Sat Oct 11 2008 Conrad Meyer <konrad@tylerc.org> - 0.99.6-4
|
|
|
f508414 |
- Fix EOL encodings in WinReg.txt.
|
|
|
f508414 |
|
|
|
f508414 |
* Sat Oct 11 2008 Conrad Meyer <konrad@tylerc.org> - 0.99.6-3
|
|
|
f508414 |
- More miscellaneous small changes.
|
|
|
f508414 |
|
|
|
f508414 |
* Fri Oct 10 2008 Conrad Meyer <konrad@tylerc.org> - 0.99.6-2
|
|
|
f508414 |
- Revert to original Makefile.
|
|
|
f508414 |
- Miscellaneous small changes.
|
|
|
f508414 |
|
|
|
f508414 |
* Wed Oct 1 2008 Conrad Meyer <konrad@tylerc.org> - 0.99.6-1
|
|
|
f508414 |
- Initial package.
|