OpenBSD CVS

CVS log for src/libexec/login_lchpass/login_lchpass.c


[BACK] Up to [local] / src / libexec / login_lchpass

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 26 12:42:51 2018 UTC (6 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.20: +2 -9 lines
Diff to previous 1.20 (colored)

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@

Revision 1.20 / (download) - annotate - [select for diffs], Sat Sep 3 10:48:15 2016 UTC (7 years, 9 months ago) by gsoares
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.19: +9 -6 lines
Diff to previous 1.19 (colored)

convert to use readpassphrase() instead of DEPRECATED/getpass()
OK millert@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 1 17:04:18 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

zap unused var

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 18 19:27:46 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

use _shadow getpw functions. these utilities obviously deal with hashes.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 25 08:39:26 2015 UTC (8 years, 7 months ago) by ajacoutot
Branch: MAIN
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

No need to declare pwd_gensalt; it's unused and gone.
ok tedu@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 22 12:32:33 2015 UTC (8 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.15: +7 -14 lines
Diff to previous 1.15 (colored)

use crypt_checkpass instead of doing things the hard way with crypt.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 5 17:31:17 2015 UTC (8 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Use explicit_bzero() instead of memset() for zeroing out secrets.
OK deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:47 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 9 19:14:10 2006 UTC (18 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.12: +12 -4 lines
Diff to previous 1.12 (colored)

Foil potential timing attacks by using the correct password hash
instead of "xx".  In practice this means bcrypt() will be used for
non-existent users instead of DES crypt().
Adapted from a patch by Peter Philipp.  OK deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 10 21:30:27 2004 UTC (20 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

More checking for a NULL return value from getpass().  otto@ OK

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 15 20:56:02 2002 UTC (21 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.10: +1 -5 lines
Diff to previous 1.10 (colored)

localhost variable is not needed; Peter Werner

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 6 18:45:06 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.9: +4 -8 lines
Diff to previous 1.9 (colored)

ansi; ok millert pvalchev

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 28 01:14:37 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

minor indent cleanup

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 2 01:27:15 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

minor KNF

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:30 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 6 21:53:28 2002 UTC (22 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.5: +12 -8 lines
Diff to previous 1.5 (colored)

Don't let root change it's password via login_l?chpass(8).
At some point in the future, passwd(1) may call these auth methods
at which time we will need a flag to allow root to do a password
change and also to allow account w/o a password to be given one.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 7 04:20:19 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.4: +18 -10 lines
Diff to previous 1.4 (colored)

Use writev() to send status on the backchannel instead of fdopen()ing
fd 3 and using stdio.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 6 05:37:04 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.3: +1 -3 lines
Diff to previous 1.3 (colored)

Do not set handler for SIGINT and SIGQUIT to SIG_IGN since it prevents
getpass()/readpassphrase() from being able to restore the tty mode
on keyboard interrupt.  Along with the recent readpassphrase.c commit
this means that if you ^C things that use login scripts (like su(1))
with a non-CBREAK shell your tty mode will be restored nicely.

TODO:
The various login scripts need to install handlers to avoid leaving
turd files or otherwise ending in a bad state.  It would also be
nice to send BI_REJECT to the back channel.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 24 13:06:35 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

getopt(3) returns -1 when out of args, not EOF.

millert@ ok

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 25 22:10:28 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.1: +1 -6 lines
Diff to previous 1.1 (colored)

Remove instance stuff now that su uses an explicit option to specify
the invoking user.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 12 02:32:57 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9

lchpass login script; changes local password
will be used when BSD authentication is enabled

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.