summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
Commit message (Collapse)AuthorAgeFilesLines
* Remove an accidentaly added extra blank line.eric2001-05-221-1/+0
| | | | Approved by: murray
* Disable SIGHUP while getting the login name.guido2001-05-211-0/+2
| | | | Reviewed by: security-officer
* Missed a few things.obrien2001-05-181-3/+4
|
* In a word -- style(9).obrien2001-05-181-43/+51
|
* Add the "prompt" and "passwd_prompt" fields to /etc/login.conf,obrien2001-05-181-3/+8
| | | | | | which makes lgoin more like getty in its ability to be configured. Submitted by: tlambert (code only)
* Check for the expiration of an account and its password in the propereric2001-05-171-12/+13
| | | | | | | | | order. Reviewed by: -audit (silence) Approved by: murray Obtained from: OpenBSD MFC after: 5 days
* Clean out some cruft that has been put in a better (central) place.markm2001-05-011-5/+0
|
* Enable (optional) static linking.markm2001-04-281-0/+5
|
* Add full PAM support for account management and sessions.markm2001-03-273-32/+102
| | | | | | | The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux package's PAM patches to the BSD login.c Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>
* MAN[1-9] -> MAN.ru2001-03-271-2/+1
|
* Fix login so that it exports environmental variables that are set by PAMnectar2001-02-091-0/+58
| | | | | | | | modules (via pam_putenv). The following variables will never be set in this fashion: SHELL, HOME, LOGNAME, MAIL, CDPATH, IFS, PATH any variable starting with `LD_'
* Call pam_setcred.nectar2001-01-231-0/+4
| | | | Reviewed by: markm, months ago
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* Add braces to avoid ambiguity in a nested conditional (silences a gccsheldonh2000-04-261-1/+2
| | | | warning).
* Fix excessive use of parenthesis in previous commit.sheldonh2000-04-252-2/+2
| | | | Requested by: bde
* Do not issue a warning when chflags() fails with EOPNOTSUPP.sheldonh2000-04-132-2/+3
| | | | | PR: 17875 Submitted by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-2/+4
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Fix diagnostic printing test condition (was always true)ache2000-02-281-1/+1
| | | | Approved by: jkh
* Remove option's description that has gone with PAM.ru2000-02-271-9/+1
|
* Added IPv6 name resolving support for utmp logging.shin2000-02-191-15/+42
| | | | Approved by: jkh
* Remove the version information from `.Os FreeBSD' here. Not onlychris2000-02-141-1/+1
| | | | | | | | might it confuse people, but it causes a warning message with nroff, and no version history mentions a 1.2 version of FreeBSD. If anything, a ``HISTORY'' section should show which version this appeared in.
* Revert the libcrypt/libmd stuff back to how it was. This should not havepeter1999-12-181-2/+2
| | | | | | | | happened as it was working around problems elsewhere (ie: binutils/ld not doing the right thing according to the ELF design). libcrypt has been adjusted to not need the runtime -lmd. It's still not quite right (ld is supposed to work damnit) but at least it doesn't impact all the users of libcrypt in Marcel's cross-build model.
* Add libmd (or move it after libcrypt). We don't want the linker to bemarcel1999-12-161-2/+2
| | | | | smart because it will definitely get it wrong. This popped up during cross-linking.
* Correct some hard sentence breaks. Only those surrounding the previoussheldonh1999-09-141-2/+2
| | | | | | | | commit and those which cause ugly nroff output have been fixed, since the purpose of the style guideline which they contravene is to reduce the sizes of deltas. Reported by: bde
* Improve shell documentation:sheldonh1999-09-081-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * Consistently misspell built-in as builtin. * Add a builtin(1) manpage and create builtin(1) MLINKS for all shell builtin commands for which no standalone utility exists. These MLINKS replace those that were created for csh(1). * Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages, as well as to the manpages of standalone utilities which are supported as shell builtin commands in at least one of the shells. In such manpages, explain that similar functionality may be provided as a shell builtin command. * Improve sh(1)'s description of the cd builtin command. Csh(1) already describes it adequately. Replace the cd(1) manpage with a builtin(1) MLINKS link. * Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use Ic instead of Xr for shell builtin commands. * Undo English contractions. Reviewed by: mpp, rgrimes
* $Id$ -> $FreeBSD$peter1999-08-284-4/+4
|
* Clear all file flags when taking ownership of devices. Do not ignoreimp1999-08-212-3/+16
| | | | | chown failures in some places, but instead log them like we do all other errors.
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+3
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* remove uid switching before login_getpwclass, now done inside libutilache1999-04-241-3/+6
| | | | add gid switching before chdir and comment why it needed
* Don't perform the trimdomain() functionality twice,brian1999-04-071-12/+3
| | | | trimdomain() now works as expected.
* Added xref to nologin(5)wosch1999-02-011-1/+2
|
* Force <bsd.libnames.mk> to be included, regardless of the objectjdp1999-01-221-1/+2
| | | | | format. This fixes the undefined symbols when building login for a.out.
* Allow login to be linked statically even when PAM is used, sincejdp1999-01-201-4/+2
| | | | there is now a static version of libpam.
* Add a compile knob to avoid using PAM code (login will use standard Unixabial1999-01-192-4/+22
| | | | | | | authentication only). This comes handy when you're tight on space. Submitted by: mostly John Baldwin <jobaldwi@vt.edu> Reviewed by: John D. Polstra <jdp@polstra.com>
* Move nologin from /etc to /var/run. This means one less file that hasasami1999-01-111-3/+3
| | | | | | | | | to be written to /etc. The only essential change is in paths.h, so any third-party software written correctly will pick it up in the next rebuild. Reviewed by: the committers list (actually an old version)
* Make the timeout handler log any failed logins, to make sure failedeivind1999-01-031-7/+17
| | | | logins get logged.
* Obtained from: "Jan B. Koum " <jkb@best.com>dillon1998-12-012-3/+5
| | | | | Add a reference to pam(8) in the login(1) and login.access(5) manual pages.
* Work around the problem that login won't link if NOSHARED=yes,jdp1998-11-211-1/+2
| | | | | | | | | | because libpam is built shared only. There is a way to build PAM into a static library that contains all (or a selected subset) of the modules. But our Makefiles don't support that yet. Until I get that working, just force NOSHARED=no in login's Makefile. Of course, it still won't work if NOPIC is set. Submitted by: bde
* ATTENTION: INSTALL "/etc/pam.conf" FROM "src/etc"!!!jdp1998-11-213-326/+149
| | | | | | | | Change login to use PAM for authentication. I kept the built-in passwd/NIS authentication support, to handle cases where the system is missing its "/etc/pam.conf" file. S/Key and KerberosIV authentication methods are removed from the login program, but still available in PAM modules.
* unifdef -DLOGIN_CAP. After almost 2 years, I think we can assumejdp1998-11-112-75/+4
| | | | | | it's here to stay. This code is starting to look almost reasonable again.
* Remove support for LOGIN_CAP_AUTH. It was never enabled, it wasjdp1998-11-112-131/+5
| | | | | | | | | not complete, and it hasn't been touched for 18 months. All the ifdefs obfuscate the code. I discussed the LOGIN_CAP_AUTH support with its author and he agreed that it is a dead end. I am bringing PAM into the tree within the next two weeks. It is much more flexible than LOGIN_CAP_AUTH, and will serve as a superior replacement for it.
* Fix a const-related compiler warning.jdp1998-11-111-2/+3
|
* Use KJH's auth.conf parser to turn on/off Kerberos in userland.markm1998-10-092-3/+12
|
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-2/+1
|
* 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
|
OpenPOWER on IntegriCloud