3 shadow-4.1.0 -> shadow-4.1.1 UNRELEASED
7 * Do not seed the random number generator each time, and use the time in
8 microseconds to avoid having the same salt for different passwords
9 generated in the same second.
11 * Do not install the shadow library per default.
13 * Do not translate the messages sent to syslog. This avoids logging
14 PAM error messages in the users's locale.
16 * /etc/default/useradd now defines HOME as /home to match FHS.
18 * Fix bug which forbid to set the aging information of an account with a
19 passwd entry, but no shadow entry.
21 * New option -p/--password to specify an encrypted password.
23 * New option -p/--password to specify an encrypted password.
25 * Fix logging of changes to syslog when a group file is provided,
26 without a gshadow file.
28 * Use PATH and SUPATH to set the PATH environment variable, even when
29 support for PAM is enabled.
31 * Accept users specified as a numerical UID, or ranges of users (-user,
34 * Fix segfault when an user returns to an unknown GID (either the user
35 was deleted during the user's newgrp session or the user's passwd
36 entry referenced an invalid group). Add a syslog warning in that case.
37 * Use the correct AUDIT_CHGRP_ID event instead of AUDIT_USER_START, when
38 changing the user space group ID with newgrp or sg.
40 * The new users are no more added to the list of members of their groups
41 because the membership is already set by their primary group.
42 * Added support for gshadow.
43 * Avoid using the same salt for different passwords.
44 * Fix support for the NONE crypt method.
45 * newusers will behave more like useradd regarding the choice of UID or
46 GID or regarding the validity of user and group names.
48 * Make sure that no more than one username argument was provided.
50 * Fix logging of changes to syslog when a passwd file is provided,
51 without a shadow file.
53 * su's arguments are now reordered. If needed, use -- to separate su's
54 options from the shell's options.
55 * If started as init, start a new session.
57 * If started as init, start a new session.
59 * New option -l to avoid adding the user to the lastlog and faillog databases.
60 * Fix the handling of the --defaults option (it required an argument,
61 but should behave as -D)
62 * Document the --defaults option, which was already described in the
63 useradd's Usage information.
65 * Keep the access and modification time of files when moving an user's home
67 * Check that the new fields set with -u, -s, -l, -g, -f, -e, -d, and -c
68 differ from the old ones. If a requested new value is equal to the old
69 one, no changes will be performed for that field. If no fields are
70 changed, usermod will exist successfully with a warning. This avoids
71 logging changes to syslog when there are actually no changes.
72 * Fix the handling of -a when a user is being renamed (with -l)
74 * Recommend editing the shadowed (resp. regular) file if the regular (resp.
75 shadowed) file was edited.
77 shadow-4.0.18.2 -> shadow-4.1.0 09-12-2008
81 When compiled with PAM support, it used the chpasswd policy file instead
82 of the chgpasswd policy file. If an administrator added some restriction
83 to the chgpasswd policy file, they were not taken into account.
86 - Add support for SHA256 and SHA512 encrypt methods (supported by new
88 - useradd: Allow non numerical group identifier to be specified with
90 - chgpasswd, chpasswd: Fix chpasswd and chgpasswd stack overflow.
91 - newgrp: Do not give an indication that the group has no password. Ask
92 for the password, as if there were a password.
93 - The permissions of the suid binaries is now configurable in
94 src/Makefile.am. Note that changing the permissions is not recommended.
95 - newgrp.c: Declare the child and pid variable at the beginning of a block.
96 This fixes a compilation issue with gcc 2.95.
97 - login_nopam: Add support for systems with no innetgr(). On those
98 systems, username with an @ will be treated like any other username
99 (i.e. lookup in the local database for an user with an @). Thanks to
100 Mike Frysinger for the patch.
101 - Add support for uClibc with no l64a().
102 - userdel, usermod: Fix infinite loop caused by erroneous group file
103 containing two entries with the same name. (The fix strategy differs
105 (https://bugzilla.redhat.com/show_bug.cgi?id=240915)
106 - userdel: Abort if an error is detected while updating the passwd or group
107 databases. The passwd or group files will not be written.
108 - usermod: Update the group database before flushing the nscd caches.
109 - usermod: Make sure the group modifications will be allowed before
110 writing the passwd files.
111 - Flush the nscd tables using nscd -i instead of the private glibc socket.
112 - usermod: Make usermod options independent of the argument order.
113 - newgrp: Do not request a password when a user uses newgrp to switch to
115 - passwd: -l/-u options: edit the shadow account expiry field *in
116 addition* to editing the password field.
117 - pwck: Remove the SHADOWPWD preprocessor check. Some check for /etc/shadow
119 - su: Avoid terminating the PAM library in the forked child. This is done
120 later in the parent after closing the PAM session.
121 - userdel: Fix the homedir prefix checking.
122 - passwd, usermod: Refuse to unlock an account when it would result in a
123 passwordless account.
124 - Full review of the usage of getpwnam(), getpwuid(), getgrnam(),
125 getgrgid(), and getspnam(). There should be no functional changes.
126 - gpasswd: Only read information from the local file group database. It
127 writes the changes in /etc/group and/or /etc/gshadow, but used to read
128 information from getgrnam (hence possibly from another group database).
129 - New login.defs variable: MAX_MEMBERS_PER_GROUP. It should provide a
130 better support for split groups. Be careful when using this variable:
131 not all tools support well split groups (in or out of the shadow
132 tool suite). It fixes gpasswd and chgpasswd when split groups are used.
133 - Use MD5_CRYPT_ENAB, ENCRYPT_METHOD, SHA_CRYPT_MIN_ROUNDS, and
134 SHA_CRYPT_MAX_ROUNDS to define the default encryption algorithm for the
136 - chpaswd, chgpasswd, newusers: New options -c/--crypt-method and
137 -s/--sha-rounds to supersede the system default encryption algorithm.
138 - chpaswd, chgpasswd, newusers: DES is no more the default algorithm. They
139 will respect the system default configured in /etc/login.defs
142 - Generate the translated manpages from PO at build time.
143 - The generated manpages will change depending on the configure options.
144 If you use different options than the one used for the distributed
145 archive, you should re-generate the manpages.
146 - login.defs should now describe all the variables.
147 - The tools' documentation details the login.defs variables they use.
149 shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007
152 - usermod: fixed handle -a option (by Benno Schulenberg
153 <bensberg@justemail.net>),
154 - useradd: improved auditing support
155 (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=211659),
156 - groupadd, groupdel, groupmod, useradd, userdel, usermod: flush nscd cashes
157 after close /etc/{group,passwd} files,
158 - su: If compiled without PAM support, enforce the limits from /etc/limits
159 when one of the -, -l, or --login options is set, even if called by root.
160 - limits: Support for 2 new resource limits: max nice value, and max real
161 time priority. The resource limits are not used when compiled with PAM.
163 - updated translations: fi, ja, nl, tl, zh_CN.
164 - groupadd.8, groupmod.8, login.1, useradd.8, userdel.8, usermod.8: grammar
165 mistakes and other corrections (by Schulenberg <bensberg@justemail.net>),
167 shadow-4.0.18 -> shadow-4.0.18.1 03-08-2006
170 - groupmems: fixed compilation when PAM is disabled
171 (by Johannes Winkelmann <jw@smts.ch>),
172 - fixed missing man pages in dist tar ball necessary on build when
175 shadow-4.0.17 -> shadow-4.0.18 01-08-2006
178 - su: fixed set enviroment too early when using PAM, so move it to !USE_PAM
179 (patch submitted by Mike Frysinger <vapier@gentoo.org>),
180 - groupadd, groupmod, useradd, usermod: fixed UID/GID overflow (fixed
181 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=198920)
182 - passwd, useradd, usermod: fixed inactive/mindays/warndays/maxdays overflow
183 (simillar to RH#198920),
184 - groupmems: rewrited for use PAM and getopt_long() and now it is enabled
185 for build and install (patch by George Kraft <gk4@swbell.net>),
186 - S/Key: removed assign getpass() to libshadow_getpass() on autoconf level
187 (patch by Ulrich Mueller <ulm@kph.uni-mainz.de>; http://bugs.gentoo.org/139966),
188 - usermod: back to previous -a option semantics and clarify -a behavior
189 on documentation level (by Greg Schafer <gschafer@zip.com.au>),
190 - chsh, groupmod: rewrited for use getopt_long().
191 - updated translations: ca, cs, da, eu, fr, gl, hu, ko, pl, pt, ru, sv, tr, uk, vi.
193 - fr and ru man pages are up to date,
194 - partially translated sv man pages set added
195 (by Daniel Nylander <info@danielnylander.se>),
196 - pl chage(1), chsh(1), groupmod(8): translation finished.
198 shadow-4.0.16 -> shadow-4.0.17 10-07-2006
201 - userdel, usermod: fixed segfault on remove home directory when it can't
202 be removed; for example when it is /dev/null (fixed http://bugs.gentoo.org/139148),
203 - improved SELinux detection on autoconf level (based on patch by
204 Dan Yefimov <dan@D00M.lightwave.net.ru>),
205 - removed using private implementation getpass() libc function
206 (now getpass() is used also when S/KEY support is enabled),
207 - move nologin do $(sbindir),
208 - useradd: fixed mail spool file creation (bug cached by Frans Pop
210 fixed http://bugs.debian.org/374705),
211 - updated translations: cs, da, de, ko, nb, nl, pt, ro, ru, sk, sv, vi,
212 - new translations: dz, km, ne.
214 - ru man pages up to date,
215 - lastlog(8): updated pl translation,
216 - faillog(5): added missing information about fail_locktime element of
217 faillog struct (by Thorsten Kukuk <kukuk@suse.de>),
218 - updated translations: eu, fr, pl.
219 - reverted using docbook.sourceforge.net in XSL url.
221 shadow-4.0.15 -> shadow-4.0.16 05-06-2006
224 - userdel: better fix for old CERT VU#312962 (which was fixed in shadow 4.0.8):
225 fixed forgoten checking of the return value from fchown() before
226 proceeding with the fchmod() (based on Owl patch prepared by
227 Rafal Wojtczuk <nergal@owl.openwall.com>),
228 - userdel: use login.defs::MAIL_DIR instead hardcoded /var/mail in created
229 mailbox path (based on Owl fixes submited
230 by Solar Designer <solar@openwall.com>),
231 - by default do not use libshadow_getpass() as getpass() replacemement.
232 Use libshadow_getpass() only when S/KEY support is enabled.
233 Current glibc getpass() handles correctly longer than 8 characters
234 passwords and libshadow_getpass() is used only because libc getpass()
235 do not handles password prompting with echo enabled,
236 - move login.defs::MD5_CRYPT_ENAB to non-PAM part,
237 - userdel: rewrited for use getopt_log(),
238 - install default/template configuration files:
239 -- if shadow is configured with use PAM install /etc/pam.d/* files,
240 -- if shadow do not uses PAM install /etc/{limits,login.acces} files,
241 -- install /etc/login.defs and /etc/default/useradd files,
242 - fixed handle relative symlinks too in lib/commonio.c
243 (merge patch from Fedora),
244 - properly notify nscd to flush its cache
245 (https://bugzilla.redhat.com/bugzilla/186803),
246 - useradd, usermod: fixes for verify return values mkdir() and chown()
247 on copy files (merge 482_libmisc_copydir_check_return_values Debian
249 - login, su (non-PAM variant): export MAIL only when MAIL_CHECK_ENAB
250 is enabled (Mike Frysinger <vapier@gentoo.org>),
251 - pgck, grpck: warn when the members of a group differ in /etc/groups
252 and /etc/gshadow (fixed http://bugs.debian.org/75181),
253 - su: fixed exit with a status 0 when the invoked command is terminated
254 by a signal which was not catched
255 (fixed by Eero Häkkinen <eero17@bigfoot.com>),
256 - login: cancel login timeout after authentication so that patient people
257 timing out on network directory services can log in with local
258 accounts (http://bugs.debian.org/107148),
259 - chgpasswd: fixes for build correctly with --disable-shadowgrp
260 (patch by Johannes Winkelmann <jw@tks6.net>).
261 - updated translations: cs, da, es, eu, fi, fr, gl, hu, id, pt, ru, sk, sv, vi.
262 - new translations: hu.
264 - new cs man pages: groupmems(8), groupmod(8), grpck(8), gshadow(5)
265 (by Miroslav Kure <kurem@upcase.inf.upol.cz>),
266 - regenerate roff man pages using docbook-style-xsl-1.70.1,
267 - bunch of cleanups in chfn(1), faillog(8), gpasswd(1), groupadd(8),
268 groupmems(8), limits(5), login(1), login.defs(5), newgrp(1), passwd(1),
269 passwd(5) and su(1) (by Yuri Kozlov <kozlov.y@gmail.com>),
270 - update pl vipw(8) man page,
271 - added chgpasswd(8) ru man page,
272 - updated ru login.defs(5), passwd(1), userdel(8), usermod(8) man pages,
273 - pw_auth(3) man page removed (outdated),
274 - install limits(5), login.access(5) and porttime(5) man pages only when
275 shadow is builded with PAM support disabled,
276 - passwd(1): better document how password strength is checked
277 (fixed http://bugs.debian.org/115380),
278 - usermod(8): added missing -a option description
279 (by Christian Perrier <bubulle@debian.org>),
280 - hu chsh(1), lugin(1), newgrp(1): fixed typos
281 (by Koblinger Egmont <egmont@uhulinux.hu>),
282 - login.defs(5): remove information about CREATE_HOME (patch by
283 Mike Frysinger <vapier@gentoo.org>),
284 - chgpasswd(8): new man page.
286 shadow-4.0.14 -> shadow-4.0.15 13-03-2006
289 - do not install translated man pages if shadow is configured with
291 (based patch submited by Mike Frysinger <vapier@gentoo.org>),
292 - added fixes for detect BSD's S/Key with updated the skeychallenge()
293 function for take a fourth argument in case BSD version (patch submited by
294 Mike Frysinger <vapier@gentoo.org>),
295 - login: default UMASK if not specified in login.defs is 022 (pointed by
296 Peter Vrabec <pvrabec@redhat.com>),
297 - chgpasswd: new tool (by Jonas Meurer <mejo@debian.org>),
298 - lastlog: print the usage and exit if an additional argument is profided to
299 lastlog (merge 488_laslog_verify_arguments Debian patch),
300 - login, newgrp, nologin, su: do not link with libselinux (merge
301 490_link_selinux_only_when_needed Debian patch),
302 - chage, chfn, chsh, passwd: fixed confusing error message if /proc is not
303 mounted (http://bugs.debian.org/352494 patch Nicolas François
304 <nicolas.francois@centraliens.net>),
305 - login (merge 433_login_more_LOG_UNKFAIL_ENAB Debian patch):
306 - TOO MANY LOGIN... logged if PAM_MAXTRIES or failcount >= retries (was
307 onl test PAM_MAXTRIES),
308 - print to stderr (in addition to syslog) in case of maximum number of
310 - always prints the number of tries in the syslog entry.
311 - add special handling for PAM_ABORT
312 - add an entry to failog, as when USE_PAM is not defined. (#53164)
313 - changed pam_end to PAM_END. This is certainly was a mistake. PAM_END is
314 pam_close_seesion + pam_end. Here, the session is still not open, we
315 don't have to close it.
316 - a HAVE_PAM_FAIL_DELAY is missing,
317 - su: fixed pam session support (patch from Topi Miettinen; fixed #57526,
318 #55873, 57532 Debian bugs),
319 - userdel: user's group is already removed by update_groups().
320 remove_group() is not needed (bug introduced in 4.0.14 on merge FC fixes).
321 Fixed by Nicolas François <nicolas.francois@centraliens.net>,
322 - useradd: allways remove group and gshadow databases lock, Fixed by Nicolas
323 François <nicolas.francois@centraliens.net>
324 (http://bugs.debian.org/348250)
326 - corrected prototypes in lib/prototypes.h (thre is no audit_help_log();
327 added audit_logger() prototype),
328 - useradd: fixed excess audit_logger() argument,
329 - chage: added missing \n on display password status if password must be
331 - useradd: fixed allow non-unique UID (http://bugs.debian.org/351281),
332 - variouse code cleanups for make possible compilation of shadow with -Wall
333 -Werror (by Alexander Gattin <xrgtn@yandex.ru>),
334 - su: move exit() outside libmisc/shell.c::shell() for handle shell() errors
335 on higher level (now is better visable where some programs exit with 126
336 and 127 exit codes); added new shell() parameter (char *const envp[])
337 which allow fix preserving enviloment in su on using -p, (patch by
338 Alexander Gattin <xrgtn@yandex.ru>),
339 - su: added handle -c,--command option for GNU su compliance (merge
340 437_su_-c_option Debian patch),
341 - login: added translate login prompt string (suggested by Evgeniy
343 - updated translations: ca, cs, da, el, es, eu, gl, fi, fr, it, nb, nl, pt,
344 pt_BR, ro, ru, sk, sv, tl, vi, zh_CN,
345 - new translations: gl.
347 - ru man pages: added new nologin(8) and updated all other man pages (by
348 Yuri Kozlov <kozlov.y@gmail.com>),
349 - chsh(1), su(1): update fi translations generated from XML files
350 (Tommi Vainikainen <thv+debian@iki.fi>),
351 - expiry(1), faillog(5), faillog(8), gpasswd(1), groupadd(8), groupdel(8),
352 logoutd(8), nologin(8), vipw(8): added new cs man pages, (by Miroslav Kure
353 <kurem@upcase.inf.upol.cz>)
354 - login.defs(5): default UMASK if not specified in login.defs is 022
355 (pointed by Peter Vrabec <pvrabec@redhat.com>),
356 - useradd(8): better document that -d will not add the user's home directory
357 if it does not already exist (http://bugs.debian.org/154996),
358 - nologin(8) man pages added (merge 478_nologin.8.xml Debian patch).
360 shadow-4.0.13 -> shadow-4.0.14 03-01-2006
363 - fixes in handling login.defs: $MAIL_FILE is used in userdel and usermod,
364 $MD5_CRYPT_ENAB is used by crypt_make_salt, which is used by chpasswd,
365 gpasswd and newusers.
366 Both variables moved to PAM not dependent (447_missing_login.defs_variables
368 - chage: fix chage display when the last change field is set to 0.
369 This is consistent with PAM (merge 427_chage_expiry_0 Debian patch),
370 - su: if an password is expired, su should propose to change this password
371 (fixed http://bugs.debian.org/321384),
372 - login: added auditing support (based on Fedora patch for login from util-linux),
373 - useradd: merge PUG fixes from RedHat patch,
374 - nologin: new program,
375 - vipw: added a "quiet" mode (http://bugs.debian.org/190252),
376 - newgrp: added auditing support (by Steve Grubb <sgrubb@redhat.com>),
377 - switch over to a new logging function (by Steve Grubb <sgrubb@redhat.com>),
378 - userdel: fix incorrect audit record in userdel
379 (https://bugzilla.redhat.com/bugzilla/174392),
380 - userdel: remove the user's group unless it is not really a user-private group
381 for better PUG support (based on FC patch),
382 - userdel: make the -f option force the removal of the user's group (even if it
383 is the primary group of another user)
384 (merge 453_userdel_-f_removes_group Debian patch),
385 - usermod: rewrited for use getopt_long() (Christian Perrier <bubulle@kheops.frmug.org>),
386 - grpck: fixed segmentation fault on using -s when /etc/gshadow is empty (fix by
387 Tomasz Lemiech <szpajder@staszic.waw.pl>),
388 - passwd: remove handle -f, -g and -s options.
389 - added handle -s/--shell, -m/-p/preserve-environment options like GNU su
390 (based on patches from Debian submited by
391 Nicolas François <nicolas.francois@centraliens.net>)
392 - su: export $USER and $SHELL as well as $HOME (http://bugs.debian.org/11003 and
393 http://bugs.debian.org/11189),
394 - su, vipw: rewrited for use getopt_long(),
395 - su: log successful/failed through syslog (http://bugs.debian.org/190215),
396 - updated translations: ca, cs, da, eu, fi, fr, it, pl, pt, ru, sv, tl, vi,
397 - new translations: gl.
399 - added es, ko vigr(8) and vipw(8), hu lastlog(8), ko vipw(8), zh_CN su(1),
400 zh_TW chpasswd(8) and su(1),
401 - added tr man pages: chage(1), chfn(1), groupadd(8), groupdel(8), groupmod(8),
402 login(1), passwd(1), passwd(5), shadow(5), su(1) useradd(8), userdel(8),
404 - passwd5): added es, hu, pt_BR, zh_CN zh_TW translations,
405 - added full set (up to date) fr man pages
406 (by Nicolas François <nicolas.francois@centraliens.net>),
407 - pwck(1): document -q option,
408 - WARNING: all translated man pages are now in UFT-8,
409 - added full set of ru man pages (by Yuri Kozlov <kozlov.y@gmail.com>),
410 - login(1): better explain the respective roles of login, init and getty with regards
411 to the utmp file (merge 440_manpages-login.1 Debian patch),
412 - login(1): document how to initiate a trusted path on linux
413 (http://bugs.debian.org/305600),
414 - userdel(8): document the -f option; document the group removal behavior (merge
415 455_userdel.8.xml Debian patch),
416 - groupadd(8), useradd(8): document that useradd/groupadd refuse adding entries already in an
417 external database (http://bugs.debian.org/282184),
418 - updated it groupdel(8), passwd(1), pwconv(8), useradd(8), userdel(8), usermod(8) man pages
419 (merge 205_it-manpages Debian patch),
420 - added fi chfn(1), chsh(1), passwd(1), su(1),
421 - newusers(8): added it translation,
422 - newgrp(1): added de, es, zh_CN, zh_TW translations.
424 shadow-4.0.12 -> shadow-4.0.13 10-10-2005
427 - chage: removed duplicated pam_start(),
428 - chfn, chsh: finished PAM support usin pam_start() and co.,
429 - userdel: userdel should not remove the group which is primary for someone else
430 (fix by Nicolas François <nicolas.francois@centraliens.net>
431 http://bugs.debian.org/295416),
432 - login: use "%c" in strftime() output (based on patch from
433 http://bugs.debian.org/89902 by Christian Perrier <bubulle@debian.org>),
434 - fixedlib/commonio.c: don't assume selinux is enabled if is_selinux_enabled()
435 returns -1 (merge isSelinuxEnabled FC patch by Jeremy Katz <katzj@redhat.com>),
436 - login, su (non-PAM case): fixed setup max address space limits (added missing break
437 statement in case) spoted by Lasse Collin <lasse.collin@tukaani.org>,
438 - auditing support added. Patch prepared by Peter Vrabec <pvrabec@redhat.com> basing
439 on work by Steve Grubb from http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=159215
440 Now auditing support have commands: chage, gpasswd, groupadd, groupdel, groupmod,
441 useradd, userdel, usermod.
442 - chage, chfn, chsh, passwd: change to use new selinux API for
443 selinux_check_passwd_access() (patch from Fedora by Dan Walsh <dwalsh@redhat.com>),
444 - use #ident preprocesor directive istead RCID macro with content similar
445 to example described in ident(1) man page (modern compilers like latest GCC
446 removes not used functions by global optimization).
447 So "ident /usr/bin/passwd" will show again some useable informations
448 - su: fixed twice copy enviroment which causes auth problems
449 (bug was introduced in 4.0.12; fix by Nicolas François <nicolas.francois@centraliens.net>),
450 - chage: differentiate the different failure causes by the exit value
451 This will permit to adduser Debian script to detect if chage failed because the
452 system doesn't have shadowed passwords (fix for http://bugs.debian.org/317012),
453 - merge 010_more-i18ned-messages Debian patch which adds i18n support for few
454 more messages (orginaly patch was prepared by Guillem Jover <guillem@debian.org>),
455 - lastlog: added handle -b option which allow print only lastlog records older than
456 specified DAYS (fix by <miles@lubin.us>),
457 - chpasswd, gpasswd, newusers: fixed libmisc/salt.c for use login.defs::MD5_CRYPT_ENAB
458 only if PAM support is disabled (fix by John Gatewood Ham <zappaman@buraphalinux.org>),
459 - passwd: rewrited for use getopt_long(),
460 - newgrp: when newgrp process sits between parent and child shells, it should
461 propagate STOPs from child to parent and CONTs from parent to child,
462 otherwise e.g. bash's "suspend" command won't work
463 Fixed Debian http://bugs.debian.org/314727
464 - updated translations: da, es, fr, pt, ro, ru.
466 - chsh(1), groupadd(8), newusers(8), pwconv(8), useradd(8), userdel(8), usermod(8):
467 added missing references to /etc/login.defs and login.defs(5)
468 (Christian Perrier <bubulle@kheops.frmug.org>),
469 - passwd(5): rewrited based on work by Greg Wooledge <greg@wooledge.org>
470 http://bugs.debian.org/328113
471 - login(1): added securetty(5) to SEE ALSO section
472 (fixed Debian bug http://bugs.debian.org/325773),
473 - groupadd(8), useradd(8): fix regular expression describing alloved login/group
474 names (pointed by Nicolas François <nicolas.francois@centraliens.net>)
475 (correct is [a-z_][a-z0-9_-]*[$]),
476 - groupadd(8), useradd(8): documents in CAVEATS section the limitations shadow
477 places on user and group names (fix by Mike Frysinger <vapier@gentoo.org>).
478 - chage(1), groupadd(8): document -h,--help option.
480 shadow-4.0.11.1 -> shadow-4.0.12 22-08-2005
483 - newgrp, login: remove using login.defs::CLOSE_SESSIONS variable and allways
485 - fixed configure.in: realy enable shadow group support by default (pointed by
486 Greg Schafer <gschafer@zip.com.au> and Peter Vrabec <pvrabec@redhat.com>),
487 - login.defs: removed handle QMAIL_DIR variable,
488 - login: allow regular user to login on read-only root file system (not only for root)
489 Patch by Nicolas François <nicolas.francois@centraliens.net>
490 Fix for http://bugs.debian.org/52069
491 - gpasswd, grpck, grpconv, grpuconv: added flushing group nscd cache,
492 - pwck, pwconv: added flushing passwd nscd cache,
493 - usermod: fixed handle -p option (patch by Peter Vrabec <pvrabec@redhat.com>),
494 - chage: use -1 as value for disable password inactivity, expiration date and
495 checking an password validation.
496 Based on patch by Peter Vrabec <pvrabec@redhat.com> which fixes:
497 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=109499
498 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137498
499 and on 427_chage_expiry_0 Debian patch (fix for http://bugs.debian.org/78961)
500 - useradd: do not copy files from skel directory if home directory exist and write
501 warning message about not copying skel files
502 Patch by Peter Vrabec <pvrabec@redhat.com> which fixes:
503 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143150
504 https://bugzilla.redhat.com/beta/show_bug.cgi?id=158574
505 https://bugzilla.redhat.com/beta/show_bug.cgi?id=80242
506 - su: ignore SIGINT while authenticating. A ^C could defeat the waiting
507 period and permit brute-force attacks (fixed http://bugs.debian.org/288827),
508 - uClibc fixes (by Martin Schlemmer <azarah@nosferatu.za.org>):
509 added require ngettext (added [need-ngettext] to AM_GNU_GETTEXT() parameters)
510 and stub prototype for ngettext() in lib/prototypes.h (neccessary if shadow
511 compiled with disabled NLS support)
512 - groupadd: rewrited for use getopt_long(),
513 - groupadd, groupdel, groupmod, userdel: do OPENLOG() before pam_start(),
514 - groupadd: fixed double OPENLOG(),
515 - removed lib/{grpack,gspack,pwpack,sppack}.c and prototypes from lib/prototypes.h
517 - newusers: added flushing passwd and group nscd caches,
518 - passwd, pwunconv, userdel, vipw: remove flushing shadow nscd cache (nscd do not caches
520 - pwck: now pwck OPENLOG with correct name ("pwck" instead "pwsk")
521 (fix by Alexander Gattin <arg@online.com.ua>),
522 - pwck, grpck: replace all puts() with printf() - it fixes problems with extra blank
523 lines printed in some messages
524 (fix by Alexander Gattin <arg@online.com.ua>),
525 - passwd: use separated message "Password set to expire." instead "Password changed."
526 on "passwd -e" (fix by Christian Perrier <bubulle@debian.org),
527 - updated translations: cs, de, fi, fr, nl, pl, pt, ru, sk.
529 - regenerate all roff man pages using DocBook XSLT Stylesheets 1.69.1,
530 - usermod(8): give the correct range for system users (0-999 instead of 0-99),
531 (http://bugs.debian.org/286258)
532 - chage(8): better description -1 value passwd in -E, -I and -M options,
533 - regenerate all roff man pages using DocBook XSLT Stylesheets 1.69.0.
535 shadow-4.0.11 -> shadow-4.0.11.1 21-07-2005
538 - fixed configure.in: now is possible build shadow with enabled/disabled shadow group
539 support (thanks for report symptoms of the bug to Greg Schafer <gschafer@zip.com.au>),
540 - updated translations: sv.
542 shadow-4.0.10 -> shadow-4.0.11 18-07-2005
545 - su: ignore SIGINT while authenticating. A ^C could defeat the waiting period and
546 permit brute-force attacks. Also ignore SIGQUIT.
547 Fixed: http://bugs.debian.org/52372 and http://bugs.debian.org/288827
548 - useradd: rewrited for use getopt_long(),
549 - newgrp: add fix for handle splitted NIS groups: extends the functionality that,
550 if the requested group is given, all groups of the same GID are tested for
551 membership of the requesting user.
552 (fix by Christian Mudra <C.Mudra@science-computing.de>)
553 - fix nscd_flush_cache(): for some reason doing the INVALIDATE call with two
554 write()'s fails. Do one writev() call instead.
555 http://bugs.gentoo.org/show_bug.cgi?id=80413
556 (submited by Martin Schlemmer <azarah@gentoo.org>)
557 - merge nscd-socket-path patch from Fedora: newer glibc's have a different nscd socket
558 location (/var/run/nscd/socket instead /var/run/.nscd_socket),
559 - S/Key support is back,
560 - usermod: added -a option. This flag can only be used in conjunction with the -G
561 option. It cause usermod to append user to the current supplementary group list.
562 (patch by Peter Vrabec <pvrabec@redhat.com>)
563 - chage: added missing \n in error messages,
564 - useradd, groupadd: change -O option to -K and document it in man page,
565 - su, sulogin, login: fixed erroneous warning messages when used with PAM about some
566 login.defs variables (fix by DJ Lucas <dj@linuxfromscratch.org>),
568 -- stop with error message if crypt() not found,
569 -- remove --with{,out}-libcrypt switch,
570 -- move all autoheader templates from acconfig.h to configure.in,
571 - login: setup limits and umask (using login.defs ULIMITS and UMASK variables) only when
572 PAM support is disabled (it is task for pam_limits and pam_umask modules),
573 - sulogin, login: use SYSLOG macro instead syslog() which saves the locale, sets the
574 locale to C, sends the message and restores the locale
575 (fix by Nicolas François <nicolas.francois@centraliens.net>).
576 - updated translations: cs, da, de, es, fi, pl, pt, ro, ru, sk.
578 - pwck(8): document -q option (based on Debian patch for fix http://bugs.debian.org/309408)
579 - pwck(8): rewrited OPTIONS section and better SYNOPSIS,
580 - lastlog(8): document that lastlog is a sparse file, and don't need to be rotated
581 http://bugs.debian.org/219321
582 - login(8): better explain the respective roles of login, init and getty with regards
583 to the utmp file (based on 441_manpages-shadow.5 Debian patch),
584 - shadowconfig(8): removed (will be maintained in Debian shadow pkg repository),
585 - groupadd(8): document -o option,
586 - in SEE ALLSO section in groupadd(8), groupdel(8), groupmod(8), userdel(8), usermod(8)
587 added refer to gpasswd(8) (suggested by Mike Frysinger <vapier@gentoo.org>).
589 shadow-4.0.9 -> shadow-4.0.10 28-06-2005
593 - userdel: now deletes user groups from /etc/gshdow as well as /etc/group.
594 Fix by Nicolas François <nicolas.francois@centraliens.net>.
595 http://bugs.debian.org/99442
596 - usermod: when relocating a user's home directory, don't fail and remove the new
597 home directory if we can't remove the old home directory for some
598 reason; the results can be spectularly poort if, for instance, only
599 the rmdir() fails. Patch prepared by Timo Lindfors <lindi-spamtrap@newmail.com>.
600 http://bugs.debian.org/166369
601 - su: fix syslogs to be less ambiguous. Use old:new format instead of old-new
602 because '-' can appear in usernames
603 http://bugs.debian.org/213592
604 - removed not used now libmisc/setup.c,
605 - login: use also UTMPX API instead UTMP on failure (login was affected for this
606 when shadow was builded without PAM support)
607 patch by Nicolas François <nicolas.francois@centraliens.net>
608 - login: the PAM session needs to be closed as root, thus before change_uid()
609 http://bugs.debian.org/53570 http://bugs.debian.org/195048 http://bugs.debian.org/211884
610 - login: made login's -f option also able to use the username after -- if none
611 was passed as it's optarg
612 http://bugs.debian.org/53702
613 - login: check for hushed login and pass PAM_SILENT if true,
614 http://bugs.debian.org/48002
615 - login: fixed username on succesful login (was using the normal username,
616 when it should have used pam_user) http://bugs.debian.org/47819
617 - remove using SHADOWPWD #define so now shadow is allways builded with shadow
619 - chage: rewrited for use getopt_long(),
620 - updated translations: ca, cs, da, fi, pl, ru, zh_TW.
622 - most of the man pages now are generated from XML files so in case submiting any
623 chages to this resources please make diff to XML files,
624 - chfn: give more details about the influence of login.defs on what's allowed to
627 shadow-4.0.8 -> shadow-4.0.9 23-05-2005
630 - passwd: fixed segfault in non-PAM connfiguration
631 (submited by Greg Schafer <gschafer@zip.com.au>),
632 - newgrp: fixed NULL pointer dereference - getlogin() and ttyname() can
633 return NULL which is not checked (http://bugs.debian.org/162303),
634 - updated translations: ro, ru,
635 - added new translations: vi,
636 - lib/getdef.c: leaves the table as it is, and changes from the binary search to
637 a sequential one (Lucas Correia Villa Real <lucasvr@gobolinux.org>),
638 - lastlog: fixed --help message (s,--login,--user,) http://bugs.debian.org/249611.
640 shadow-4.0.7 -> shadow-4.0.8 26-04-2005
643 - remove not working OPIE and SKEY support,
644 - chage, useradd, usermod: reduce multiple OPENLOG() calls,
645 - passwd: fix #61313 Debian bug: "passwd -S root" (as a normal user) should not
646 display "You may not change the password for root.",
647 - vipw: fixed race condition (Debian #242407 bug; fix by Alexander Gattin
648 <arg@online.com.ua>),
649 - configure.in: add using AC_GNU_SOURCE macro for kill compilation warnings about
650 implicit declaration of function `fseeko',
651 - faillog: changed faillog record display format for allow fit in 80 columns all
653 - removed NDBM code (unused),
654 - fixed use of SU_WHEEL_ONLY in su. Now su realy is avalaible for wheel group
655 members. Thanks to Mike Frysinger <vapier@gentoo.org> for report:
656 http://bugs.gentoo.org/show_bug.cgi?id=80345
657 - drop never finished kerberos and des_rpc support (for kerberos support back firs
658 must be prepared modularization),
659 - fixed UTMP path detection (by Kelledin <kelledin@users.sf.net>),
660 - useradd: rewrited group count to dynamic (by John Newbigin
661 <jnewbigin@ict.swin.edu.au>),
662 - login: fixed create lastlog entry fo users never loged in on non-PAM
663 variant of login (fix by <oracular@ziplip.com>),
664 - remove handle login.defs::NOLOGIN_STR (never used),
665 - useradd: fixes a potential security problem when mailbox is created in
667 Patch and comment by Koblinger Egmont <egmont@uhulinux.hu>:
668 Only two arguments are passed to the open() call though it expects three
669 because O_CREAT is present. Hence the permission of the file first becomes
670 some random garbage found on the stack, and an attacker can perhaps open
671 this file and hold it open for reading or writing before the proper
672 fchmod() is executed. (Actually, we could also pass the final "mode" to
673 the open() call and then save the consequent fchmod().)
674 - SELinux changes: added changes in chage, chfn, chsh, passwd for allow
675 construct more grained user password/accuunt properties on SELinux
676 policies level. Patch originally based on RH changes (submited by Chris
677 PeBenito <pebenito@gentoo.org>),
678 - added SELinux changes: in libmisc/copydir.c (based on Fedora patch),
679 - updated translations: cs, da, es, eu, fi, fr, it, ko, nl, pl, pt, sk, uk,
680 - added new translations: tl,
681 - reindent all source code using -l80,
683 - it man pages (by Danilo Piazzalunga <danilopiazza@libero.it>):
684 -- updated: chfn.1, chsh.1, groups.1, grpck.8, grpconv.8,
685 grpunconv.8, id.1, lastlog.8, login.1, newgrp.1, pwunconv.8, shadow.5,
687 -- new: chage.1, chpasswd.8, expiry.1, faillog.5, faillog.8, getspnam.3,
688 logoutd.8, porttime.5, pwck.8, shadow.3, shadowconfig.8, su.1,
689 - passwd(1): fix #160477 Debian bug: improve -S output description,
690 - newgrp(1): fix #251926, #166173, #113191 Debian bugs: explain why editing /etc/group
691 (without gshadow) doesn't permit to use newgrp,
692 - newgrp(1): newgrp uses /bin/sh (not bash),
693 - faillog(8): updated after rewrited faillog command for use getopt_long(),
694 - login(1): removed fragment about abilities pass enviroment variables in login prompt,
695 - gshadow(5): new file (by Nicolas Nicolas François <nicolas.francois@centraliens.net>),
696 - usermod(8): fixed #302388 Debian bug: added separated -o option description,
698 shadow-4.0.6 -> shadow-4.0.7 26-01-2005
700 - updated translations: da, es, fi, it, nl, pl, pt,
701 - added zh_TW translation (from Debian resources),
702 - remove unused now files in lib/ directory,
703 - switch faillog to use getopt_long(),
704 - added de vigr(8), vipw(8) man pages (from Debian resources),
705 - added ro, sq translations (from Debian resources),
706 - fixed large file support in lastlog and faillog:
707 -- added AC_SYS_LARGEFILE macro to autoconf,
708 -- use fseeko() instead fseek() and remove casting file offsets to unsigned
711 -- rewrited source code using the same style as in chpasswd.c,
712 -- open lastlog file after finish parse comman line optiomns
713 (now --help otput can be displayd for users without lastlog
714 file read permission),
715 -- cleanups in lastlog(8) man page using the same style as in
718 -- switch chpasswd to use getopt_long() and adds a --md5 option
719 (by Ian Gulliver <ian@penguinhosting.net>),
720 -- rewrited chpasswd(8) man page.
722 shadow-4.0.5 -> shadow-4.0.6 08-11-2004
724 - su: fixed adding of pam_env env variables to enviroment
725 (Martin Schlemmer <azarah@nosferatu.za.org>),
726 - autoconf: fixed filling MAIL_SPOOL_DIR and MAIL_SPOOL_FILE variables
727 which was allways empty (Gregorio Guidi <g.guidi@sns.it>),
728 - realuy closse security bug in libmisc/pwdcheck.c,
729 - added missing template/example PAM service config files for chfn, chsh and
731 - do not translate variable names from /etc/default/useradd during
734 shadow-4.0.4.1 -> shadow-4.0.5 27-10-2004
736 - change libmisc to private static library,
737 - added SELinux support (basing on patch from Gentoo),
738 - chage: more verbose/human readable -l output. This output is much more
739 beter for send directly via email for each users as message with account
740 status (for example as message with warning about account/password expiration),
741 - login: fixed handle -f option: now it works correctly without specify "-h
742 <host>" if open login session localy is required (thanks for help
743 investigate bug for Krzysztof Kotlenga),
744 - userdel: when removing a user with userdel, userdel was always exits with 1 (fixed).
745 Based on http://bugs.gentoo.org/show_bug.cgi?id=66687,
746 - useradd: added handle /etc/defaults/useradd::CREATE_MAIL_SPOOL={yes|no}.
747 Now on adding user account can be also created empty user mail spool.
748 Curent code handle only mailbox.
749 TODO: add handle create user mail spool in maildir format.
750 - useradd: when placing symlinks into /etc/skel copy_tree of
751 libmisc/copydir.c will properly create the symlink in the destination
752 directory but not change the ownership to the target user/group. This
753 makes httpd Option SymlinkIfOwnerMatch break for default weg pages
754 including symlinks placed into /etc/skel/public_html for example.
755 http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=66819
756 - su: add pam_open_session() support. If builded without PAM support
757 propagate $DISPLAY and $XAUTHORITY enviroment variables.
758 Based on http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-apps/shadow/files/shadow-4.0.4.1-su-pam_open_session.patch?rev=1.1
759 - applied 036_pam_access_with_preauth.patch Debian patch submited by Bjorn
760 Torkelsson <Bjorn.Torkelsson@hpc2n.umu.se>: add support for PAM account
761 management to restrict access using pam_access when login is invoked with -f.
762 - applied Owl patches by Solar Designer <solar@openwall.com>:
763 shadow-4.0.4.1-owl-pam-auth.diff:
764 Moved the PAM authentication in user management commands after
765 command-line parsing, made it use separate service names for each command.
766 Use constant strings rather than argv[0] for syslog ident in the user
768 shadow-4.0.4.1-owl-tmp.diff:
769 Remove using mktemp() if mkstemp() prototype not found (use allways mkstemp()),
770 shadow-4.0.4.1-owl-check-reads.diff:
771 Add checking for read errors in commonio and vipw/vigr (not doing so could
772 result in data loss when the records are written back),
773 - fixed securirty bug in libmisc/pwdcheck.c which allow unauthorized
774 account properties modification.
775 Affected tools: chfn and chsh.
776 Bug was discovered by Martin Schulze <joey@infodrom.org>.
777 - added it translation (by Danilo Piazzalunga <danilopiazza@libero.it>),
778 - added sk translation (by Peter Mann <Peter.Mann@tuke.sk>, submited by Christian
779 Perrier <bubulle@kheops.frmug.org>),
780 - added es translation (by Ruben Porras <nahoo82@telefonica.net>),
781 - updated ko translation (by Changwoo Ryu <cwryu@debian.org>),
782 - added fi translation (by Tommi Vainikainen <thv@iki.fi>),
783 - new translations: bs, ca, da, eu, he, id, nb, nl, nn, pt, pt_BR, tr,
784 zh_CN (stolen from Debian),
785 - remove adduser(8) roff include man page to useradd(8).
787 shadow-4.0.4 => shadow-4.0.4.1 14-01-2004
788 - bug fixes in automake files for generate correct tar ball on "make dist":
789 added mising "EXTRA_DIST = $(man_MANS)" in man/*/Makefile.am.
791 shadow-4.0.3 => shadow-4.0.4 14-01-2004
794 - added missing information about -f options in groupadd usage mesage
795 (document this also in man page),
796 - removed TCFS support (tcfs is dead),
797 - convert all po/*.po files to utf-8,
798 - one TODO entry gone: fix nscd flushing databases on change (use
799 per service flushing method instead HUPing nscd process),
800 - removed old AUTH_METHODS dependent code,
801 - chage: now all code depend on SHADOWPWD. If shadow will not be configured
802 on autoconf level for using shadow possword chage is olny stub which
803 informs "chage not configured for shadow password support."
805 - login: remove handle login.defs::DIALUPS_CHECK_ENAB code,
806 - login: remove handle login.defs::NO_PASSWORD_CONSOLE code,
807 - ALL tools, libraries: remove old SVR4, SVR4_SI86_EUA BSD_QUOTA and ATT_AGE
809 - ALL: ready for gettext 0.11.5, automake 1.7.4, autoconf 2.57,
810 - logoutd, userd: handle also utmpx if avalaile,
811 - newgrp: fix for non-PAM version
812 Use CLOSE_SESSIONS depending code only when USE_PAM.
813 The problem was reported by Mattias Webjorn Eriksson using Slackware
814 8.1 and reproduced it using slackware-current (9.0beta) (fix submited by
815 Simon Williams <simon@no-dns-yet.org.uk>),
816 - fix in too_many_failures() function: incorrect if() condition in non-PAM
817 dependent code in fail login handling (fixed by Krzysztof
818 Oledzki <ole@ans.pl>),
820 - install groups(1) man page (moved from EXTRA_DIST to man_MANS),
821 - removed pwauth(8), d_passwd(5), dialups(5) man pages,
822 - remove text about password aging from passwd(5) (based on Debian changes),
823 - document useradd and groupadd -M option in en and pl man pages
824 (by Jakub Mikusek <mick3y@o.k.pl>).
825 - added ru passwd(1) man page from KSI resources,
826 - added es man pages found in Conectiva distribution resources,
827 - added chch(1), chfn(1) man pages from chinese man pages translation
829 - added id(1) man page czech man pages translation project,
830 - updated ja man pages and added expiry(1),
831 - removed old doc/ANNOUNCE,
832 - updated german passwd(1), chsh(1) and login(1) man page and added chfn(1)
833 (by Josef Spillner <josef@ggzgamingzone.org>),
834 - many other cleanups and unifications in man pages.
836 shadow-4.0.2 => shadow-4.0.3 13-03-2002
838 - added variouse cs, de, fr, id, it, ko man pages found mainly in national
839 man pages translations projects (this documents are not synced with
840 current en version but you know .. "Documentations is lik sex. When it is
841 good it very very good. Whet it is bad it is better than nothing."). Any
842 changes for syncing this are welcome and for anyone who will want maintain
843 this documents directly I can give cvs write access to project resources.
844 - added new de translation (by Frank Schmid <frank@cs-schmid.de>).
845 - fixed building --with-shared: swapped utent (in src/login.c and
846 libmisc/utmp.c) and pwent (in libmisc/suauth.c and src/su.c)
847 definition/extern (by Dimitar Zhekov <jimmy@is-vn.bg>).
848 - minor changes and updates in man pages (also merged
849 shadow-4.0.0-owl-man.patch by Solar Designer <solar@openwall.com>).
851 shadow-4.0.1 => shadow-4.0.2 17-02-2002
853 - resolve many fuzzy translations also all this which may cause problems on
854 displaing long uid/gid,
855 - allow use "$" on ending in cereated by useradd usermname accounts for allow
856 create machine acounts for samba (thanks to Jerome Borsboom
857 <borsboom@tch.fgg.eur.nl> for point this problem in 4.0.1),
858 - fix small but ugly bug in configure.in in libpam_mics library detection.
860 shadow-4.0.0 => shadow-4.0.1
862 - added ability to log session closes in newgrp
863 (Joseph Parmelee <jparmele@wildbear.com>),
864 - add -pcs to .indent.pro file and reindent all code in src/,
865 - remove "\n" from all SYSLOG() messages,
866 - finish integrate AGING code into SHADOWPW,
867 - remove handle old HAVE_USERSEC_H code,
868 - updated ja and added hu man pages,
869 - applied patches by Solar Designer <solar@openwall.com>:
870 shadow-4.0.0-owl-chage-drop-priv.diffd
871 shadow-4.0.0-owl-chage-ro-no-lock.diff:
872 Added locks which are needed when doing r/w accesses, not when running
873 as root. If root does read-only, there's no lock needed. Added missing
874 "#include <errno.h>" for above (me).
875 shadow-4.0.0-owl-warnings.diff
876 Olny one fix from this patch was aplayd because other was fixed few days
878 shadow-4.0.0-owl-check_names.diff
879 Merge only prat this patch with checking login name matching; checking
880 is login string isn't longer than possible it will be good prepare using
881 probably _POSIX_LOGIN_NAME_MAX from <bits/posix1_lim.h>,
882 shadow-4.0.0-owl-chage-drop-priv.diff
883 shadow-4.0.0-owl-pam-auth.diff
884 Merge part with reorder initialize PAM and checkin is chage is runed by
885 root or not - now chage can be runed from non-root account for checking
886 by user own account information (if PAM enabled).
887 - fixes for handle/print correctly 32bit uid/gid (Thorsten Kukuk <kukuk@suse.de>),
888 - implemented functions for better reloading the nscd cache (per NSS map)
889 (Thorsten Kukuk <kukuk@suse.de>),
890 - fixed warnings "not used but defined" on compile using gcc 3.0.x
891 (bulletpr00ph <bullet@users.sourceforge.net>),
892 - added ja, ko translations found in SuSE,
893 - added symlinks: newgrp -> sg, vipw -> vigr,
894 - added vigr(1) man page as roff .so link to vipw(1),
895 - added sg(1) man page as roff .so link to newgrp(1),
896 - installed fix for SEGV when using pwck -s on /etc/passwd file with
899 shadow-20001016 => shadow-4.0.0 06-01-2002
901 - fix bug discovered and fixed by Marcel Ritter
902 <Marcel.Ritter@rrze.uni-erlangen.de>
903 Due to a big buffer size in lib/commonio.c this error does only appear
904 if a line gets longer than 4096 bytes (there are probably very few people
905 stumbling across this).
906 Ths bug can be exposed by trashing /etc/groups file using useradd with script:
911 while [ $NUM -le 1000 ]; do
912 useradd -g demogroup -G demogroup -p "NONE" user$NUM
915 - remove limit 32 to groups per user by (the same user can belong to
916 more than 32 groups) by use sysconf(_SC_NGROUPS_MAX) instead constant
917 NGROUPS_MAX (patch by Radu Constantin Rendec <radu.rendec@ines.ro>)
918 NOTE: it probably need testing on other system for add
919 some condition for using sysconf(_SC_NGROUPS_MAX) or NGROUPS_MAX constant,
920 - added -s option to {pw,grp}ck to sort checked files by UID/GID,
921 - drop detecting is pam_strerror() need one or two arguments. Instead using
922 PAM_STRERROR() macro use directly pam_strerror() function with two
923 arguments. pam_strerror() with one argument is obsoleted,
924 - adde ja man pages (probably some man pages need update),
925 - much better automake support,
926 - added pt_BR man pages for gpasswd(1), groupadd(8), groupdel(8),
927 groupmod(8), shadow(5) (man pages for other nations also are welcome),
928 - mamny small fixes and updates nad improvements in man pages,
929 - aplayed Debian patch to man pages for shadowconfig,
930 - remove limit to 6 chars logged tty name (012_libmisc_sulog.c.diff Debian
933 shadow-20001012 -> shadow-20001016:
934 - conditionaly disabled body reload_nscd() because not every
935 version of nscd can handle it (this can be enabled by define
936 ENABLE_NSCD_SIGHUP) (Marek Michałkiewicz <marekm@linux.org.pl>)
937 - fixes on autoconf/automake level for dist target,
938 - Julianne F. Haugh new contact adress.
940 shadow-20000902 => shadow-20001012
942 - removed /redhat directory with obsoleted files (partialy rewrited spec
943 file is now in root directory),
944 - aplayed shadow-19990827-group.patch patch from RH wich prevents adduser
945 overwrite previously existing groups in adduser,
946 - added PAM support for chage (bind to "chage" PAM config file) also
947 added PAM support for all other small tools like chpasswd, groupadd,
948 groupdel, groupmod, newusers, useradd, userdel, usermod (bind to common
949 "shadow" PAM config file) - this modificaytions mainly based on
950 modifications prepared by Janek Rękojarski <baggins@pld.org.pl>,
951 - many small fixes and improvments in automake (mow "make dist"
953 - added cs translation (Jiri Pavlovsky <Jiri.Pavlovsky@ff.cuni.cz>).
955 shadow-20000826 => shadow-20000902
957 This is probably the last release from me.
958 Tomasz Kloczko <kloczek@rudy.mif.pg.gda.pl> is the new maintainer.
961 (I'm still interested to know what is going on with this package,
962 which is fairly important to many Linux distributions, so please
963 Cc: marekm@linux.org.pl in any related discussions - just don't
964 expect me to respond quickly...)
966 Previous warning still applies - be careful!
968 - applied some of the Red Hat patches (revised slightly), thanks to
969 Bernhard Rosenkraenzer <bero@redhat.de>: fix for truncated long
970 lines (>8K) in /etc/group, send SIGHUP to nscd (caching daemon
971 in glibc 2.1.x) after changing anything, add usermod -L and -U
972 options, remove LOG_CONS from openlog(), chage -d and -E handles
973 dates in yyyy-mm-dd format ('/' is not required)
976 shadow-19990827 => shadow-20000826
978 WARNING: this release is not tested (other than that it compiles for me),
979 please be careful. Previous release was a year ago, so it is really time
980 to release something and start looking for a new, better maintainer...
981 (I've been extremely busy recently. Credit for most of the real work,
982 such as complete PAM support, should go to Ben Collins <bcollins@debian.org>
983 who maintains this package for Debian.)
985 - merged most of the changes from Debian (not all of them yet, PAM support
986 should be complete but is not tested - need to upgrade to potato first)
987 - added Polish translations of manual pages from PLD
988 - change sulog() to not depend on global variables oldname, name
989 - try to not follow symbolic links when deleting files recursively
990 in userdel (still not perfect, safest to do it in single user mode)
991 - removed workarounds for ancient (pre-ANSI) C compilers - use gcc!
992 (a few ANSI C constructs were used already, and no one complained)
993 - updated author's e-mail address (jfh@bga.com -> jfh@austin.ibm.com)
995 shadow-19990709 => shadow-19990827
997 - upgrade to autoconf-2.13, automake-1.4, libtool-1.3.3
998 - i18n: added French translation by Vincent Renardias <vincent@ldsol.com>
999 - i18n: added Swedish translation by Kristoffer Brånemyr <ztion@swipnet.se>
1000 - logoutd no longer reads /etc/logoutd.mesg at startup - instead, read
1001 it when sending to luser's tty (no need to reload with SIGHUP)
1002 - added support for "usergroups" feature often found in Linux distributions
1003 (if USERGROUPS_ENAB in login.defs set to "yes", uid != 0, uid == gid, and
1004 username == groupname, then set umask to 002 instead of 022)
1005 - Debian: pwck and grpck are now run from a daily cron job (root will
1006 receive an e-mail if something is wrong), and at system startup
1007 - added support for setting umask in /etc/limits
1008 - when using OPIE, re-prompt with echo on after empty password was entered
1009 - GETPASS_ASTERISKS now run time configurable (login.defs)
1010 - getpass() now uses stdin and stderr (not stdout) if it can't open /dev/tty
1011 - getpass() allows all input to be erased using Control-U, and beeps when
1012 too many characters are entered
1013 - removed obsolete sgtty support, in 1999 everyone should have termios :)
1014 - Debian: tar wrapper no longer needed to build packages as non-root user
1015 (install libtricks, and use "dpkg-buildpackage -rfakeroot" instead)
1016 - Debian: changes for GNU Hurd by Marcus Brinkmann <brinkmd@debian.org>:
1017 dpkg-architecture, cross compilation, only build passwd, add
1018 etc/login.defs.hurd conffile, conditionalize CBAUD
1019 - newgrp sets $HOME before running the new shell
1020 - both "sg group command" (usage message) and "sg group -c command"
1021 (man page) work, updated both the usage message and the man page :)
1022 - i18n: added missing _() for some translatable strings
1024 shadow-19990607 => shadow-19990709
1026 - added PAM support to chfn and chsh (thanks to Thorsten Kukuk)
1027 - fixed a bug in newgrp if the user is in >= 17 groups
1028 - added @LIBSKEY@ to LDADD for all programs (for some reason,
1029 almost all programs need it if skey/opie support is enabled)
1030 - changed grpconv/grpunconv to compile with --disable-shadowgrp
1031 - changed faillog to do something (assume -p) with no options specified
1032 - updated version of the udbachk passwd/shadow/group file integrity
1033 checker (contrib/udbachk.v012.tgz)
1035 shadow-19990307 => shadow-19990607
1037 - upgraded to libtool-1.2, latest config.{guess,sub}
1038 - added missing #include "defines.h" in libmisc/login_desrpc.c - thanks
1039 to almost everyone for reporting it :-)
1040 - moved PAM-related defines to pam_defs.h
1041 - added some braces to if/else to avoid egcs warnings
1042 - started adding PAM support to login (based on util-linux, not finished yet)
1043 - changed "!" to "x" for pw_passwd in src/newusers.c
1044 - a few more Y2K fixes
1045 - added contrib/udbachk.tgz (passwd/shadow/group file integrity checker),
1046 thanks to Sami Kerola
1047 - Debian: made /etc/{limits,login.access,login.defs,porttime,securetty}
1048 files all mode 0600 (Bug#38729 - login: /etc/limits is world readable)
1049 - updated mailing list information (moved again, now hosted by SuSE),
1050 updated README.mirrors, other minor documentation updates
1051 - made getpass work with redirected stdin
1052 - new readpass echoing asterisks disabled by default by popular demand
1053 (can be enabled at compile time: ./configure --enable-readpass)
1054 - the random number of asterisks in readpass is now more random
1055 (random number generator initialization was missing)
1056 - commented out --enable-md5crypt (obsolete) in configure.in
1057 - when checking for libskey, link with -lcrypt if libcrypt is available
1058 (otherwise the configure test for libskey fails - libskey needs libcrypt)
1059 - added Package/Version ident strings (so you can use the RCS "ident"
1060 command to check any binary, which version of shadow it comes from)
1062 shadow-981228 => shadow-19990307
1064 - added support for setting process priority in /etc/limits
1065 - i18n: updated Greek translation
1066 - i18n: added Polish translation by Arkadiusz Miskiewicz
1067 - documented the -p option in useradd.8 and usermod.8 man pages
1068 - some "const" gcc warning fixes
1069 - attempt to fix lib/snprintf.c compilation problems
1070 - added restart/reload/force-reload to /etc/init.d/logoutd (found by lintian)
1071 - always require password for root logins (even with NO_PASSWORD_CONSOLE)
1072 - workaround for RedHat's CREATE_HOME feature in /etc/login.defs
1073 - changed to Y2K compatible version numbering
1074 - more Y2K fixes, use the ISO 8601 date format (yyyy-mm-dd) for default
1075 values of user-entered dates (you can still enter dates in any format
1076 supported by GNU date)
1077 - oops, added doc/README.nls to list of files to distribute
1078 - added missing sanitize_env() call to src/login.c
1079 - debian/rules installs /bin/login non-setuid by default, just in case...
1080 - build Debian packages with cracklib support (depends on cracklib-runtime)
1082 shadow-980724 => shadow-981228
1084 - login now clears the username in argv[] (in case someone types the
1085 password instead of username, by mistake)
1086 - i18n support, Greek translation (Nikos Mavroyanopoulos), see README.nls
1087 - updated author's e-mail address (jfh@tab.com -> jfh@bga.com)
1088 - new getpass() replacement that displays *'s (Pavel Machek)
1089 - no password required when logging in from ttys listed under
1090 NO_PASSWORD_CONSOLE in login.defs (Pavel Machek)
1091 - fixed limits code so RLIMIT_AS should work
1092 - upgraded to Debian 2.0
1093 - built a new machine (P2 350MHz, 64MB RAM) so the thing can be compiled
1094 in reasonable time again
1095 - upgraded to automake-1.3, libtool-1.0h (also new config.guess and
1096 config.sub that work on i686)
1097 - usermod fixed to handle group names starting with digits (not recommended)
1099 shadow-980626 => shadow-980724
1101 - security: login no longer gives you a root shell if setgid()
1102 or initgroups() or setuid() fails for any reason, discovered
1103 by Ted Hickman <thickman@sy.net>
1104 - remove libshadow.so -> libshadow.so.x.x symlink after install
1105 - a few int -> uid_t type cleanups
1106 - fail immediately (don't retry) in *_lock() if euid != 0
1107 - added sample PAM config files etc/pam.d/{passwd,su}
1108 - preliminary PAM support in su (untested - use at your own risk,
1109 comments and patches welcome!)
1110 - cleanup and more comments in OPIE code (Algis Rudys)
1111 - added support for TCFS (Transparent Cryptographic File System)
1112 (use ./configure --with-libtcfs, see http://tcfs.dia.unisa.it/
1113 for more info), thanks to Aniello Del Sorbo
1115 shadow-980529 => shadow-980626
1117 - fixed bug in commonio_lock() (infinite recursion if lckpwdf() not
1118 used and database cannot be locked), thanks to Jonathan Hankins
1119 - fixed bug in copy_tree() (NUL-terminate readlink() results),
1120 thanks to Lutz Schwalowsky
1121 - no need to press Enter after Ctrl-C to interrupt password prompt
1122 - removed a few harmless gcc warnings
1123 - secure RPC login disabled if <rpc/key_prot.h> not found (glibc 2.0)
1124 - faillog.8: changed /usr/adm -> /var/log
1125 - pwconv.8: documented that it may fail on invalid password files
1127 shadow-980417 => shadow-980529
1129 - fixed "interesting" strzero() bug introduced by me in 980417:
1130 strzero(cp) didn't work as intended (the macro used a local
1131 variable called "cp" - oops...); Leonard N. Zubkoff was the
1132 first person to report it - thanks!
1133 - fixed usermod -e to accept empty argument (like useradd),
1134 thanks to Martin Bene
1135 - several changes from Debian 980403-0.2, see debian/changelog
1136 - added contrib/shadow-anonftp.patch (not yet merged, sorry...)
1137 thanks to Calle Karlsson
1139 shadow-980403 => shadow-980417
1141 - fixed login session limits (again - broken since 980130)
1142 - more symbolic constants for exit status values
1143 - fixed logoutd to work with 8-character usernames in utmp
1144 (no room for terminating NUL!)
1145 - various fixes to make the code more glibc2-friendly
1146 - updated doc/cracklib26.diff (fix for empty gecos, etc.)
1147 - updated the files in redhat/ from shadow-utils-970616-11.src.rpm
1150 shadow-980130 => shadow-980403
1152 - security: su now creates the sulog file (if enabled and doesn't
1153 already exist) with umask 077
1154 - hopefully removed arbitrary group size limits (not yet for
1155 shadow groups though - sgetsgent() still needs a rewrite,
1156 but I don't want to delay this release any longer...)
1157 - fixed NULL dereference in groupmod -n
1159 shadow-971215 => shadow-980130
1161 - Debian binary packages can be built without root privileges
1162 (tar wrapper - debian/tar.c)
1163 - new subdir "redhat" (needs more work, see redhat/README)
1164 - in several places, exit(127) if exec fails with ENOENT, and
1165 exit(126) on other errors (as in ksh and bash)
1166 - renamed getpass() and md5_crypt() to libshadow_* to avoid name
1167 conflicts with libc functions - md5_crypt() is also in libcrypt.a
1168 on Linux/PPC, thanks to Anton Gluck <gluc@midway.uchicago.edu>
1169 - handle crypt() returning NULL (possible according to Single Unix
1170 Spec) more gracefully (exit instead of SIGSEGV)
1171 - fixed bug in putgrent() that showed up when realloc() moved the
1172 buffer while expanding it, thanks to Floody <flood@evcom.net>
1173 - fixed bug in login session limits (with a limit set to N logins,
1174 only N-1 logins were allowed), thanks to Floody <flood@evcom.net>
1175 - upgraded to libtool-1.0h (now recognizes GNU ld on Debian 1.3.1)
1176 - newer config.guess and config.sub (should work on x86 for x > 5)
1177 - removed doc/automake-1.0.diff (obsoleted by automake-1.2)
1178 - added doc/cracklib26.diff (some patches for cracklib-2.6)
1179 - documented more (not all yet) login.defs(5) settings
1180 - replaced more exit status numeric values with #defines
1181 - shadow-utils.spec now generated from shadow-utils.spec.in
1182 (so I don't have to edit version numbers for every new release)
1183 - groupadd -f option, based on RedHat's shadow-utils-970616-9 patch
1184 ("force" - exit(0) if the group already exists); other RedHat-
1185 specific options not added yet (best done in a perl script that
1186 runs useradd/usermod/groupadd - see Debian's adduser-3.x)
1187 - added -O option (override login.defs values) to useradd and groupadd
1188 - if usermod can't update the group file(s), exit(10) but update the
1189 password file(s) anyway (as documented by Solaris man page)
1190 - useradd should no longer set sp_expire to the current date (oops)
1191 - configure.in: added --enable-desrpc, check for gethostbyname in libc
1192 before trying libnsl (necessary for Solaris; not for Linux or Irix,
1193 even though libnsl may be present), fixed pw_age/pw_comment/pw_quota
1194 detection, setpgrp vs. setpgid, other minor tweaks
1195 - various */Makefile.am tweaks
1196 - login.defs: added FAKE_SHELL - program to run instead of the login
1197 shell, with the real shell in argv[0] (Frank Denis)
1198 - login.defs: ignore case in yes/no settings
1199 - more E_* defines instead of hardcoded numbers for exit()
1200 - added sanitize_env() for setuid programs
1201 - login_desrpc() checks for getnetname() errors
1202 - new password is not "too similar" if it is long enough
1203 - replacement strstr() was static, no one noticed :-)
1204 - {pw,spw}_lock() and {pw,spw}_unlock() track the lock count and call
1205 lckpwdf() and ulckpwdf() as needed, *_lock_first() hack removed
1206 - login sets $REMOTEHOST for remote logins
1207 - added newgrp -l option (Single Unix Spec, same as "-")
1208 - EXPERIMENTAL shared lib support using libtool (libshadow.so saves about
1209 200K of disk space on Linux/x86), enabled by default if supported by
1210 the system, use ./configure --disable-shared if it causes any problems.
1211 Warning: libshadow.so is intended for internal use by this package
1212 only - binary compatibility with future releases is not guaranteed.
1213 There should be no need to link any other programs with libshadow.so -
1214 the libshadow.so -> libshadow.so.x.x symlink is unnecessary.
1215 - pam_strerror() takes one or two arguments, depending on the Linux-PAM
1216 version (!) - added check to configure; fixed do_pam_passwd prototype
1217 - libmisc/login_access.c should compile on Linux/PPC and Solaris
1218 - added information about the new ftp site to doc/README.mirrors
1220 shadow-971001 => shadow-971215
1222 - added workaround for NYS libc 5.3.12 (RedHat 4.2) bug to grpck
1223 - updated the RPM .spec file
1224 - renamed rlogin() to do_rlogin() to avoid Linux/PPC build problem
1225 (glibc defines something else named "rlogin" in utmpbits.h ?)
1226 - added MD5 checksums in Debian packages
1227 - added -p and -g options to vipw (edit the password or group file
1228 respectively, regardless of the command name in argv[0])
1229 - removed old DBM support (NDBM code is still there)
1230 - fixed a bug in gpasswd: current username was incorrectly identified as
1231 "root" because of setuid(0) done too early. It may be a security hole
1232 when using shadow groups - if "root" is listed as a group administrator,
1233 any user can add/remove members in that group. Thanks to Jesse Thilo.
1234 - gpasswd now logs which user (root or group admin) made the changes
1235 - passwd now uses $PATH to search for the chfn, chsh, gpasswd commands
1236 - newgrp and add_groups() allocate supplementary group lists dynamically
1237 - moved check_shell() from src/chsh.c to libmisc/chkshell.c
1238 - CHFN_RESTRICT in login.defs can now specify exactly which fields may be
1239 changed by regular users (any combination of letters "frwh")
1240 - fixed contrib/pwdauth.c segfault with non-existent usernames
1241 - minor change in lib/getdef.c to handle quotes better (Juergen Heinzl)
1242 - new date parsing code (from GNU date) used by useradd, usermod, chage
1243 - upgraded to automake-1.2, added libtool-0.7 (no libshadow.so yet)
1244 - converted code to ANSI C, added ansi2knr (untested - use gcc!)
1245 - fixed useradd -G segfault (one '*' that shouldn't be there)
1246 - allow 8-bit characters in chfn
1247 - added support for RLIMIT_AS (max address space) in libmisc/limits.c
1248 - changed the handling of NIS plus entries in password files
1249 - some more tweaking in various debian/* files
1250 - logoutd uses getutent() instead of reading utmp file directly
1251 - fixed lckpwdf() called twice (and failing) when changing password
1252 if the user is not listed in /etc/shadow (Mike Pakovic)
1253 - erase and kill characters left unchanged if not defined in login.defs
1255 shadow-970616 => shadow-971001
1257 - Debian: mkpasswd no longer installed (dbm files not supported)
1258 - chpasswd checks for shadow/non-shadow at run time, too
1259 - added chpasswd -e (input file with encrypted passwords) - Jay Soffian
1260 - changed libmisc/login_access.c as suggested by Dave Hagewood
1261 - replaced sprintf() with snprintf() in several places
1262 - added lib/snprintf.[ch] (from XFree86) for systems without snprintf()
1263 - minor tweaks in contrib/adduser.c (/usr/local -> /usr)
1264 - non-root users can only run su with a terminal on stdin
1265 - temporarily disabled DES_RPC because getsecretkey() causes login to hang
1266 for 5 minutes on at least one RH 4.0 system. Not sure if this is a bug
1267 in libc, or system misconfiguration. Needs further investigation.
1268 - check for strerror() and -lrpcsvc (should compile on SunOS again)
1269 - fixed free() called twice in libmisc/mail.c
1270 - added information about mirror sites (doc/README.mirrors)
1271 - updated pwconv.8 and pwunconv.8 man pages
1272 - "make install" now installs pwconv, pwunconv, grpconv, grpunconv
1273 - pwauth.8 no longer installed (AUTH_METHODS not supported by default)
1274 - corrected su.1 man page ($SHELL not used)
1275 - no need for --with-md5crypt if the MD5-based crypt() is already in libc
1276 (or another library specified in /etc/ld.so.preload - Linux ld.so 1.8.0+)
1277 - cleaned up PASS_MAX in getpass() (127 always assumed)
1278 - default editor for vipw changed from /bin/ae to a real editor :)
1280 shadow-970601 => shadow-970616
1282 - fixed execlp call (missing NULL) in src/vipw.c
1283 - vipw now preserves permissions on edited files
1284 - commented out the xdm-shadow hack in shadowconfig
1285 - improved RedHat spec file (Timo Karjalainen)
1286 - updated mailing list information
1287 - added information about the shadow paper (doc/README.shadow-paper)
1288 - renamed doc/console.c.spec (confused RPM)
1290 shadow-970502-2 => shadow-970601
1292 - fixed a typo in libmisc/mail.c causing login to segfault
1293 if MAIL_CHECK_ENAB=yes (sorry!)
1294 - patches for OPIE support (Algis Rudys) (untested)
1295 - programs that modify /etc/passwd or /etc/shadow will use
1296 lckpwdf() if available
1297 - now compiles with PAM support! (still untested)
1298 - cosmetic error message changes (prefixed by argv[0]:)
1300 shadow-970216 => shadow-970502-2
1302 - shadow group support fixes (grpconv didn't work - for some
1303 reason, putsgent() returns 1 instead of 0 on success;
1304 now -1 = failure, anything else = success)
1305 - upgraded to autoconf-2.12
1306 - pwconv and pwunconv now follow other UN*X systems and SVID3
1307 (modify files in place), original versions moved to "old"
1308 - scologin.c moved to "old" (it was only for SCO Xenix) so
1309 people stop sending patches for scologin.c gcc warnings :)
1310 - don't use the MD5* functions in libmisc/salt.c (glibc has
1311 the new md5 crypt(), but no <md5.h> and MD5* functions!)
1312 - support for MkLinux, Solaris, JIS, Qmail (Frank Denis)
1313 - "passwd -S -a" now really works
1314 - support for Debian, vipw, a few fixes (Guy Maor)
1315 - src/login.c radius bug fix (Rafal Maszkowski)
1316 - ISSUE_FILE_ENAB -> ISSUE_FILE in the sample /etc/login.defs
1317 - fixes for glibc and DES_RPC (Thorsten Kukuk)
1318 - limits.5 man page (Luca Berra)
1319 - expiry will work setgid shadow too, removed euid 0 check
1320 - added check for a64l() to configure (glibc)
1322 shadow-961025 => shadow-970216
1324 - major rewrite of *io.c (no more 4 copies of almost identical code)
1325 - use fsync() (if available) instead of sync() when updating password files
1326 - use fchmod() and fchown() if available
1327 - keep the NIS "plus on a line by itself" entries at end of passwd/group
1328 - configure checks location of passwd/chfn/chsh programs (/usr/bin or /bin)
1329 - passwd -S -a: list information about all users (root only)
1330 - passwd -k: change only expired passwords
1331 - passwd -q: quiet mode
1332 - first attempt at PAM support in passwd
1333 - passwd updates the non-shadow password if /etc/shadow exists but the
1334 user has no shadow password
1335 - passwd logs who changed the password, added hook to allow non-root
1336 administrators who can change passwords (not implemented yet)
1337 - su sets $HOME even without the "-" option (suggested by Joey Hess)
1338 - added -p (set encrypted password) option to useradd and usermod
1339 (idea from hpux10 - undocumented option used internally by SAM)
1340 - useradd -D -e does the right thing (set default expiration date)
1341 - USERDEL_CMD in login.defs instead of hardcoded {ATRM,CRONTAB}_COMMAND
1342 because there are just too many systems that need different commands
1343 - removed #ifdef FAILLOG_LOCKTIME (now always enabled), warning: the
1344 faillog file format has been changed (somewhere between 960129 and
1345 960810), please truncate the old file (if any) to zero length
1346 - ISSUE_FILE (may be different from /etc/issue) instead of ISSUE_FILE_ENAB
1347 - wtmp, lastlog, faillog file location guessed by configure
1348 - separate checks for invalid user and group names, max username length
1349 based on struct utmp (it's not always 8 characters)
1350 - pwck and grpck now check for invalid user/group names
1351 - pwck -q (quiet, report only serious problems) option added
1352 - separate cleaner sgetpwent() without the NIS magic
1353 - NIS entries ignored (never changed) by *io.c, pwck, grpck
1354 - various code cleanups
1355 - new get_my_pwent() function for getting my own username, uid etc.
1356 - faillog opens the file read-write if possible (even if not root)
1357 - passwd -S allowed for normal users (for their own uid only)
1358 - handle the case of login denied to passwordless accounts better
1359 ("Login incorrect" without "Password:" prompt looks strange)
1360 - corrected author information and removed a copyright restriction
1362 shadow-960925 => shadow-961025
1364 - fixed a few typos in shadow group code
1365 - don't check for names starting with 'r' to determine if the shell
1366 is restricted, use /etc/shells instead (for the "rc" shell)
1367 - removed extra definition of LASTLOG_FILE in configure.in
1368 - expiry no longer segfaults if no /etc/shadow
1369 - userdel -r "can't remove mailbox" warning no longer printed on success
1370 - useradd exit codes changed to match hpux10 man page
1371 - fixed possible fd leak etc. in file locking code (lib/commonio.c)
1373 shadow-960920 => shadow-960925
1375 - bug fixes to the new environment code using malloc
1376 - use hardcoded names instead of basename(argv[0]) for openlog() in programs
1377 that users can run (chage, chfn, chsh, gpasswd, login, newgrp, passwd, su)
1378 - small fix to isexpired(), and use it in passwd as well
1379 - use strftime() and strptime() if available
1380 - added chmod 600 /etc/passwd- at the end of pwconv5 (backup file may
1381 contain encrypted passwords!)
1382 - pass size to change_field (chage, chfn, chsh) instead of assuming BUFSIZ
1383 (nothing bad happened yet, just a cleanup)
1384 - gpasswd should work with both shadow and non-shadow group passwords
1385 - detect unsupported options if no shadow (gpasswd, useradd, usermod)
1386 - passwd -e for sunos4 (ATT_AGE), untested
1387 - read environment from file (ENVIRON_FILE in login.defs), idea from ssh
1388 - small fix to l64a()
1389 - passwd prints a message after password successfully changed (for things
1390 like poppassd which run passwd and expect some output)
1391 - passwd logs if password was changed by root (as opposed to a luser)
1392 - passwd uses current uid if no username argument and getlogin() fails
1394 shadow-960910 => shadow-960920
1396 - use malloc for environment variables, no more MAXENV (Juergen Heinzl)
1397 - newusers should work with both shadow and non-shadow passwords
1398 (still left to do: chpasswd, gpasswd)
1399 - login-static no longer compiled by default
1400 - more SYSLOG() macros
1402 shadow-960810 => shadow-960910
1404 - updated README.linux to point to the new ftp site
1405 - chfn and chsh optionally (CHFN_AUTH) prompt for password like util-linux
1406 - man pages now closer to LDP standards (Ivan Nejgebauer)
1407 - newgrp uses SYSLOG_SG_ENAB (not SU) as in the /etc/login.defs comments
1408 - obscure.c fixed to compile with HAVE_LIBCRACK
1409 - cosmetic message changes in age.c
1410 - utmp open error check fixed in utmp.c
1411 - grpunconv added (Michael Meskes)
1412 - login reports invalid login time, not "Login incorrect" (Ivan Nejgebauer)
1413 - logoutd sets OPOST before writing to the tty (Ivan Nejgebauer)
1414 - sulogin: don't use syslog(), other minor changes (Ivan Nejgebauer)
1415 - passwords can be changed if sp_max == -1 (now considered infinity)
1416 - usermod: don't use sizeof(struct lastlog) when writing to faillog (ugh)
1417 - started replacing lots of #ifdef USE_SYSLOG with cleaner macros
1418 - contrib/rpasswd.c added (Joshua Cowan)
1419 - PASS_MAX is 127 with MD5_CRYPT (not just for Linux - sunos4 too...)
1420 - workarounds for a RedHat NYS libc getspnam() bug (if /etc/shadow
1421 doesn't exist, it succeeds and returns sp_lstchg==0 instead of -1).
1423 shadow-960129 => shadow-960810
1425 - automake, configure checks for libcrypt and libcrack (Janos Farkas)
1426 - added --enable-shadowgrp to configure (shadow groups disabled by default)
1427 - should compile on SunOS 4.1.x - but it does NOT mean that it works :-)
1428 - login sets HUSHLOGIN=TRUE or FALSE (for shell startup scripts etc.)
1429 - hopefully removed all the rcsid warnings
1430 - contrib/atudel perl script to remove at jobs (thanks to Brian Gaeke)
1431 - resource limits (Cristian Gafton)
1432 - workaround for buggy init/getty(?) leaving junk in ut_host on RedHat
1433 - more fixes in man pages
1434 - pwck and grpck no longer suggest to run mkpasswd if *DBM not compiled in
1435 - most programs (groupadd, groupdel, groupmod, grpck, login, passwd, pwck,
1436 su, useradd, userdel, usermod) should now work with both shadow and
1437 non-shadow passwords/groups (check for /etc/shadow and /etc/gshadow at
1438 run time); a few programs still left to do
1439 - mailbox mv/chown/rm in usermod/userdel (suggested by Cristian Gafton)
1440 - new contrib/adduser.c from Chris Evans
1441 - lots of other minor changes
1442 - source tree reorganization, GNU autoconf, portability cleanups
1443 - basename() renamed to Basename() to avoid name space confusion
1444 - new programs to create /etc/shadow and /etc/gshadow: pwconv5, grpconv
1445 - newgrp cleanup and a few fixes
1446 - useradd uses PASS_MAX_DAYS, PASS_MIN_DAYS and PASS_WARN_AGE
1447 - don't make the first group member the group admin by default
1448 (define FIRST_MEMBER_IS_ADMIN to get the old gpasswd behaviour)
1449 - password aging constants, NGROUPS_MAX and syslog stuff in only one
1450 place (defines.h) instead of repeating it in all source files...
1451 - added userdel -r safety check (refuse to remove the home directory
1452 if it would result in removing some other user's home directory)
1453 - usermod -u now correctly checks for non-unique uid (unless -o)
1454 - sync() after updating password files, just to be more safe
1455 - "make install" should install /etc/login.defs if it doesn't exist
1456 - new option to control what happens if we can't cd to the home directory
1457 (DEFAULT_HOME in /etc/login.defs)
1458 - enter the home directory as the user, not as root (for NFS etc.)
1459 - added check for Slackware bugs (nobody UID -1) in pwck and grpck
1460 - new CONSOLE_GROUPS feature (thanks to pacman@tardis.mars.net), it is
1461 possible to add specified groups (floppy etc.) for console logins
1462 - new faillog feature: lock account for specified (per-user) time since
1463 the last failure after exceeding the failure limit
1464 - new man pages (gpasswd.1, login.access.5, suauth.5)
1465 - fixes in man pages, renamed *.4 to *.5
1466 - new "contrib" directory (two adduser programs)
1467 - changed some "system" to "feature" #ifdefs (autoconf someday...)
1468 - sulogin no longer requires to be run from init, should work from rc
1470 - changes to prevent unshadowing with libc SHADOW_COMPAT (get info
1471 using xx_locate(), modify it and call xx_update(), don't write back
1472 anything returned by getpwnam() etc.)
1473 - stupid bug fixed in lastlog.c
1474 - don't move non-directories in "usermod -m"
1475 - don't log unknown usernames (passwords mistyped for usernames) (lmain.c)
1476 - macros to get around ancient compilers which don't like prototypes
1477 - make more use of "const" (not everywhere yet)
1478 - added #ifdef AUTH_METHODS - very few people use administrator defined
1479 authentication methods because many programs are not aware of them;
1480 not supporting them makes the code simpler
1481 - new "save" and "restore" Makefile targets, thanks to Rafal Maszkowski
1482 - sgetgrent() in libshadow.a is optional, some versions of libc have it,
1483 see HAVE_SGETGRENT in config.h (grent.c)
1484 - don't use continued lines in /etc/group, the standard getgr*() functions
1485 don't support that (grent.c)
1486 - removed the third main() argument (according to libc docs, not allowed by
1487 POSIX.1 - use environ instead) (lmain.c, smain.c, newgrp.c, sulogin.c)
1488 - login access control (lmain.c, login_access.c)
1489 - added copyright notice to login_access.c (from logdaemon-5.0)
1490 - detailed su access control (smain.c, suauth.c) - thanks to Chris Evans
1491 - added closelog() in su before executing the shell (smain.c)
1492 - getting current user name changed (smain.c)
1493 - "x" instead of "*" in pw_passwd, consistent with pwconv (useradd.c)
1494 - getpass() shouldn't return NULL except on errors (getpass.c)
1495 - moved isexpired() to isexpired.c (now part of libshadow.a) from age.c
1496 - SunOS4-like passwd -e (force change on next login) (isexpired.c, passwd.c)
1497 - can use shadow support in new versions of Linux libc instead of libshadow.a,
1498 see HAVE_SHADOWPWD, HAVE_SHADOWGRP in config.h.linux (shadow.c, gshadow.c)
1499 - "no shadow password" not logged, the same /bin/login should work with both
1500 shadow and non-shadow passwords (lmain.c)
1501 - some cleanup in various places (lmain.c, passwd.c)
1502 - new program to verify username/password pairs, for xlock etc.; it is not
1503 installed by default, read the comments first (pwdauth.c)
1504 - authentication programs run with empty environment for safety (pwauth.c)
1505 - added missing fstat error checks (faillog.c, lastlog.c, setup.c, *io.c)
1506 - common code separated from *io.c (commonio.c)
1507 - ownership and permissions on password files are now preserved (we may try
1508 to make more use of setgid and setuid non-root programs in the future)
1509 - added (untested) MD5-based crypt() from FreeBSD (md5crypt.c), see
1510 MD5_CRYPT in config.h.linux and MD5_CRYPT_ENAB in login.defs.linux
1511 - termios/termio/sgtty macros cleaned up a bit
1513 shadow-951218 => shadow-960129
1515 Emergency bug fix release - no new features since 951218. There are many
1516 new changes, but this bug really can't wait until they are tested.
1518 Probably all previous versions of the shadow suite have a serious bug which
1519 makes it possible to overwrite the stack by entering very long username at
1520 the login prompt. This can give root access to any remote user!
1522 Changed the maximum size in login.c from BUFSIZ (1024) to 32 (to match
1523 size of the array in lmain.c). Aaargh!!!
1525 shadow-951203 => shadow-951218
1528 - Linux utmp handling fixes (utmp.c)
1529 - last failure date printing fixes (failure.c)
1530 - minor fix to compile with USE_CRACKLIB (obscure.c)
1531 - eliminated the use of snprintf (env.c, lmain.c, login.c, shell.c, smain.c)
1532 - basename.c added, replacing duplicated code in various places
1533 - "su -" runs the shell with '-' in argv[0] again (smain.c)
1534 - removing at/cron jobs cleaned up (userdel.c)
1535 - /etc/gshadow should not be world-readable (sgroupio.c)
1536 - if fflush() failed, files were not closed (*io.c)
1537 - login prompt is now "hostname login: " on Linux (lmain.c, login.c)
1538 - "save" and "restore" targets commented out (don't work) (Makefile.linux)
1539 - some minor cleanups for gcc -Wall (unused variables etc.)
1540 - removed README.FIRST (copyrights are OK now)
1541 - updated ANNOUNCE, README.linux, WISHLIST
1542 - as suggested, converted to RCS
1544 shadow-3.3.2-951127 => shadow-951203-jfh
1547 - Added the BSD-style copyright to all of the files. Any files with the
1548 old copyright have multiple copyright holders and need to be cleanroomed
1549 to produce BSD-style copyrightable files, or I need to get the consent
1550 of the others to change the copyright.
1551 - Changed the ANNOUNCE file to not refer to the README.FIRST file. Now
1552 that all of the files should have the correct copyright there is no need
1553 to refer to that e-mail message.
1554 - Changes SCCS strings to "%W% %U% %G%". Marek needs to either convert to
1555 RCS or check into SCCS and then checkout. I'd suggest using RCS ;-)
1557 jfh@rpp386.cactus.org
1559 shadow-3.3.2-951106 => shadow-951127
1561 Note: for now this code only supports Linux. All the #ifdef's are there
1562 (and will be; support for at least SunOS 4.1.x would be nice) but:
1563 - I had to fix some potential security problems resulting from sloppy
1564 coding (no bounds checking), and it was easier for me to use snprintf()
1565 (not available on many systems, unfortunately), I'll fix that later.
1566 Old versions of Linux libc don't have snprintf() either, and the one
1567 in libbsd.a ignores the max size - don't use it! (libc-4.6.27 is OK)
1568 - I am lazy and only updated Makefile.linux and config.h.linux this time
1569 - I don't have root access to non-Linux systems (this means no testing)
1570 - this code needs some major reorganization, which will (hopefully)
1574 - some code cleanup, prototypes.h, defines.h, Makefile and config.h changes
1575 - login can be statically linked (not that I think it's a good idea, better
1576 fix the telnetd, but paranoid people will like it :-)
1577 - login is installed non-setuid by default
1578 - check for NULL from getpass()
1579 - wipe cleartext password from getpass() when no longer needed (pwauth.c)
1580 - use standard "Password: " prompt by default (pwauth.c)
1581 - hopefully fixed bogus sigaction() stuff (Linux only) (getpass.c)
1582 - oops, setrlimit wants bytes, ulimit wants 512-byte units (lmain.c)
1583 - Linux has <lastlog.h>
1584 - print ll_host on Linux too (lmain.c)
1585 - size checking in various places (setuid root programs, argh!)
1586 - preserve TERM from getty (lmain.c)
1587 - don't ignore SIGHUP (lmain.c)
1588 - :%s/setenv/set_env/g (setenv(3) conflict) (env.c, lmain.c, login.c)
1589 - remove LD_xxx (env.c)
1590 - use bzero() instead of memset() for BSD portability and less #ifdef's
1591 (if the system has no bzero(), implement it as a macro using memset())
1592 - the above fixes wrong order of memset() parameters (log.c)
1593 - use getutent/pututline instead of doing it by hand (utmp.c)
1594 - added the new settings to login.defs.linux
1595 - added login_access.c to the distribution (not used yet)
1599 shadow-3.3.2 => shadow-3.3.2-951106
1601 - added dummy pad.c and #ifdef'ed out references to pad_auth (pwauth.c)
1602 - malloc/strdup error checking, hopefully no more core dumps...
1603 - define HAVE_RLIMIT instead of HAVE_ULIMIT for Linux (config.h.linux)
1604 - changed pathnames on Linux to conform to new FSSTND (/var/log etc.)
1605 - larger buffer for cipher, for md5 crypt() if and when (encrypt.c, passwd.c)
1606 - use POSIX termios whenever possible on Linux
1607 - list.c, removed add_list/del_list from gpmain.c, user{add,del,mod}.c
1608 - strtoday.c, removed duplicates from chage.c, useradd.c, usermod.c
1609 - login -h only for root (lmain.c)
1610 - login -r not needed for Linux (lmain.c)
1611 - sample login.defs modified for Linux (login.defs.linux)
1612 - swapped chfn USAGE and ADMUSAGE (chfn.c)
1613 - added -u to passwd usage (passwd.c)
1614 - no #! check necessary for Linux (shell.c)
1615 - define OLD_CRON for some old incompatible Linux distributions (userdel.c)
1616 - PASS_MAX is now 127 (not 8) for Linux (getpass.c)
1617 - LOGIN_RETRIES, LOGIN_TIMEOUT, PASS_CHANGE_TRIES are no longer compiled in,
1618 can now be set in login.defs, old values are used as defaults (lmain.c)
1619 - unique uid/gid selection now more robust (useradd.c, groupadd.c)
1620 - UID_MIN, UID_MAX, GID_MIN, GID_MAX in login.defs (useradd.c, groupadd.c)
1621 - CRACKLIB_DICTPATH no longer compiled in, can be set in login.defs (passwd.c)
1622 - PASS_ALWAYS_WARN: warn about weak passwords even for root (passwd.c)
1623 - PASS_MAX_LEN, check truncated passwords again (obscure.c)
1624 - check for weak passwords too if previous password was empty (obscure.c)
1625 - CHFN_RESTRICT: don't let users change their full names (chfn.c)
1626 - Linux has getusershell(), use it (chsh.c)
1627 - check if the new shell is executable by the user (chsh.c)
1628 - sleep before printing "Login incorrect", not the other way around (lmain.c)
1629 - don't be picky about utmp only if any of -rfh flags given (lmain.c)
1630 - do "wheel group" more like BSD does (smain.c)
1631 - use getlogin() in su (smain.c)
1632 - UMASK from login.defs defaults to 077, not 0 (lmain.c, newusers.c)
1633 - #undef HAS_ATRM for Linux until atrm can do what we need (config.h.linux)
1634 - Linux has most commands in /usr/bin, not /bin (age.c, passwd.c, userdel.c)
1635 - ULIMIT from login.defs works on systems using setrlimit() too (lmain.c)
1636 - LOGIN_STRING should work now (pwauth.c, getdef.c)
1637 - kludge to avoid conflict with Linux <shadow.h> (gshadow.h)
1638 - mv Makefile Makefile.xenix ; mv config.h config.h.xenix - so that they are
1639 not lost when you copy the right ones to Makefile and config.h
1645 Original version, received directly from the author.