]> git.pld-linux.org Git - packages/chntpw.git/blob - chntpw-debian.patch
patch Makefile for our optflags
[packages/chntpw.git] / chntpw-debian.patch
1 --- chntpw-070923/Makefile.orig 2007-09-23 17:58:06.000000000 +0000
2 +++ chntpw-070923/Makefile      2007-10-13 14:00:56.953996630 +0000
3 @@ -16,7 +16,7 @@
4  
5  
6  # This is to link with whatever we have, SSL crypto lib we put in static
7 -LIBS=-L$(OSSLLIB) $(OSSLLIB)/libcrypto.a
8 +LIBS= -lcrypto
9  
10  all: chntpw chntpw.static cpnt
11  
12 --- chntpw-0.99.1-030126.orig/chntpw.8
13 +++ chntpw-0.99.1-030126/chntpw.8
14 @@ -0,0 +1,96 @@
15 +.\"                                      Hey, EMACS: -*- nroff -*-
16 +.\" First parameter, NAME, should be all caps
17 +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
18 +.\" other parameters are allowed: see man(7), man(1)
19 +.TH CHNTPW 8  "30th May  2002"
20 +.\" Please adjust this date whenever revising the manpage.
21 +.\"
22 +.\" Some roff macros, for reference:
23 +.\" .nh        disable hyphenation
24 +.\" .hy        enable hyphenation
25 +.\" .ad l      left justify
26 +.\" .ad b      justify to both left and right margins
27 +.\" .nf        disable filling
28 +.\" .fi        enable filling
29 +.\" .br        insert line break
30 +.\" .sp <n>    insert n+1 empty lines
31 +.\" for manpage-specific macros, see man(7)
32 +.SH NAME
33 +chntpw \- utility to overwrite Windows NT/2000 SAM passwords
34 +.SH SYNOPSIS
35 +.B chntpw
36 +.RI [ options ]
37 +.RI < samfile > 
38 +.RI [ systemfile ]
39 +.RI [ securityfile ]
40 +.RI [ otherreghive ] 
41 +.RI [...]
42 +.br
43 +.SH DESCRIPTION
44 +This manual page documents briefly the
45 +.B chntpw
46 +command.
47 +This manual page was written for the Debian distribution
48 +because the original program does not have a manual page.
49 +.PP
50 +.B chntpw
51 +is a utility to view some information and change user passwords 
52 +in a Windows NT/2000 SAM userdatabase file. It is not necessary to
53 +know the old passwords to reset them.  In addition it contains a 
54 +simple registry editor (same size data writes)
55 +and hex-editor with which the information contained in a registry
56 +file can be browsed and modified.
57 +.SH OPTIONS
58 +.TP
59 +.B \-h
60 +Show summary of options.
61 +.TP
62 +.B \-u username
63 +Username to change. Default is Administrator
64 +.TP
65 +.B \-l
66 +List all users in the SAM database.
67 +.TP
68 +.B \-i
69 +Interactive: list all users (as per -l) and then ask for the 
70 +user to change.
71 +.TP
72 +.B \-e
73 +Registry editor with limited capabilities.
74 +.TP
75 +.B \-d
76 +Use buffer debugger.
77 +.TP
78 +.B \-t
79 +Show hexdumps of structs/segments (deprecated debug function).
80 +.SH EXAMPLES
81 +.TP
82 +.B chntpw sam system
83 +Opens registry hives 
84 +.B sam 
85 +and 
86 +.B system
87 +and change administrator account. This will work even if the name
88 +has been changed or it has been localized (since different language
89 +versions of NT use different administrator names).
90 +.TP
91 +.B chntpw -u jabbathehutt mysam
92 +Prompts for password for 
93 +.B jabbathehutt
94 +and changes it in the 
95 +.B mysam
96 +registry file, if found (otherwise do nothing)
97 +.SH SEE ALSO
98 +If you are looking for an automated procedure for password 
99 +recovery, you might look at the bootdisks provided by the
100 +upstream author at
101 +.BR http://home.eunet.no/~pnordahl/ntpasswd/
102 +.br
103 +There is more information on how this program works available at
104 +.IR /usr/share/doc/chntpw
105 +. This information includes in-depth information on how the 
106 +registry works, what are syskeys and some other issues.
107 +.SH AUTHOR
108 +This manual page was written by 
109 +Javier Fernandez-Sanguino Peña <jfs@computer.org>,
110 +for the Debian GNU/Linux system (but may be used by others).
This page took 0.081812 seconds and 3 git commands to generate.