'\" t .\" Title: login .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.75.1 .\" Date: 24.07.2009 .\" Manual: Dienstprogramme f\(:ur Benutzer .\" Source: Dienstprogramme f\(:ur Benutzer .\" Language: German .\" .TH "LOGIN" "1" "24.07.2009" "Dienstprogramme f\(:ur Benutzer" "Dienstprogramme f\(:ur Benutzer" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" login \- startet eine Sitzung auf dem System .SH "SYNOPSIS" .HP \w'\fBlogin\fR\ 'u \fBlogin\fR [\-p] [\-h\ \fIHost\fR] [\fIBenutzername\fR] [\fIENV=VAR\fR...] .HP \w'\fBlogin\fR\ 'u \fBlogin\fR [\-p] [\-h\ \fIHost\fR] \-f \fIBenutzername\fR .HP \w'\fBlogin\fR\ 'u \fBlogin\fR [\-p] \-r\ \fIHost\fR .SH "BESCHREIBUNG" .PP The \fBlogin\fR program is used to establish a new session with the system\&. It is normally invoked automatically by responding to the \fIlogin:\fR prompt on the user\'s terminal\&. \fBlogin\fR may be special to the shell and may not be invoked as a sub\-process\&. When called from a shell, \fBlogin\fR should be executed as \fBexec login\fR which will cause the user to exit from the current shell (and thus will prevent the new logged in user to return to the session of the caller)\&. Attempting to execute \fBlogin\fR from any shell but the login shell will produce an error message\&. .PP Falls erforderlich, wird der Benutzer anschlie\(ssend nach einem Passwort gefragt\&. Dieses wird w\(:ahrend der Eingabe nicht angezeigt\&. Es sind nur eine kleine Anzahl von Anmeldeversuchen zul\(:assig, ehe \fBlogin\fR abbricht und die Kommunikation getrennt wird\&. .PP Falls der Passwortverfall f\(:ur Ihr Konto aktiviert wurde, kann es sein, dass Sie vor der weiteren Nutzung nach einem neuen Passwort gefragt werden\&. Sie m\(:ussen Ihr altes und neues Passwort angegeben, bevor fortgefahren werden kann\&. In der Dokumentation zu \fBpasswd\fR(1) finden sich weitere Informationen\&. .PP Nach einer erfolgreichen Anmeldung werden Ihnen Systemmeldungen pr\(:asentiert, sowie das Vorhandensein von Mails angezeigt\&. Die Anzeige der systemweiten Nachrichtendatei /etc/motd kann abgeschaltet werden, indem im Login\-Verzeichnis eine leere Datei \&.hushlogin angelegt wird\&. Je nach Zustand der Mailbox des Benutzers ist die Mailnachricht entweder "\fISie haben neue Mails\&.\fR", "\fISie haben Mails\&.\fR" oder "\fIKeine Mails\&.\fR"\&. .PP Die Benutzer\- und Gruppen\-IDs werden gem\(:a\(ss den Werten in /etc/passwd gesetzt\&. Die Werte f\(:ur \fB$HOME\fR, \fB$SHELL\fR, \fB$PATH\fR, \fB$LOGNAME\fR und \fB$MAIL\fR werden ebenfalls entsprechend den Feldern im Passworteintrag gesetzt\&. Werte f\(:ur ulimit, umask und nice k\(:onnen ebenfalls gem\(:a\(ss den Werten im GECOS\-Feld gesetzt werden\&. .PP Bei einigen Installationen wird anf\(:anglich die Umgebungsvariable \fB$TERM\fR entsprechend dem Terminaltyp Ihrer tty\-Zeile, wie sie in /etc/ttytype angegeben ist, gesetzt\&. .PP Ein Initialisierungsskript f\(:ur Ihren Befehls\-Interpreter kann auch ausgef\(:uhrt werden\&. Sehen Sie bitte in den entsprechenden Handbuchseiten f\(:ur weitere Informationen dar\(:uber nach\&. .PP Eine Subsystem\-Anmeldung wird durch einen "*" als erstes Zeichen der Login\-Shell gekennzeichnet\&. Das angegebene Home\-Verzeichnis wird als Wurzel f\(:ur das Dateisystem verwendet, auf welchem der Benutzer tats\(:achlich angemeldet ist\&. .PP Es liegt NICHT in der Verantwortung von \fBlogin\fR, Benutzer aus der utmp\-Datei zu entfernen\&. Sowohl \fBgetty\fR(8) als auch \fBinit\fR(8) sind daf\(:ur zust\(:andig, die offenkundige Eigent\(:umerschaft einer Terminalsitzung aufzur\(:aumen\&. Falls Sie \fBlogin\fR von der Shell ohne \fBexec\fR verwenden, wird der Benutzer, den Sie verwenden, weiterhin als angemeldet erscheinen, obwohl Sie die Subsitzung abgemeldet haben\&. .SH "OPTIONEN" .PP \fB\-f\fR .RS 4 Keine Authentifizierung durchf\(:uhren, Benutzer ist bereits angemeldet\&. .sp Note: In that case, \fIusername\fR is mandatory\&. .RE .PP \fB\-h\fR .RS 4 Name des entfernten Rechners f\(:ur die Anmeldung\&. .RE .PP \fB\-p\fR .RS 4 Behalte die Umgebungseinstellungen bei\&. .RE .PP \fB\-r\fR .RS 4 F\(:uhre das Autologin\-Protokoll f\(:ur rlogin aus\&. .RE .PP Die Optionen \fB\-r\fR, \fB\-h\fR und \fB\-f\fR k\(:onnen nur verwendet werden, wenn \fBlogin\fR von Root ausgef\(:uhrt wird\&. .SH "WARNUNGEN" .PP Diese Version von \fBlogin\fR hat viele Optionen f\(:ur die Kompilierung, davon sind eventuell nur einige auf bestimmten Systemen in Gebrauch\&. .PP Der Ort der Konfigurationsdateien kann entsprechend der Systemkonfiguration abweichen\&. .PP Es liegt NICHT in der Verantwortung von \fBlogin\fR, Benutzer aus der utmp\-Datei zu entfernen\&. Sowohl \fBgetty\fR(8) als auch \fBinit\fR(8) sind daf\(:ur zust\(:andig, die offenkundige Eigent\(:umerschaft einer Terminalsitzung aufzur\(:aumen\&. Falls Sie \fBlogin\fR von der Shell ohne \fBexec\fR verwenden, wird der Benutzer, den Sie verwenden, weiterhin als angemeldet erscheinen, obwohl Sie die Subsitzung abgemeldet haben\&. .PP As with any program, \fBlogin\fR\'s appearance can be faked\&. If non\-trusted users have physical access to a machine, an attacker could use this to obtain the password of the next person coming to sit in front of the machine\&. Under Linux, the SAK mechanism can be used by users to initiate a trusted path and prevent this kind of attack\&. .SH "CONFIGURATION" .PP The following configuration variables in /etc/login\&.defs change the behavior of this tool: .PP \fBCONSOLE\fR (string) .RS 4 If defined, either full pathname of a file containing device names (one per line) or a ":" delimited list of device names\&. Root logins will be allowed only upon these devices\&. .sp If not defined, root will be allowed on any device\&. .sp The device should be specified without the /dev/ prefix\&. .RE .PP \fBCONSOLE_GROUPS\fR (string) .RS 4 List of groups to add to the user\'s supplementary groups set when logging in on the console (as determined by the CONSOLE setting)\&. Default is none\&. Use with caution \- it is possible for users to gain permanent access to these groups, even when not logged in on the console\&. .RE .PP \fBDEFAULT_HOME\fR (boolean) .RS 4 Indicate if login is allowed if we can\'t cd to the home directory\&. Default in no\&. .sp If set to \fIyes\fR, the user will login in the root (/) directory if it is not possible to cd to her home directory\&. .RE .PP \fBENV_HZ\fR (string) .RS 4 If set, it will be used to define the HZ environment variable when a user login\&. The value must be preceded by \fIHZ=\fR\&. A common value on Linux is \fIHZ=100\fR\&. .RE .PP \fBENV_PATH\fR (string) .RS 4 If set, it will be used to define the PATH environment variable when a regular user login\&. The value can be preceded by \fIPATH=\fR, or a colon separated list of paths (for example \fI/bin:/usr/bin\fR)\&. The default value is \fIPATH=/bin:/usr/bin\fR\&. .RE .PP \fBENV_SUPATH\fR (string) .RS 4 If set, it will be used to define the PATH environment variable when the superuser login\&. The value can be preceded by \fIPATH=\fR, or a colon separated list of paths (for example \fI/sbin:/bin:/usr/sbin:/usr/bin\fR)\&. The default value is \fIPATH=/bin:/usr/bin\fR\&. .RE .PP \fBENV_TZ\fR (string) .RS 4 If set, it will be used to define the TZ environment variable when a user login\&. The value can be the name of a timezone preceded by \fITZ=\fR (for example \fITZ=CST6CDT\fR), or the full path to the file containing the timezone specification (for example /etc/tzname)\&. .sp If a full path is specified but the file does not exist or cannot be read, the default is to use \fITZ=CST6CDT\fR\&. .RE .PP \fBENVIRON_FILE\fR (string) .RS 4 If this file exists and is readable, login environment will be read from it\&. Every line should be in the form name=value\&. .sp Lines starting with a # are treated as comment lines and ignored\&. .RE .PP \fBERASECHAR\fR (number) .RS 4 Terminal ERASE character (\fI010\fR = backspace, \fI0177\fR = DEL)\&. .sp The value can be prefixed "0" for an octal value, or "0x" for an hexadecimal value\&. .RE .PP \fBFAIL_DELAY\fR (number) .RS 4 Delay in seconds before being allowed another attempt after a login failure\&. .RE .PP \fBFAILLOG_ENAB\fR (boolean) .RS 4 Enable logging and display of /var/log/faillog login failure info\&. .RE .PP \fBFAKE_SHELL\fR (string) .RS 4 If set, \fBlogin\fR will execute this shell instead of the users\' shell specified in /etc/passwd\&. .RE .PP \fBFTMP_FILE\fR (string) .RS 4 If defined, login failures will be logged in this file in a utmp format\&. .RE .PP \fBHUSHLOGIN_FILE\fR (string) .RS 4 If defined, this file can inhibit all the usual chatter during the login sequence\&. If a full pathname is specified, then hushed mode will be enabled if the user\'s name or shell are found in the file\&. If not a full pathname, then hushed mode will be enabled if the file exists in the user\'s home directory\&. .RE .PP \fBISSUE_FILE\fR (string) .RS 4 If defined, this file will be displayed before each login prompt\&. .RE .PP \fBKILLCHAR\fR (number) .RS 4 Terminal KILL character (\fI025\fR = CTRL/U)\&. .sp The value can be prefixed "0" for an octal value, or "0x" for an hexadecimal value\&. .RE .PP \fBLASTLOG_ENAB\fR (boolean) .RS 4 Enable logging and display of /var/log/lastlog login time info\&. .RE .PP \fBLOGIN_RETRIES\fR (number) .RS 4 Maximum number of login retries in case of bad password\&. .RE .PP \fBLOGIN_STRING\fR (string) .RS 4 The string used for prompting a password\&. The default is to use "Password: ", or a translation of that string\&. If you set this variable, the prompt will no be translated\&. .sp If the string contains \fI%s\fR, this will be replaced by the user\'s name\&. .RE .PP \fBLOGIN_TIMEOUT\fR (number) .RS 4 Max time in seconds for login\&. .RE .PP \fBLOG_OK_LOGINS\fR (boolean) .RS 4 Enable logging of successful logins\&. .RE .PP \fBLOG_UNKFAIL_ENAB\fR (boolean) .RS 4 Enable display of unknown usernames when login failures are recorded\&. .sp Note: logging unknown usernames may be a security issue if an user enter her password instead of her login name\&. .RE .PP \fBMAIL_CHECK_ENAB\fR (boolean) .RS 4 Enable checking and display of mailbox status upon login\&. .sp You should disable it if the shell startup files already check for mail ("mailx \-e" or equivalent)\&. .RE .PP \fBMAIL_DIR\fR (string) .RS 4 Das Verzeichnis des Mail\-Spools\&. Diese Angabe wird ben\(:otigt, um die Mailbox zu bearbeiten, nachdem das entsprechende Benutzerkonto ver\(:andert oder gel\(:oscht wurde\&. Falls nicht angegeben, wird ein Standard verwendet, der beim Kompilieren festgelegt wurde\&. .RE .PP \fBMAIL_FILE\fR (string) .RS 4 Defines the location of the users mail spool files relatively to their home directory\&. .RE .PP The \fBMAIL_DIR\fR and \fBMAIL_FILE\fR variables are used by \fBuseradd\fR, \fBusermod\fR, and \fBuserdel\fR to create, move, or delete the user\'s mail spool\&. .PP If \fBMAIL_CHECK_ENAB\fR is set to \fIyes\fR, they are also used to define the \fBMAIL\fR environment variable\&. .PP \fBMOTD_FILE\fR (string) .RS 4 If defined, ":" delimited list of "message of the day" files to be displayed upon login\&. .RE .PP \fBNOLOGINS_FILE\fR (string) .RS 4 If defined, name of file whose presence will inhibit non\-root logins\&. The contents of this file should be a message indicating why logins are inhibited\&. .RE .PP \fBPORTTIME_CHECKS_ENAB\fR (boolean) .RS 4 Enable checking of time restrictions specified in /etc/porttime\&. .RE .PP \fBQUOTAS_ENAB\fR (boolean) .RS 4 Enable setting of ulimit, umask, and niceness from passwd gecos field\&. .RE .PP \fBTTYGROUP\fR (string), \fBTTYPERM\fR (string) .RS 4 The terminal permissions: the login tty will be owned by the \fBTTYGROUP\fR group, and the permissions will be set to \fBTTYPERM\fR\&. .sp By default, the ownership of the terminal is set to the user\'s primary group and the permissions are set to \fI0600\fR\&. .sp \fBTTYGROUP\fR can be either the name of a group or a numeric group identifier\&. .sp If you have a \fBwrite\fR program which is "setgid" to a special group which owns the terminals, define TTYGROUP to the group number and TTYPERM to 0620\&. Otherwise leave TTYGROUP commented out and assign TTYPERM to either 622 or 600\&. .RE .PP \fBTTYTYPE_FILE\fR (string) .RS 4 If defined, file which maps tty line to TERM environment parameter\&. Each line of the file is in a format something like "vt100 tty01"\&. .RE .PP \fBULIMIT\fR (number) .RS 4 Default \fBulimit\fR value\&. .RE .PP \fBUMASK\fR (number) .RS 4 The file mode creation mask is initialized to this value\&. If not specified, the mask will be initialized to 022\&. .sp \fBuseradd\fR and \fBnewusers\fR use this mask to set the mode of the home directory they create .sp It is also used by \fBlogin\fR to define users\' initial umask\&. Note that this mask can be overriden by the user\'s GECOS line (if \fBQUOTAS_ENAB\fR is set) or by the specification of a limit with the \fIK\fR identifier in \fBlimits\fR(5)\&. .RE .PP \fBUSERGROUPS_ENAB\fR (boolean) .RS 4 Enable setting of the umask group bits to be the same as owner bits (examples: 022 \-> 002, 077 \-> 007) for non\-root users, if the uid is the same as gid, and username is the same as the primary group name\&. .sp If set to \fIyes\fR, \fBuserdel\fR will remove the user\'s group if it contains no more members, and \fBuseradd\fR will create by default a group with the name of the user\&. .RE .SH "DATEIEN" .PP /var/run/utmp .RS 4 Liste der aktuellen Login\-Sitzungen\&. .RE .PP /var/log/wtmp .RS 4 Liste der vorangegangenen Login\-Sitzungen .RE .PP /etc/passwd .RS 4 Informationen zu den Benutzerkonten\&. .RE .PP /etc/shadow .RS 4 Verschl\(:usselte Informationen zu den Benutzerkonten\&. .RE .PP /etc/motd .RS 4 Datei mit der Systemmeldung des Tages\&. .RE .PP /etc/nologin .RS 4 Verhindert, dass sich Benutzer au\(sser Root anmelden\&. .RE .PP /etc/ttytype .RS 4 Liste der Terminaltypen\&. .RE .PP $HOME/\&.hushlogin .RS 4 Unterdr\(:uckt die Ausgabe von Systemnachrichten\&. .RE .PP /etc/login\&.defs .RS 4 Konfiguration des Shadow\-Passwort\-Systems .RE .SH "SIEHE AUCH" .PP \fBmail\fR(1), \fBpasswd\fR(1), \fBsh\fR(1), \fBsu\fR(1), \fBlogin.defs\fR(5), \fBnologin\fR(5), \fBpasswd\fR(5), \fBsecuretty\fR(5), \fBgetty\fR(8)\&.