summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
Commit message (Collapse)AuthorAgeFilesLines
* Remove hardcoded constant in favour of login.conf value.jkoshy1998-08-171-2/+2
| | | | | PR: 6529 Submitted by: Dan Lukes <dan@obluda.cz>
* Fix LIBDIR (for aout/ELF).markm1998-08-061-1/+1
|
* Backed out rev.1.31. It was a workaround for bugs in rev.1.4 ofbde1998-07-311-5/+1
| | | | | | | | | | | | | | libc/gen/getpass.c. The old behaviour of blocking SIGINT and not changing SIGQUIT was restored in rev.1.5 of getpass.c. The change here completely restores the old behaviour of not supporting killing login with keyboard signals (only) at the password prompt. There is no reason to support this, since login can be exited normally by typing a couple of ^D's. Login certainly shouldn't dump core in response to user input. Previously, SIGQUIT killed login immediately but SIGINT killed it only after the password was entered. PR: 7444
* Fix a couple of little bugs that prevented login.c from compilingjdp1998-07-221-3/+3
| | | | | | | | if LOGIN_CAP_AUTH was defined. This is kind of silly, because LOGIN_CAP_AUTH doesn't work anyway, is not defined currently, probably will never be defined, and IMHO should not be defined. But I'm sure you'll sleep better tonight, knowing that these bugs are gone.
* Trim a domain part for wtmp as same as showed by "netstat -r".amurai1998-06-011-1/+5
| | | | | | | | | | | | | Here is a some example for avoiding a confusion. It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value. 1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw Submitted by: Atsushi Murai <amurai@spec.co.jp>
* *blush*, typo during last minute editing..peter1998-04-301-2/+2
|
* Change euid while reading the user's .login_cap file in case the homedirpeter1998-04-301-2/+8
| | | | | | | | | is on a NFS partion without root read access. Also, flip euid again for the duration of the chdir() to the homedir for the same reason. PR: 5145 Submitted by: Joel.Faedi@esial.u-nancy.fr Also tested by: A Joseph Koshy <koshy@india.hp.com>
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+2
|
* gcc on alpha complains about nested comments. A comment in thisjb1998-02-151-1/+1
| | | | | | file referred to a path ending in "/*" which was reasonable to me, but gcc wasn't so sure. So now the comment refers to a path ending in "*".
* Fix very rare but dangerous bug:ache1998-02-131-1/+3
| | | | | | | | | | | for some DES passwords crypt(real_password, salt) is equal to crypt("", salt); It means that this user (and not only he) can login without entering password at all, just pressing Return. So if empty password entered and crypted password is not empty, invalidate any crypt result by assigning ":"
* Reset SGINT and SIGQUIT handling to default when asking for passwords.guido1998-02-051-1/+5
| | | | | | | | | Otherwise, when pressing the INT ke at the password prompt, the password will be displayed. Now login will be killed. Probably the same will have to be done for the LOGIN_CAP_AUTH case. I have not done that. Reviewed by: Joerg Wunsch
* Mention S/key and the skey /etc files.obrien1998-01-071-3/+18
|
* Fix a fatal typo.joerg1997-10-191-2/+2
| | | | | PR: bin/4801 Submitted by: mishania@demos.su (Mikhail A. Sokolov)
* Changes for KTH KerberosIV.markm1997-09-285-16/+13
| | | | Also quieten -Wall a bit.
* "lmd" -> "-lmd"nate1997-09-051-2/+2
| | | | Submitted by: Vincent Poy <vince@venus.gaianet.net>
* If building elf, don't link in libmd.a just for libskey.so to use. Underpeter1997-09-051-3/+9
| | | | elf, libskey.so will not expose it's implementation on it's caller.
* = -> ==, strcpy -> strncpy from OpenBSD.charnier1997-07-224-28/+41
| | | | | update man page. Add usage(). Obtained from: OpenBSD
* Fix the man page's title (.Dt).max1997-06-021-1/+1
| | | | (It has been ``SKEY.ACCESS''.)
* Restore backwards compatible default behavior for requirehomepst1997-05-231-1/+1
|
* login_getclass() -> login_getpwclass().davidn1997-05-101-2/+2
| | | | auth_rmfiles() was being called in error without LOGIN_CAP_AUTH defined.
* Use isdialuptty() rather than hard-coded heuristic.davidn1997-04-131-1/+1
|
* Submitted by: Sergei Chechetkin <csl@whale.sunbay.crimea.ua>davidn1997-04-011-2/+1
| | | | Fix incorrect bracket nesting. Closes PR#3144.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Fix for logic in no-password accounts.davidn1997-03-271-1/+1
|
* Don't bypass password prompt for root logins on insecure tty ifdavidn1997-03-251-3/+5
| | | | the root password is empty.
* strdup() value of term to correctly preserve contents.davidn1997-03-241-11/+9
| | | | | Rearrange validation logic so that it works correctly when compiled with kerberos support. Closes PR#3056.
* Submitted by: Paul Traina <root@shockwave.com> (partially)davidn1997-03-181-153/+243
| | | | | | | | | | | | | | | | | | Cleanup of #ifdef's for LOGIN_CAP. Fixed bug in empty shell (closes PR#2550). Refused root logins now displays standard "Login incorrect" and exhibits identical backoff behaviour to a failed login. Cleaned up logging of refused logins. Use #defines for login retries and backoff. Also implemented definable variables if LOGIN_CAP is defined, with "login-retries" and "login-backoff" as capabilities in the default class (closes PR#2805). TERM from previous environment is no longer truncated.
* Include copyright message from <sys/copyright.h>wosch1997-03-011-5/+4
|
* Back out "shell" / pw_shell change, I was confused by the sameache1997-02-271-4/+7
| | | | variable name (with different functionality)
* Fix few bogons with pw_shell / shell variables values mismatchache1997-02-271-7/+4
| | | | introduced by LOGIN_CAP
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Cruft cleanup to eliminate useless warningspst1997-02-021-3/+6
|
* Don't dereference NULL pwd on non-existant username (I wonder how longjkh1997-01-221-1/+2
| | | | THAT has been in here!).
* Fix handling of empty shell field in passwd file (use /bin/sh); problemdavidn1997-01-222-1/+15
| | | | | was caused by introduction of login classes. Closes PR bin/2550. Added references to login.conf to manpage, crossreference to login.conf(5).
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Makes login login_cap-savvy.davidn1997-01-112-155/+371
| | | | | | | | | | Note that LOGIN_CAP_AUTH code (login authentication) is not (yet) enabled and requires /usr/libexec/login_<style> authentication program support to be added at a later date. The Makefile contains a macro LC_AUTH to turn it on and prevent unnecessarily linking against skey/krb libs and the addition of klogin.c module. All other aspects of login_cap support are fully functional.
* comma typoswosch1996-12-231-2/+3
|
* Fix some compilation warnings.pst1996-09-211-5/+7
|
* Document login's use of /etc/login.access.mpp1996-07-031-0/+11
| | | | Submitted by: David E. O'Brien
* Write numerical address instead of hostname for hostnames > UT_HOSTSIZEache1996-06-171-7/+21
| | | | to keep valid information in utmp and lastlog
* #include <kerberosIV/des.h> -> #include <des.h>markm1996-02-111-1/+1
|
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-1/+1
|
* recording cvs-1.6 file deathpeter1995-12-301-105/+0
|
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-3/+2
| | | | which is no longer bogusly installed in /usr/include.
* Remove trailing whitespace.rgrimes1995-05-304-6/+6
|
* Set copyright so we can actually distribute and use it.guido1995-05-191-0/+15
| | | | | | Reviewed by: David Greenman Submitted by: Wietse Venema Obtained from:
* Fix spelling error that keeps this from compiling with KERBEROS & SKEYrgrimes1995-04-161-1/+1
| | | | | | defined. Submitted by: Mark Murray <mark@grondar.za>
* Disallow Kerberos when S/Key is required. Fixes PR #339.wollman1995-04-131-0/+11
| | | | Submitted by: Paul Traina <pst@Shockwave.com>
* Change the library order so libcrypt is the last library in the list.nate1995-03-181-3/+3
| | | | | | libskey contains references to _crypt and can't resolve it unless -lcrypt occurs after it in the link command. This only occurs when linking statically.
* In the non-PARANOID case, make sure to set `notickets' to 0 sothat login.cwollman1995-01-201-0/+1
| | | | doesn't complain.
OpenPOWER on IntegriCloud