File: chntpw.8

package info (click to toggle)
chntpw 0.99.6-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,024 kB
  • ctags: 483
  • sloc: ansic: 5,239; makefile: 92
file content (107 lines) | stat: -rw-r--r-- 3,150 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH CHNTPW 8  "13th March 2010"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
chntpw \- utility to overwrite Windows NT/2000 SAM passwords
.SH SYNOPSIS
.B chntpw
.RI [ options ]
.RI < samfile > 
.RI [ systemfile ]
.RI [ securityfile ]
.RI [ otherreghive ] 
.RI [...]
.br
.SH DESCRIPTION
This manual page documents briefly the
.B chntpw
command.
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
.B chntpw
is a utility to view some information and change user passwords 
in a Windows NT/2000 SAM userdatabase file, usually located at
\\WINDOWS\\system32\\config\\SAM on the Windows file system. It is not necessary to
know the old passwords to reset them.  In addition it contains a 
simple registry editor (same size data writes)
and hex-editor with which the information contained in a registry
file can be browsed and modified.
.SH OPTIONS
.TP
.B \-h
Show summary of options.
.TP
.B \-u username
Username to change. Default is Administrator
.TP
.B \-l
List all users in the SAM database.
.TP
.B \-i
Interactive: list all users (as per \-l) and then ask for the 
user to change.
.TP
.B \-e
Registry editor with limited capabilities.
.TP
.B \-d
Use buffer debugger.
.TP
.B \-t
Show hexdumps of structs/segments (deprecated debug function).
.SH EXAMPLES
.TP
.B ntfs-3g /dev/sda1 /media/win ; cd /media/win/WINDOWS/system32/config/
Mount the Windows file system and enters the directory
.B \\\\WINDOWS\\\\system32\\\\config
where Windows stores the SAM database.
.TP
.B chntpw SAM system
Opens registry hives 
.B SAM
and 
.B system
and change administrator account. This will work even if the name
has been changed or it has been localized (since different language
versions of NT use different administrator names).
.TP
.B chntpw -l SAM
Lists the users defined in the 
.B SAM
registry file.
.TP
.B chntpw -u jabbathehutt SAM
Prompts for password for 
.B jabbathehutt
and changes it in the 
.B SAM
registry file, if found (otherwise do nothing).
.SH SEE ALSO
If you are looking for an automated procedure for password 
recovery, you might look at the bootdisks provided by the
upstream author at
.BR http://pogostick.net/~pnh/ntpasswd/
.br
There is more information on how this program works available at
.IR /usr/share/doc/chntpw 
\. This information includes in-depth information on how the 
registry works.
.SH AUTHOR
This manual page was written by 
Javier Fernandez-Sanguino <jfs@computer.org>,
for the Debian GNU/Linux system (but may be used by others).