1 --- sysvinit-2.88dsf/src/Makefile.wiget 2010-04-11 11:30:27.000000000 +0200
2 +++ sysvinit-2.88dsf/src/Makefile 2011-12-03 23:38:27.970109228 +0100
3 @@ -23,13 +23,13 @@ MNTPOINT=
5 # For some known distributions we do not build all programs, otherwise we do.
7 -SBIN = init halt shutdown runlevel killall5 fstab-decode
8 +SBIN = init halt shutdown runlevel killall5 fstab-decode lastlog
11 MAN1 = last.1 lastb.1 mesg.1
12 MAN5 = initscript.5 inittab.5 initctl.5
13 MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
14 -MAN8 += shutdown.8 telinit.8 fstab-decode.8
15 +MAN8 += shutdown.8 telinit.8 fstab-decode.8 lastlog.8
18 SBIN += sulogin bootlogd
19 @@ -115,6 +115,9 @@ halt: halt.o ifdown.o hddown.o utmp.o
20 last: LDLIBS += $(STATIC)
23 +lastlog: LDLIBS += $(STATIC)
26 mesg: LDLIBS += $(STATIC)
29 --- sysvinit-2.88dsf/src/lastlog.c.wiget 2011-12-03 23:31:01.697380950 +0100
30 +++ sysvinit-2.88dsf/src/lastlog.c 2011-12-03 23:31:01.697380950 +0100
33 + * Copyright 1989 - 1994, Julianne Frances Haugh
34 + * All rights reserved.
36 + * Redistribution and use in source and binary forms, with or without
37 + * modification, are permitted provided that the following conditions
39 + * 1. Redistributions of source code must retain the above copyright
40 + * notice, this list of conditions and the following disclaimer.
41 + * 2. Redistributions in binary form must reproduce the above copyright
42 + * notice, this list of conditions and the following disclaimer in the
43 + * documentation and/or other materials provided with the distribution.
44 + * 3. Neither the name of Julianne F. Haugh nor the names of its contributors
45 + * may be used to endorse or promote products derived from this software
46 + * without specific prior written permission.
48 + * THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
49 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
50 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
51 + * ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
52 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
53 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
54 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
55 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
56 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
67 +#include <sys/stat.h>
68 +#include <sys/types.h>
72 + * Needed for MkLinux DR1/2/2.1 - J.
75 +#define LASTLOG_FILE "/var/log/lastlog"
80 +static FILE *lastlogfile; /* lastlog file stream */
81 +static off_t user; /* one single user, specified on command line */
82 +static int days; /* number of days to consider for print command */
83 +static time_t seconds; /* that number of days in seconds */
84 +static int inverse_days; /* number of days to consider for print command */
85 +static time_t inverse_seconds; /* that number of days in seconds */
88 +static int uflg = 0; /* set if user is a valid user id */
89 +static int tflg = 0; /* print is restricted to most recent days */
90 +static int bflg = 0; /* print excludes most recent days */
91 +static struct lastlog lastlog; /* scratch structure to play with ... */
92 +static struct stat statbuf; /* fstat buffer for file size */
93 +static struct passwd *pwent;
95 +#define NOW (time ((time_t *) 0))
97 +static void usage (void)
99 + fprintf (stdout, "Usage: lastlog [options]\n"
102 + " -b, --before DAYS print only lastlog records older than DAYS\n"
103 + " -h, --help display this help message and exit\n"
104 + " -t, --time DAYS print only lastlog records more recent than DAYS\n"
105 + " -u, --user LOGIN print lastlog record for user with specified LOGIN\n"
110 +static void print_one (const struct passwd *pw)
117 +#ifdef HAVE_STRFTIME
126 + printf ("Username Port From Latest\n");
128 + printf ("Username Port Latest\n");
132 + ll_time = lastlog.ll_time;
133 + tm = localtime (&ll_time);
134 +#ifdef HAVE_STRFTIME
135 + strftime (ptime, sizeof (ptime), "%a %b %e %H:%M:%S %z %Y", tm);
142 + if (lastlog.ll_time == (time_t) 0)
143 + cp = "**Never logged in**\0";
146 + printf ("%-16s %-8.8s %-16.16s %s\n", pw->pw_name,
147 + lastlog.ll_line, lastlog.ll_host, cp);
149 + printf ("%-16s\t%-8.8s %s\n", pw->pw_name, lastlog.ll_line, cp);
153 +static void print (void)
158 + offset = user * sizeof lastlog;
160 + if (fstat (fileno (lastlogfile), &statbuf)) {
161 + perror (LASTLOG_FILE);
164 + if (offset >= statbuf.st_size)
167 + fseeko (lastlogfile, offset, SEEK_SET);
168 + if (fread ((char *) &lastlog, sizeof lastlog, 1,
172 + perror (LASTLOG_FILE);
175 + while ((pwent = getpwent ())) {
176 + user = pwent->pw_uid;
177 + offset = user * sizeof lastlog;
179 + fseeko (lastlogfile, offset, SEEK_SET);
180 + if (fread ((char *) &lastlog, sizeof lastlog, 1,
184 + if (tflg && NOW - lastlog.ll_time > seconds)
187 + if (bflg && NOW - lastlog.ll_time < inverse_seconds)
195 +int main (int argc, char **argv)
198 + static struct option const longopts[] = {
199 + {"help", no_argument, NULL, 'h'},
200 + {"time", required_argument, NULL, 't'},
201 + {"before", required_argument, NULL, 'b'},
202 + {"user", required_argument, NULL, 'u'},
203 + {NULL, 0, NULL, '\0'}
206 + while ((c = getopt_long (argc, argv, "ht:b:u:", longopts, NULL)) != -1) {
212 + days = atoi (optarg);
213 + seconds = days * (24L*3600L);
217 + inverse_days = atoi (optarg);
218 + inverse_seconds = inverse_days * (24L*3600L);
222 + pwent = getpwnam (optarg);
224 + fprintf (stderr, "Unknown User: %s\n", optarg);
228 + user = pwent->pw_uid;
235 + if (argc > optind) {
236 + fprintf (stderr, "lastlog: unexpected argument: %s\n", argv[optind]);
240 + if ((lastlogfile = fopen (LASTLOG_FILE, "r")) == (FILE *) 0) {
241 + perror (LASTLOG_FILE);
246 + fclose (lastlogfile);
249 --- sysvinit-2.88dsf/man/intl/ru/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
250 +++ sysvinit-2.88dsf/man/intl/ru/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
254 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
255 +.\" Date: 06/24/2006
256 +.\" Manual: Команды управления системой
257 +.\" Source: Команды управления системой
259 +.TH "lastlog" "8" "06/24/2006" "Команды управления системой" "Команды управления системой"
260 +.\" disable hyphenation
262 +.\" disable justification (adjust text to left margin only)
265 +lastlog \- выводит отчёт о последней регистрации в системе всех или указанного пользователя
268 +\fBlastlog\fR [\fIпараметры\fR]
273 +упорядочивает и выводит содержимое файла
274 +\fI/var/log/lastlog\fR, который содержит даты последнего входа пользователей систему. Выводятся
275 +\fIимя пользователя\fR,
278 +\fIдата последнего входа в систему\fR. По умолчанию (вызов без параметров) показываются записи файла lastlog, отсортированные согласно расположению пользователей в файле
285 +\fB\-b\fR, \fB\-\-before\fR\fIДНЕЙ\fR
286 +Показать записи lastlog за последние
289 +\fB\-h\fR, \fB\-\-help\fR
290 +Показать краткую справку и закончить работу.
292 +\fB\-t\fR, \fB\-\-time\fR\fIДНЕЙ\fR
293 +Показать записи lastlog новее чем
296 +\fB\-u\fR, \fB\-\-user\fR\fIИМЯ\fR
297 +Показать запись lastlog только для указанного пользователя с emphasis remap="I">ИМЕНЕМ
299 +Параметр \fB\-t\fR отменяет действие параметра \fB\-u\fR.
301 +Если пользователь никогда не регистрировался в системе, то будет показано сообщение
302 +\fI** Никогда не входил в систему**\fR
303 +вместо названия порта и даты.
308 +содержит информацию о последней регистрации в системе каждого пользователя. Вы не должны применять к нему ротацию журнальных файлов. Этот файл является разреженным, поэтому его размер на диске гораздо меньше, чем показывает команда "\fBls \-l\fR" (которая может показывать, что это очень большой файл, если значения идентификаторов пользователей в системе достигают больших значений). Чтобы увидеть реальный размер введите "\fBls \-s\fR".
311 +\fI/var/log/lastlog\fR
312 +содержит список завершённых сеансов работы с системой
313 +.SH "ПРЕДОСТЕРЕЖЕНИЯ"
315 +Большие промежутки в значениях идентификаторов пользователей приводят к тому, что программа некоторое время ничего не выводит на экран (то есть, если в базе данных lastlog нет пользователей с идентификаторами с 170 по 800, то во время обработки UID с 171 по 799 программа кажется повисшей).
316 --- sysvinit-2.88dsf/man/intl/hu/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
317 +++ sysvinit-2.88dsf/man/intl/hu/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
319 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
320 +.\" All rights reserved.
322 +.\" Redistribution and use in source and binary forms, with or without
323 +.\" modification, are permitted provided that the following conditions
325 +.\" 1. Redistributions of source code must retain the above copyright
326 +.\" notice, this list of conditions and the following disclaimer.
327 +.\" 2. Redistributions in binary form must reproduce the above copyright
328 +.\" notice, this list of conditions and the following disclaimer in the
329 +.\" documentation and/or other materials provided with the distribution.
330 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
331 +.\" may be used to endorse or promote products derived from this software
332 +.\" without specific prior written permission.
334 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
335 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
336 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
337 +.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
338 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
339 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
340 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
341 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
342 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
343 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
346 +.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
351 +lastlog \- a lastlog fájl vizsgálata
360 +A \fBlastlog\fR formázza és olvashatóan megjeleníti a
361 +\fB/var/log/lastlog\fR tartalmát. A listában szerepel a \fBlogin-név\fR, a
362 +\fBterminál (port) azonosítója\fR és a felhasználó \fBlegutolsó
363 +belépésének ideje\fR. Paraméterek nélkül meghívva a
364 +felhasználó-azonosítók (UID) alapján sorbarendezve jelennek meg az
365 +értékek. A \fB-u \fIlogin-név\fR opció megadása esetén csak a megadott
366 +felhasználó utolsó belépésének ideje jelenik meg. A \fB-t \fInapok
367 +száma\fR opció megadásával csak a megadott számú napon belüli belépési
368 +idők jelennek meg. A \fB-r\fR opció felülírja a \fB-u\fR opciót.
370 +Ha a felhasználó még soha nem lépett be, akkor a terminál és az idő
371 +helyett a \fB**Never logged in**\fR felirat jelenik meg.
373 +/var/log/lastlog \- a felhasználók legutóbbi belépéseit tartalmazza
375 +Ha a felhasználói azonosító számok (UID-k) között nagyobb üres tartományok
376 +vannak, akkor a lastlog futásakor megtörténhet, hogy hosszabb ideig
377 +nem jelenik meg semmi a képernyőn (pl ha a 170-es és a 800-as azonosítójú
378 +felhasználók között nincs több azonosító, akkor a 171 és 799 közötti
379 +számok kiértékelése alatt a képernyőn nem változik semmi).
381 +Julianne Frances Haugh (jfh@tab.com)
385 +Hermann Benedek (bence@intercom.hu)
387 --- sysvinit-2.88dsf/man/intl/pl/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
388 +++ sysvinit-2.88dsf/man/intl/pl/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
392 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
393 +.\" Date: 19/06/2006
394 +.\" Manual: Polecenia Zarządzania Systemem
395 +.\" Source: Polecenia Zarządzania Systemem
397 +.TH "LASTLOG" "8" "19/06/2006" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
398 +.\" disable hyphenation
400 +.\" disable justification (adjust text to left margin only)
403 +lastlog \- wyświetla informacje o ostanim logowaniu dla wybranego lub wszystkich użytkowaników
406 +\fBlastlog\fR [\fIopcje\fR]
411 +formatuje i wyświetla zawartość bazy ostatnich logowań zapisanych w pliku
412 +\fI/var/log/lastlog\fR. Wyświetlone zostaną
413 +\fInazwa użytkownika\fR,
417 +ostatniego logowania. Domyślnie (bez flag) pozycje wyświetlane są w kolejności w jakiej są w pliku
423 +posiada następujące opcje:
425 +\fB\-b\fR, \fB\-\-before\fR\fIDNI\fR
426 +Wyświetlenie rekordów lastlog starszych niż zadana
429 +\fB\-h\fR, \fB\-\-help\fR
430 +Wyświetlenie komunikatu pomocy i zakończenie działania.
432 +\fB\-t\fR, \fB\-\-time\fR\fIDNI\fR
433 +Wyświetlenie rekordów lastlog nie starszych niż zadana ilość
436 +\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR
437 +Wyświetlenie informacji o ostanim logowaniu dla użytkownika
440 +Opcja \fB\-t\fR przesłania użycie opcji \fB\-u\fR.
442 +Jeżeli użytkownik nigdy się nie logował to zamiast portu i czasu logowania wyświetlany jest komunikat
443 +\fI**Nigdy nie zalogowany**\fR
444 +(użytkownik nigdy się nie logował).
449 +jest plikiem zawierajacym informacje o ostanim logowaniu każdego użytkowanika. Pliku tego nie powinnoa się okresowo kasować i zakąłdać od nowa (rotacja). Plik ten jest plikiem z dziurami tak więc jego rozmiar jest zwykle znacznie mniejszy pokazywany przez polecenie "\fBls \-l\fR" (pokazujące że jest on dużych rozmiarów jeżeli masz w
451 +użytkowaników z wysokimi wartościami UID). Mozesz wyświetlić rzeczywisty rozmiar tego pliku używając polecenia "\fBls \-s\fR".
454 +\fI/var/log/lastlog\fR
455 +Baza danych ostatnich logowań użytkowników.
458 +Duże luki w numeracji UID powodują, że program będzie pracował dłużej, nie wyświetlając wyników (np. jeśli w bazie lastlog nie ma wpisów dla o UID pomiedzy 170, a 800, to program będzie sprawiał wrażenie zawieszonego w trakcie przetwarzania wpisów dla użytkowanikół o UID 171\-799).
459 --- sysvinit-2.88dsf/man/intl/it/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
460 +++ sysvinit-2.88dsf/man/intl/it/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
462 +.\" This file was generated with po4a. Translate the source file.
465 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
466 +.\" All rights reserved.
468 +.\" Redistribution and use in source and binary forms, with or without
469 +.\" modification, are permitted provided that the following conditions
471 +.\" 1. Redistributions of source code must retain the above copyright
472 +.\" notice, this list of conditions and the following disclaimer.
473 +.\" 2. Redistributions in binary form must reproduce the above copyright
474 +.\" notice, this list of conditions and the following disclaimer in the
475 +.\" documentation and/or other materials provided with the distribution.
476 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
477 +.\" may be used to endorse or promote products derived from this software
478 +.\" without specific prior written permission.
480 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
481 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
482 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
483 +.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
484 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
485 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
486 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
487 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
488 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
489 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
491 +.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
494 +lastlog \- esamina il file degli ultimi accessi
497 +\fBlastlog\fP [\fBopzioni\fP]
500 +\fBlastlog\fP mostra il log degli ultimi accessi, contenuto nel file
501 +\fI/var/log/lastlog\fP. Le informazioni mostrate sono il \fBnome utente\fP, la
502 +\fBporta\fP, e la \fBdata dell'ultimo accesso\fP. Il comportamento predefinito
503 +(nessuna opzione specificata) è di mostrare i record di ultimo accesso per
504 +tutti gli utenti, nell'ordine in cui compaiono in \fB/etc/passwd\fP.
507 +Il comando \fBlastlog\fP accetta le seguenti opzioni:
508 +.IP "\fB\-h\fP, \fB\-\-help\fP"
509 +Mostra un messaggio di aiuto ed esce.
510 +.IP "\fB\-t\fP, \fB\-\-time\fP \fIGIORNI\fP"
511 +Mostra solo i record di ultimo accesso più recenti di un numero di
513 +.IP "\fB\-u\fP, \fB\-\-user\fP \fILOGIN\fP"
514 +Mostra il record di ultimo accesso per l'utente specificato da \fILOGIN\fP.
516 +L'opzione \fB\-t\fP ha la precedenza sull'uso di \fB\-u\fP.
518 +Se l'utente non ha mai effettuato accessi al sistema viene mostrato, al
519 +posto della porta e della data, il messaggio \fB"**Nessun accesso
522 +\fI/var/log/lastlog\fP \- file di log degli ultimi accessi
524 +Se ci sono dei grossi scarti tra i valori di UID, il programma lastlog può
525 +restare in esecuzione per un tempo prolungato senza produrre output sullo
526 +schermo (ad es. se mmdf=800 e l'ultimo UID vale 170, il programma sembrerà
527 +bloccato come se esaminasse gli UID tra 171 e 799).
529 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
534 +Isabella Ruocco <isacher@nettaxi.com>, 1999
535 +Giuseppe Sacco <eppesuig@debian.org>, 2005
536 +Danilo Piazzalunga <danilopiazza@libero.it>, 2005
538 --- sysvinit-2.88dsf/man/intl/fr/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
539 +++ sysvinit-2.88dsf/man/intl/fr/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
543 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
544 +.\" Date: 30/07/2006
545 +.\" Manual: Commandes de gestion du système
546 +.\" Source: Commandes de gestion du système
548 +.TH "LASTLOG" "8" "30/07/2006" "Commandes de gestion du systèm" "Commandes de gestion du systèm"
549 +.\" disable hyphenation
551 +.\" disable justification (adjust text to left margin only)
554 +lastlog \- signaler les connexions les plus récentes de tous les utilisateurs ou d'un utilisateur donné
557 +\fBlastlog\fR [\fIoptions\fR]
561 +affiche le contenu du journal des dernières connexions (\fI/var/log/lastlog\fR). Les champs
565 +connexion sont affichés. Par défaut (aucune option de spécifiée), les entrées de laslog sont affichées triées par ordre d'apparition dans
569 +Les options disponibles pour la commande
573 +\fB\-b\fR, \fB\-\-before\fR \fIJOURS\fR
574 +N'affiche que les entrées du fichier lastlog plus anciennes que
577 +\fB\-h\fR, \fB\-\-help\fR
578 +Afficher un message d'aide et quitter.
580 +\fB\-t\fR, \fB\-\-time\fR \fIJOURS\fR
581 +Affiche les entrées du fichier lastlog plus récentes que
584 +\fB\-u\fR, \fB\-\-user\fR \fIIDENTIFIANT\fR
585 +N'affiche que les entrées correspondant à l'utilisateur
588 +L'utilisation de l'option \fB\-t\fR supplante l'option \fB\-u\fR.
590 +Dans le cas où l'utilisateur ne s'est jamais connecté, le message \(Fo\ \fI**Never logged in**\fR\ \(Fc (\(Fo\ \fI**Jamais connecté**\fR\ \(Fc) est affiché à la place des champs
599 +est une base de données qui contient des informations concernant la dernière connexion de chaque utilisateur. Vous n'avez pas à faire de rotation (avec rotate) sur ce fichier. C'est un fichier \(Fo\ creux\ \(Fc, donc sa taille sur le disque est bien plus petite que celle affichée par \(Fo\ \fBls \-l\fR\ \(Fc (qui peut indiquer un très gros fichier si vous avez des utilisateurs avec des UID élevés). Vous pouvez afficher sa taille réelle avec \(Fo\ \fBls \-s\fR\ \(Fc.
602 +\fI/var/log/lastlog\fR
603 +Base de données de l'heure des connexions précédentes des utilisateurs.
604 +.SH "AVERTISSEMENTS"
606 +S'il y a des trous importants dans les valeurs des UID, lastlog s'exécutera plus lentement, sans affichage à l'écran (par exemple, s'il n'y a pas d'entrée pour les utilisateurs ayant un UID compris entre 170 et 800 dans base de données lastlog, le programme lastlog semblera bloqué comme s'il traitait les entrées correspondant aux UID 171 à 799).
607 --- sysvinit-2.88dsf/man/intl/cs/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
608 +++ sysvinit-2.88dsf/man/intl/cs/man8/lastlog.8 2011-12-03 23:31:01.694047745 +0100
610 +.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
615 +lastlog \- prozkoumá soubor lastlog
619 +.IR přihlašovací\-jméno ]
623 +\fBlastlog\fR setřídí a zobrazí obsah souboru
624 +\fI/var/log/lastlog\fR,
625 +který obsahuje záznamy o přihlašování a odhlašování uživatelů v systému.
626 +Zobrazí se \fBpřihlašovací jméno\fR, \fBjméno terminálu\fR a \fBčas posledního
628 +Standardně (tj. bez dalších voleb) lastlog zobrazí záznamy setříděné
630 +Použití přepínače \fB\-u \fIpřihlašovací\-jméno\fR
631 +způsobí, že bude vytištěn pouze poslední záznam o přihlášení příslušného uživatele.
632 +Zadáním \fB\-t \fIdny\fR se zobrazí pouze
633 +ta přihlášení, které jsou dřívější než zadané \fIdny\fR.
634 +Parametr \fB\-t\fR překryje případný parametr \fB\-u\fR.
636 +Pokud se uživatel ještě nikdy nepřihlásil, zobrazí se zpráva \fB"**Never logged in**"\fR (Nikdy nepřihlášen)
637 +místo jména terminálu a času.
639 +/var/log/lastlog \- soubor se záznamy o přihlášení a odhlášení
641 +Velké rozdíly v UID číslech jsou způsobeny tím, že lastlog program běžel dlouho bez
642 +výstupu na obrazovku (např. mmdf=800 a poslední uid=170, program se bude
643 +jevit jako s uid 171\-799).
645 +Julianne Frances Haugh (jfh@austin.ibm.com)
649 +Ondřej Pavlíček (mox@post.cz).
650 --- sysvinit-2.88dsf/man/intl/sv/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
651 +++ sysvinit-2.88dsf/man/intl/sv/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
655 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
656 +.\" Date: 20.07.2006
657 +.\" Manual: Systemhanteringskommandon
658 +.\" Source: Systemhanteringskommandon
660 +.TH "LASTLOG" "8" "20\-07\-2006" "Systemhanteringskommandon" "Systemhanteringskommandon"
661 +.\" disable hyphenation
663 +.\" disable justification (adjust text to left margin only)
666 +lastlog \- reports the most recent login of all users or of a given user
669 +\fBlastlog\fR [\fIflaggor\fR]
674 +formats and prints the contents of the last login log
675 +\fI/var/log/lastlog\fR
679 +\fIlast login time\fR
680 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
684 +Flaggorna som gäller för kommandot
688 +\fB\-b\fR, \fB\-\-before\fR\fIDAGAR\fR
689 +Print only lastlog records older than
692 +\fB\-h\fR, \fB\-\-help\fR
693 +Visa hjälpmeddelande och avsluta.
695 +\fB\-t\fR, \fB\-\-time\fR\fIDAGAR\fR
696 +Print the lastlog records more recent than
699 +\fB\-u\fR, \fB\-\-user\fR\fIINLOGGNINGSNAMN\fR
700 +Print the lastlog record for user with specified
704 +Flaggan \fB\-t\fR åsidosätter användningen av \fB\-u\fR.
706 +If the user has never logged in the message
707 +\fI** Never logged in**\fR
708 +will be displayed instead of the port and time.
713 +file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "\fBls \-l\fR" (which can indicate a really big file if you have in
715 +users with a high UID). You can display its real size with "\fBls \-s\fR".
718 +\fI/var/log/lastlog\fR
719 +Databastider för tidigare användarinloggningar.
722 +Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\-799).
723 --- sysvinit-2.88dsf/man/intl/ja/man8/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
724 +++ sysvinit-2.88dsf/man/intl/ja/man8/lastlog.8 2011-12-03 23:31:01.697380950 +0100
727 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
728 +.\" All rights reserved.
730 +.\" Redistribution and use in source and binary forms, with or without
731 +.\" modification, are permitted provided that the following conditions
733 +.\" 1. Redistributions of source code must retain the above copyright
734 +.\" notice, this list of conditions and the following disclaimer.
735 +.\" 2. Redistributions in binary form must reproduce the above copyright
736 +.\" notice, this list of conditions and the following disclaimer in the
737 +.\" documentation and/or other materials provided with the distribution.
738 +.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
739 +.\" may be used to endorse or promote products derived from this software
740 +.\" without specific prior written permission.
742 +.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
743 +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
744 +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
745 +.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
746 +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
747 +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
748 +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
749 +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
750 +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
751 +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
753 +.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
755 +.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
756 +.\" all rights reserved.
757 +.\" Translated Fri Feb 14 23:06:00 JST 1997
758 +.\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
759 +.\" Updated & Modified Thu Oct 14 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
760 +.\" Updated Fri Jan 12 2001 by Kentaro Shirakata <argrath@ub32.org>
761 +.\" Updated Mon Mar 4 2002 by kentaro Shirakata <argrath@ub32.org>
762 +.\" Modified Sat 21 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
766 +lastlog \- lastlog ファイルを調べる
769 +\fBlastlog\fR [(\fB\-u\fR|\fB\-\-user\fR) \fIlogin\fR]
770 +[(\fB\-t\fR|\fB\-\-time\fR) \fIdays\fR] [(\fB\-h\fR|\fB\-\-help\fR)]
772 +\fBlastlog\fR は最終ログインの記録ファイル
773 +\fI/var/log/lastlog\fR の内容を整形して表示する。
774 +\fBログイン名\fR・\fBポート\fR・\fB最終ログイン時刻\fR、が表示される。
775 +オプションを指定しなかった場合、デフォルトでは
776 +lastlog エントリを UID の数値でソートして表示する。
778 +\fB\-u\fR, \fB\-\-user\fR \fIlogin\-name\fR
779 +\fIlogin\-name\fR の記録だけを表示する。
781 +\fB\-t\fR, \fB\-\-time\fR \fIdays\fR
782 +最近 \fIdays\fR 日以内の最終ログインを表示する。
784 +\fB\-h\fR, \fB\-\-help\fR
787 +\fB\-u\fR フラグを用いると \fB\-t\fR は無視される。
788 +.\"nakano というのが実際の動作のように見えるのだが。
790 +一度もログインしていないユーザに対しては、
792 +\fB"**Never logged in**"\fR
795 +\fI/var/log/lastlog\fR \- lastlog 記録ファイル
798 +lastlog プログラムは長時間画面に何も出力しないまま
799 +実行を続ける (例えば mmdf が 800 で最後の UID が 170 の場合、
800 +UID が 171\-799 の間プログラムは何も出力しないので、
803 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
806 --- sysvinit-2.88dsf/man/lastlog.8.wiget 2011-12-03 23:31:01.697380950 +0100
807 +++ sysvinit-2.88dsf/man/lastlog.8 2011-12-03 23:31:01.697380950 +0100
811 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
812 +.\" Date: 07/30/2006
813 +.\" Manual: System Management Commands
814 +.\" Source: System Management Commands
816 +.TH "LASTLOG" "8" "07/30/2006" "System Management Commands" "System Management Commands"
817 +.\" disable hyphenation
819 +.\" disable justification (adjust text to left margin only)
822 +lastlog \- reports the most recent login of all users or of a given user
825 +\fBlastlog\fR [\fIoptions\fR]
830 +formats and prints the contents of the last login log
831 +\fI/var/log/lastlog\fR
835 +\fIlast login time\fR
836 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
840 +The options which apply to the
844 +\fB\-b\fR, \fB\-\-before\fR \fIDAYS\fR
845 +Print only lastlog records older than
848 +\fB\-h\fR, \fB\-\-help\fR
849 +Display help message and exit.
851 +\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR
852 +Print the lastlog records more recent than
855 +\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR
856 +Print the lastlog record for user with specified
860 +The \fB\-t\fR flag overrides the use of \fB\-u\fR.
862 +If the user has never logged in the message
863 +\fI** Never logged in**\fR
864 +will be displayed instead of the port and time.
869 +file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "\fBls \-l\fR" (which can indicate a really big file if you have in
871 +users with a high UID). You can display its real size with "\fBls \-s\fR".
874 +\fI/var/log/lastlog\fR
875 +Database times of previous user logins.
878 +Large gaps in UID numbers will cause the lastlog program to run longer with no output to the screen (i.e. if in lastlog database there is no entries for users with UID between 170 and 800 lastlog will appear to hang as it processes entries with UIDs 171\-799).