Debian Codegraph @

debian/ftpasswd.8

raw
1 .\" Copyright (C) 2002 Francesco P. Lovergine
2 .\"
3 .\" This manual page is free software. It is distributed under the
4 .\" terms of the GNU General Public License as published by the Free
5 .\" Software Foundation; either version 2 of the License, or (at your
6 .\" option) any later version.
7 .\"
8 .\" This manual page is distributed in the hope that it will be useful,
9 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
10 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 .\" GNU General Public License for more details.
12 .\"
13 .\" You should have received a copy of the GNU General Public License
14 .\" along with this manual page; if not, write to the Free Software
15 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 .\" USA
17 .\"
18 .TH FTPASSWD 8 "October 19, 2002" "1.1.2" "Debian GNU/Linux"
19 .SH NAME
20 ftpasswd \- manipulates ProFTPD authentication files
21 .SH SYNOPSIS
22 .TP 8
23 \fBftpasswd\fR \fB\-\-help\fR|\fB-h\fR|\fB\-\-version\fR
24 .TP 8
25 \fBftpasswd\fR \fB\-\-hash\fR [ \fB\-\-des\fR|\fB\-\-md5\fR|\fB\-\-sha256\fR|\fB\-\-sha512\fR ] [ \fB\-\-stdin\fR ]
26 .br
27 [ \fB\-\-use\-cracklib\fR[=path] ]
28 .TP 8
29 \fBftpasswd\fR \fB\-\-passwd\fR [ \fB-F\fR|\fB\-\-force\fR ] [ \fB\-\-file=\fRfilename ] [\fB\-\-gecos=\fRstring ]
30 .br
31 [ \fB\-\-gid=\fRgid ] [ \fB\-\-des\fR|\fB\-\-md5\fR|\fB\-\-sha256\fR|\fB\-\-sha512\fR ] [ \fB\-\-not\-system\-password\fR ]
32 .br
33 [ \fB\-\-not\-previous\-password\fR ] [ \fB\-\-delete\-user\fR [ \fB\-\-stdin\fR ]
34 .br
35 [ \fB\-\-use\-cracklib\fR[=path] ] \fB\-\-home=\fRpath \fB\-\-name=\fRusername
36 .br
37 \fB\-\-shell=\fRshellpath \fB\-\-uid=\fRuid
38 .TP 8
39 \fBftpasswd\fR \fB\-\-group\fR [ \fB-F\fR|\fB\-\-force\fR ] [ \fB\-\-enable\-group\-passwd\fR ] [ \fB\-\-delete\-group\fR ]
40 .br
41 [ \fB\-\-file=\fRfilename ] [ \fB\-m\fR|\fB\-\-member\fR ] [ \fB\-\-des\fR|\fB\-\-md5\fR|\fB\-\-sha256\fR|\fB\-\-sha512\fR ]
42 .br
43 [ \fB\-\-stdin\fR ] [ \fB\-\-use\-cracklib\fR[=path] ] \fB\-\-gid=\fRgid \fB\-\-name=\fRgroupname
44 .TP 8
45 \fBftpasswd\fR \fB\-\-passwd\fR \fB\-\-change\-password\fR \fB\-\-name\fR=username
46 .br
47 .TP 8
48 \fBftpasswd\fR \fB--passwd\fR \fB\-l|\-\-lock\fR \fB\-\-name\fR=username
49 .br
50 .TP 8
51 \fBftpasswd\fR \fB--passwd\fR \fB\-u|\-\-unlock\fR \fB\-\-name\fR=username
52 .br
53 .PP
54 .SH DESCRIPTION
55 .P
56 ftpasswd is a Perl script which can be used to manipulate
57 the password and group files suitable for use with
58 ProFTPD AuthUserFile and AuthGroupFile configuration directives.
59 The idea is somewhat similar to Apache's htpasswd program.
60 .P
61 Required options are \-\-passwd, \-\-group, or \-\-hash.
62 These specify whether ftpasswd is to
63 operate on a passwd(5) format file, on a group(5) format file, or simply
64 to generate a password hash, respectively.
65 .P
66 If used with \-\-passwd, ftpasswd creates a file in the passwd(5) format,
67 suitable for use with proftpd's AuthUserFile configuration directive.
68 You will be prompted for the password to use of the user, which will be
69 encrypted, and written out as the encrypted string.
70 By default, using \-\-passwd will write output to "./ftpd.passwd",
71 .P
72 If used with \-\-hash, ftpasswd generates a hash of a password, as would
73 appear in an AuthUserFile. The hash is written to standard out.
74 This hash is suitable for use with proftpd's UserPassword directive.
75 .P
76 If used with \-\-group, ftpasswd creates a file in the group(5) format,
77 suitable for use with proftpd's AuthGroupFile configuration directive.
78 By default, using \-\-group will write output to "./ftpd.group".
79
80 .SH OPTIONS
81 .P
82 .TP
83 .B \-F, \-\-force
84 If the password or group file be used already exists, delete it and write a new one.
85 By default, new entries will be appended to the file.
86 .TP
87 .BR \-\-file= filename
88 Write output to specified file (password or group files),
89 rather than default one.
90 .TP
91 .BR \-\-gecos= string
92 Descriptive string for the given user (usually the user's full name).
93 .TP
94 .BR \-\-gid= gid
95 Set primary group ID for this user (optional, will default to
96 given
97 .BR \-\-uid
98 value if absent) when
99 .BR
100 \-\-passwd
101 is specified.
102 .TP
103 .BR \-\-uid= uid
104 numerical user ID.
105 .TP
106 .B \-h,\ \-\-help,\ \-\-version
107 Show usage and version of the program.
108 .TP
109 .BR \-\-home= path
110 Set the home directory for the user (required).
111 .TP
112 .BR \-\-des,\ \-\-md5,\ \-\-sha256,\ \-\-sha512
113 Use the DES, MD5, SHA-256 or SHA-512 algorithm for encrypting passwords.
114 The default is the MD5 algorithm.
115 .TP
116 .BR \-\-name= username ,\ \-\-name= groupname
117 Name of the user account or group (required).
118 If the name does not exist in the specified output-file, an entry will be created
119 for it. Otherwise, the given fields will be updated.
120 .TP
121 .BR \-\-shell= path
122 Shell for the user (required). Recommended:
123 .I /bin/false
124 .TP
125 .BR \-\-change-password
126 Update only the password field for a user. This option
127 requires that the
128 .BR \-\-name
129 and
130 .BR \-\-passwd
131 options be used, but no others.
132 This also double-checks the given password against the
133 user's current password in the existing passwd file, and
134 requests that a new password be given if the entered password
135 is the same as the current password.
136 .TP
137 .BR \-\-not\-previous\-password
138 Double-checks the given password against the previous password
139 for the user, and requests that a new password be given if the
140 entered password is the same as the previous password.
141 .TP
142 .BR \-\-not\-system\-password
143 Double-checks the given password against the system password
144 for the user, and requests that a new password be given if
145 the entered password is the same as the system password. This
146 helps to enforce different passwords for different types of
147 access.
148 .TP
149 .BR \-\-stdin
150 Read the password directly from standard in rather than
151 prompting for it. This is useful for writing scripts that
152 automate use of ftpasswd.
153 .TP
154 .B \-l, \-\-lock
155 Lock the password of the named account. This option disables
156 a password by changing it to a value which matches no possible
157 encrypted value (it adds a '!' at the beginning of the password).
158 .TP
159 .B \-u, \-\-unlock
160 Unlock the password of the named account. This option
161 re-enables a password by changing the password back to its
162 previous value (to the value before using the
163 .BR \-l
164 option).
165 .TP
166 .BR \-\-use\-cracklib\fR[ =path \fR]
167 Causes ftpasswd to use Alec Muffet's cracklib routines in
168 order to determine and prevent the use of bad or weak
169 passwords. The optional path to this option specifies
170 the path to the dictionary files to use \-\- default path
171 is
172 .IR /usr/lib/cracklib_dict .
173 This requires the Perl Crypt::Cracklib module to be installed on your system.
174 .TP
175 .BR \-\-delete\-user
176 Remove the entry for the given user name from the file.
177 .TP
178 .BR \-\-delete\-group
179 Remove the entry for the given group name from the file.
180 .TP
181 .BR \-\-enable\-group\-passwd
182 Prompt for a group password. This is disabled by default,
183 as group passwords are not usually a good idea at all.
184 .TP
185 .BR \-m \ username ,\ \-\-member= username
186 user to be a member of the group. This argument may be used
187 This argument may be used multiple times to specify the full list
188 of users to be members of this group.
189
190 .SH BUGS
191 No known bugs at this time.
192 If you discover any bugs, please contact the author.
193
194 .SH AUTHOR
195 This program has been written by TJ Saunders <[email protected]>
196 as a contributed software for ProFTPD.
197 .P
198 .SH "SEE ALSO"
199 .BR proftpd (8),
200 .BR passwd (5),
201 .BR group (5),
202 .BR ftpusers (8),
203 .BR ftpstats (8),
204 .BR proftpd.conf (5)
205
206 .SH CREDITS
207 This manual page was written by
208 Francesco Paolo Lovergine <[email protected]>.
209 Last update Thu Mar 10 16:45:27 UTC 2011 by Mahyuddin Susanto <[email protected]>
210 for the Debian GNU/Linux system (but may be used by others).