1SAMPASSWD(8)                System Manager's Manual               SAMPASSWD(8)
2
3
4

NAME

6       sampasswd - reset passwords of users in the SAM user database
7

SYNOPSIS

9       sampasswd [options] -uuser <samfile>
10

DESCRIPTION

12       This  manual page documents briefly the sampasswd command.  This manual
13       page was written for the Debian distribution because the original  pro‐
14       gram does not have a manual page.
15
16
17       sampasswd  is  a  non-interactive command line utility that can reset a
18       user's password and/or the user's account bits from the SAM user  data‐
19       base  file  of a Microsoft Windows system (Windows NT, 2000, XP, Vista,
20       7, 8.1, etc.).  This file is usually located at  \WINDOWS\system32\con‐
21       fig\SAM on the file system of a Microsoft Windows Operating System
22
23       On  success,  the  program  does not output any informatin and the exit
24       code is 0.
25
26

OPTIONS

28       -h     Show summary of options.
29
30       -r     Reset the user's password.
31
32       -a     Reset all the users. If this option is used there is no need  to
33              specify the next option.
34
35       -u <user>
36              User to change. The user value can be provided as a username, or
37              a RID number in hexadecimal (if the username  is  preceded  with
38              '0x').  Usernames including international characters will proba‐
39              bly not work.
40
41       -l     Lists the users in the SAM database.
42
43       -H     Output human readable output. The program by default will  print
44              a parsable table unless this option is used.
45
46       -N     Do  not  allocate  more  information,  only allow the editing of
47              existing values with same size.
48
49       -E     Do not expand the hive file (safe mode).
50
51       -t     Print debug information of allocated blocks.
52
53       -v     Print verbose information and debug messages.
54
55

EXAMPLES

57       sampasswd -r -u theboss
58              Reset the password of a user named 'theboss', if found.
59
60
61       sampasswd -r -u 0x3ea
62              Reset the password of the user with RID '0x3a'.
63
64
65       samusrgrp -r -a
66              Reset the password of all the users in the Administrator's group
67              (0x220)
68
69
70       samusrgrp -r -f
71              Reset  the  password of the administrative users with the lowest
72              RID number.  This does not include  the  built-in  administrator
73              (0x1f4)  unless no other administrative user can be found in the
74              database file.
75
76
77

KNOWN BUGS

79       If the username includes international (non-ASCII) characters the  pro‐
80       gram will not (usually) find it. Use the RID number instead.
81
82

SEE ALSO

84       chntpwd, reged, samusrgrp
85       You will find  more information available on how this program works, in
86       the      text      files      /usr/share/doc/chntpw/README.txt      and
87       /usr/share/doc/chntpw/MANUAL.txt
88
89       More   documentation  is  available  at  the  upstream's  author  site:
90       http://pogostick.net/~pnh/ntpasswd/
91
92

AUTHOR

94       This program was written by Petter N Hagen.
95
96       This   manual   page   was   written   by   Javier   Fernandez-Sanguino
97       <jfs@debian.org>,  for  the Debian GNU/Linux system (but may be used by
98       others).
99
100
101
102                                6th August 2014                   SAMPASSWD(8)
Impressum