Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unveil(2) obvious _PATH_LOGIN_CONF with read permission to use login_get*(3) | 2018-11-08 | 1 | -1/+3 | |
| | | | | | | family commands. Report and fix provided by Mark Patruck <mark ! wrapped ! cx> | ||||
* | unveil(2) the following files for passwd(1) with their corresponding | 2018-10-25 | 1 | -1/+10 | |
| | | | | | | | | | | | | permissions: _PATH_MASTERPASSWD_LOCK - write/create permissions _PATH_MASTERPASSWD - read permission _PATH_BSHELL - execute permission (required since we might need to spawn an external passwordcheck program if defined in /etc/login.conf) _PATH_PWD_MKDB - execute permission OK millert@ deraadt@ | ||||
* | Use explicit_bzero() to clear the buffer used when the user retypes | 2016-12-30 | 1 | -2/+5 | |
| | | | | the new password. From isk AT ingve DOT org | ||||
* | _PASSWORD_LEN is length that comes out of crypt(), not a meaningful | 2016-09-02 | 1 | -4/+4 | |
| | | | | | | | length for user entered passwords. And the +1 is just superstitious nonsense inherited from getpass() guts. Switch to a pleasing fixed size of 1024. ok millert | ||||
* | make sure to explicitly clear memory that is used for password input. | 2016-09-02 | 1 | -1/+6 | |
| | | | | OK tedu@ | ||||
* | replace obsolete getpass with readpassphrase. | 2016-08-31 | 1 | -9/+16 | |
| | | | | ok gsoares | ||||
* | nicer format strings and use dprintf instead of write | 2016-08-31 | 1 | -7/+5 | |
| | |||||
* | Trust the login_getcaptime() declaration and don't cast the arguments to | 2016-08-15 | 1 | -3/+2 | |
| | | | | their own expected type | ||||
* | Switch to getpwnam_shadow() now that getpwnam() no longer opens the shadow | 2016-05-08 | 1 | -2/+2 | |
| | | | | database; OK deraadt@ sthen@ | ||||
* | Delete YP password related code. As a result, these can also be | 2015-11-26 | 1 | -6/+12 | |
| | | | | | | pledged. Keep an eye out for regressions, because they could be uncomfortable. ok beck semarie | ||||
* | No need to declare pwd_gensalt; it's unused and gone. | 2015-10-25 | 1 | -2/+1 | |
| | | | | ok tedu@ | ||||
* | change prototype for crypt_newhash. the login_cap_t is a holdover from its | 2014-11-21 | 1 | -3/+5 | |
| | | | | | | pwd_gensalt origins, but a string argument works equally work and is more friendly to consumers beyond local user accounts. ok deraadt | ||||
* | switch to using crypt_newhash interface. ok deraadt | 2014-11-20 | 1 | -7/+9 | |
| | |||||
* | use crypt_checkpass instead of crypt/strcmp | 2014-11-11 | 1 | -2/+2 | |
| | |||||
* | Use open(O_CLOEXEC) instead of a separate fcntl(FD_CLOEXEC) call. | 2013-01-18 | 1 | -3/+3 | |
| | | | | Nudged by David Hill | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -6/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | -Wall -Wshadow clean, no binary change | 2008-11-06 | 1 | -2/+3 | |
| | |||||
* | Correct English. | 2008-04-27 | 1 | -3/+3 | |
| | | | | ok jmc@ | ||||
* | spacing | 2005-05-01 | 1 | -4/+4 | |
| | |||||
* | o some missing free()'s in error paths | 2004-12-20 | 1 | -3/+5 | |
| | | | | | | | | | | o use FD_CLOEXEC instead of 1 o fix a crash when the round number of localcipher in the default section in login.conf was ommitted. noted by mpech@ ok mpech@, otto@, millert@, henning@ | ||||
* | ARGSUSED signal handler | 2004-09-18 | 1 | -2/+3 | |
| | |||||
* | Print a newline before the message in kbintr. Otherwise the message | 2004-07-24 | 1 | -2/+3 | |
| | | | | ends up on the same line as the prompt. | ||||
* | passwd.conf has been deprecated since login.conf was imported. | 2004-07-13 | 1 | -8/+8 | |
| | | | | Today it finally dies. Based on a diff from Gabriel Kihlman. | ||||
* | Adapt to new pw_copy() API, closes PR 3698. | 2004-04-20 | 1 | -4/+9 | |
| | |||||
* | Check getpass() return value for NULL. Closes Pr 3706. | 2004-03-10 | 1 | -7/+8 | |
| | | | | With help and OK from otto@. | ||||
* | a cleaning recommended by lint | 2003-06-20 | 1 | -3/+4 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | stdlib.h | 2003-04-28 | 1 | -2/+3 | |
| | |||||
* | Simpler and consistent error messages when the user enters an empty | 2003-03-30 | 1 | -27/+21 | |
| | | | | password or hits ^C. OK deraadt@ and mpech@ | ||||
* | various cleanups; ok millert | 2002-06-28 | 1 | -13/+7 | |
| | |||||
* | 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. | 2002-02-16 | 1 | -7/+7 | |
| | |||||
* | Catch SIGINT and SIGQUIT via the kbintr() signal handler in ypgetnewpasswd() | 2001-12-07 | 1 | -7/+8 | |
| | | | | | too. Restore old signal handler at the end of ypgetnewpasswd() and getnewpasswd(). | ||||
* | Catch SIGINT and SIGQUIT via the kbintr() signal handler. | 2001-12-07 | 1 | -2/+8 | |
| | | | | | Now that getpass() is interuptible we need to catch these so that the "Password unchanged." message is printed. | ||||
* | kill more registers | 2001-11-19 | 1 | -3/+3 | |
| | | | | millert@ ok | ||||
* | Instead of prompting the user whether or not they wish to continue to | 2001-08-27 | 1 | -44/+32 | |
| | | | | | | | wait for the lock on password file just tell the user to interrupt with ^C. This simplifies the locking loop a bit. Update man page to this effect. | ||||
* | Change the second arg to pw_mkdb() from a boolean flag to a set of | 2001-08-26 | 1 | -5/+5 | |
| | | | | | | | | | | | bit flags ORed together. Currently the only flags defined are _PASSWORD_SECUREONLY and _PASSWORD_OMITV7 but this is enough to cause pw_mkdb() to run pwd_mkdb with the options we want. With this change we no longer generate the old V7 passwd file when only the extra fields in master.passwd (or the encrypted password) have changed. There are other programs that could probably use the _PASSWORD_OMITV7 flag; they will be converted at a future date. | ||||
* | If we modify pw_change we cannot pass pw_mkdb() the secureonly flag. | 2001-08-18 | 1 | -7/+16 | |
| | | | | | | We don't need to rebuild the v7 version of the file in this case but we have no way to communicate that to pw_mkdb since we pass in a boolean instead of a set of bit flags. | ||||
* | extra arg to pw_mkdb | 2001-08-16 | 1 | -4/+4 | |
| | |||||
* | At Theo's request only print 'Please wait' if don't get the lock | 2001-08-16 | 1 | -4/+6 | |
| | | | | on the first try. | ||||
* | quiet some -Wall warnings for login_{l,}chpass | 2001-07-07 | 1 | -4/+4 | |
| | |||||
* | Move locking of the passwd file *after* we have gotten a new password | 2001-07-04 | 1 | -15/+64 | |
| | | | | | | | from the user. Set real/effective/saved uids to 0 and block all signals so the lock cannot be kept longer than necessary. If we cannot lock, try again every 1/4 second for 2 seconds and then ask the user what they wish to do (keep trying, quit). | ||||
* | o move passwd.conf variables into login.conf | 2001-06-18 | 1 | -19/+32 | |
| | | | | | | o no longer install passwd.conf (but it is used if it exists and the needed info is not in login.conf) o added passwordtime and minpasswordlen login.conf variables | ||||
* | Minor interface changes to allow code reuse in login_chpass(8) and | 2000-12-12 | 1 | -18/+20 | |
| | | | | login_lchpass(8) | ||||
* | Update for pw_mkdb(3) interface change. All but vipw and userdel can | 2000-11-26 | 1 | -3/+3 | |
| | | | | specify a username (and thus avoid rebuilding the while database). | ||||
* | integrate password quality checking, disallow all digit passwords motivated | 2000-08-01 | 1 | -14/+12 | |
| | | | | | by Solar Designer. External password checking program can be spawned now, number of password trials configurable. work by me and Bob Beck. | ||||
* | excessive paranoia | 1998-07-13 | 1 | -3/+4 | |
| | |||||
* | catch special password "s/key" and refuse it | 1998-02-24 | 1 | -2/+6 | |
| | |||||
* | Better error message when lookup of getlogin() != uid | 1997-04-07 | 1 | -3/+3 | |
| | |||||
* | Slight cleanup, more needed | 1997-03-27 | 1 | -7/+8 | |
| | |||||
* | cleaned up, moved pw_getconf to libutil, removed _'s in option names | 1997-02-16 | 1 | -18/+7 | |
| |