summaryrefslogtreecommitdiffstats
path: root/login-utils/login.1
Commit message (Collapse)AuthorAgeFilesLines
* login: add support for login.defs(5) LASTLOG_UID_MAXKarel Zak2019-01-111-0/+11
| | | | | | | | | | This new variable allows to keep lastlog file small and filter out things like huge nfsnobody UIDs. The variable is also supported by shadow-utils (adduser, etc.). Addresses: https://github.com/shadow-maint/shadow/pull/142/ Signed-off-by: Karel Zak <kzak@redhat.com>
* su-common.c: prefer ENV_SUPATH over ENV_ROOTPATHStanislav Brabec2019-01-101-1/+1
| | | | | | | | ENV_SUPATH and ENV_ROOTPATH are equivalent and ENV_ROOTPATH takes precedence in both login and su. It makes no sense. More logical would be precedence of ENV_SUPATH in su and ENV_ROOTPATH in login. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-9/+9
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* login: add LOGIN_PLAIN_PROMPT to login.defsKarel Zak2017-12-041-0/+12
| | | | | | | | | | | We have command line option -H to disable hostname in login prompt. Unfortunately, in same cases (e.g. telnetd) it's impossible to specify login(1) command line options due to hardcoded execl()... This patch introduces LOGIN_PLAIN_PROMPT boolean for /etc/login.defs to suppress hostname in the prompt. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add --help and --versionRuediger Meier2017-06-221-1/+4
| | | | | | | | | | Also we don't print the usage text on stderr anymore. Note, the usage text could be improved, currently it does not describe any options. I have only added a pointer to the man page. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: various pages: Format pathnames as italic (.I)Michael Kerrisk2016-12-091-3/+3
| | | | | | | | | In the majority of pages, pathnames are formatted as Italic, which is the norm. However, there are several cases where they are formatted as bold. This patch fixes a number of those exceptions. Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* misc: spelling, always use "cannot" instead of "can not"Ruediger Meier2016-11-301-1/+1
| | | | | | Just to be consistent ... Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Correctly format page cross referencesMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | Most pages in util-linux follow the standard convention of formatting page cross references in bold. Fix the few exceptions that use italic. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-291-2/+2
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: Fix various typosSebastian Rasmussen2016-05-311-1/+1
| | | | Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* login: fix minor typos in the man pageOndrej Oprala2014-04-071-16/+16
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: make the section AVAILABILITY always come last in man pagesBenno Schulenberg2013-03-201-3/+1Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* agetty: replace perms 660 to 620Karel Zak2013-01-021-1/+4
| | | | | | ... the default is root:tty 620 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: man page syntax fixesVille Skyttä2012-07-161-1/+1
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* docs: clean up login.1 manualSami Kerola2012-06-021-106/+170
| | | | | | | | PATH contents for users & root in DESCRIPTION section where wrong, and couple default values where missing. Rest of the change is about making the groff, and the output, to look good. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* login: add USER to initial environmentDave Reisner2012-03-131-2/+3
| | | | | | | | | | Add this value from the passwd struct to the environment, as it is expected by shells, and generally useful to users. This also clarifies a poorly worded sentence in the vicinity of the manpage change. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
* login: add LOGIN_RETRIES, cleanup retries check codeKarel Zak2012-02-101-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add version printing optionSami Kerola2011-11-231-0/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* login: clean FAIL_DELAY usageKarel Zak2011-11-071-2/+2
| | | | | | | | | | | | ... with this patch: login(1) always uses sleep(FAIL_DELAY) before exit() if user is not authenticated or his PAM session is not fully initialized. Note that user has three attempts to write his password before login(1) is terminated. Reported-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* login: cosmetic changes in docsKarel Zak2011-10-261-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use ENV_PATH and ENV_{ROOT,SU}PATH from login.defsKarel Zak2011-10-261-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add -H option for compatibility with SuseKarel Zak2011-10-261-1/+9
| | | | | | | | | | Note that our login(1) uses hostname without domain, so: "foo login: " this is compatible with the default agetty(8) behavior. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use LOG_UNKFAIL_ENAB from login.defs, improve loggingKarel Zak2011-10-261-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use DEFAULT_HOME from login.defsKarel Zak2011-10-261-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use HUSHLOGIN_FILE from login.defsKarel Zak2011-10-261-0/+16
| | | | | | | | | | Note that Suse login(1) does not use any default for HUSHLOGIN_FILE. We use /etc/hushlogins and ~/.hushlogin as default. The another difference is that *empty* global (e.g. /etc/hushlogins) means that hushed mode will be enabled for all accounts. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use TTYGROUP from login.defsKarel Zak2011-10-261-0/+9
| | | | | | | | | | Note that Suse login(1) does not use any default for TTYGROUP, it means that TTYGROUP has to be explicitly defined otherwise user\'s primary group is used. The util-linux login(1) uses 'tty' group name as a default value. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use TTYPERM from login.defsKarel Zak2011-10-261-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use FAIL_DELAY from login.defsKarel Zak2011-10-261-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use LOGIN_TIMEOUT from login.defsKarel Zak2011-10-261-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: rewrite motd(), use MOTD_FILE from login.defsKarel Zak2011-10-261-0/+20
| | | | | | | | | Note that Suse login(1) does not use any default for MOTD_FILE, so MOTD_FILE item in login.defs is required otherwise nothing is printed. We use (for backward compatibility) /etc/motd as default. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: remove obsolete info from man pageKarel Zak2011-10-261-241/+60Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-1/+1
| | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* login: fix typos in man pageKarel Zak2011-06-141-2/+2
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=675181 Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: use "remote" as a PAM service name for "login -h"Karel Zak2009-03-171-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: remove "switching users" nonsense from man pageKarel Zak2009-03-091-3/+1Star
| | | | | | For more details see the BUGS section in the man page. Signed-off-by: Karel Zak <kzak@redhat.com>
* login: replace /usr/spool/mail with /var/spool/main in man pageKarel Zak2007-08-141-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-031-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add IPv6 supportKarel Zak2007-03-101-0/+7
| | | | | | | | | | This support includes: * non-PAM version supports IPv6 ranges in /etc/usertty * utmp records with IPv6 addresses Based on patch by: Milan Zazrivec <mzazrivec@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.12k tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.11r tarball.Karel Zak2006-12-071-3/+4
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-071-5/+5
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-2/+13
|
* Imported from util-linux-2.9i tarball.Karel Zak2006-12-071-5/+1Star
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-74/+86
|
* Imported from util-linux-2.5 tarball.Karel Zak2006-12-071-3/+178
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+131