]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-lastlog.patch
- updated to 3.04
[packages/SysVinit.git] / sysvinit-lastlog.patch
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=
4  
5  # For some known distributions we do not build all programs, otherwise we do.
6  BIN    =
7 -SBIN   = init halt shutdown runlevel killall5 fstab-decode
8 +SBIN   = init halt shutdown runlevel killall5 fstab-decode lastlog
9  USRBIN = last mesg
10  
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
16  
17  ifeq ($(DISTRO),)
18  SBIN   += sulogin bootlogd
19 @@ -115,6 +115,9 @@ halt:               halt.o ifdown.o hddown.o utmp.o
20  last:          LDLIBS += $(STATIC)
21  last:          last.o
22  
23 +lastlog:       LDLIBS += $(STATIC)
24 +lastlog:       lastlog.o
25 +
26  mesg:          LDLIBS += $(STATIC)
27  mesg:          mesg.o
28  
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
31 @@ -0,0 +1,217 @@
32 +/*
33 + * Copyright 1989 - 1994, Julianne Frances Haugh
34 + * All rights reserved.
35 + *
36 + * Redistribution and use in source and binary forms, with or without
37 + * modification, are permitted provided that the following conditions
38 + * are met:
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.
47 + *
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
58 + * SUCH DAMAGE.
59 + */
60 +
61 +#ident "$Id$"
62 +
63 +#include <getopt.h>
64 +#include <lastlog.h>
65 +#include <pwd.h>
66 +#include <stdio.h>
67 +#include <sys/stat.h>
68 +#include <sys/types.h>
69 +#include <time.h>
70 +#include <stdlib.h>
71 +/*
72 + * Needed for MkLinux DR1/2/2.1 - J.
73 + */
74 +#ifndef LASTLOG_FILE
75 +#define LASTLOG_FILE "/var/log/lastlog"
76 +#endif
77 +/*
78 + * Global variables
79 + */
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 */
86 +
87 +
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;
94 +
95 +#define        NOW     (time ((time_t *) 0))
96 +
97 +static void usage (void)
98 +{
99 +       fprintf (stdout, "Usage: lastlog [options]\n"
100 +                          "\n"
101 +                          "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"
106 +                          "\n");
107 +       exit(1);
108 +}
109 +
110 +static void print_one (const struct passwd *pw)
111 +{
112 +       static int once;
113 +       char *cp;
114 +       struct tm *tm;
115 +       time_t ll_time;
116 +
117 +#ifdef HAVE_STRFTIME
118 +       char ptime[80];
119 +#endif
120 +
121 +       if (!pw)
122 +               return;
123 +
124 +       if (!once) {
125 +#ifdef HAVE_LL_HOST
126 +               printf ("Username         Port     From             Latest\n");
127 +#else
128 +               printf ("Username                Port     Latest\n");
129 +#endif
130 +               once++;
131 +       }
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);
136 +       cp = ptime;
137 +#else
138 +       cp = asctime (tm);
139 +       cp[24] = '\0';
140 +#endif
141 +
142 +       if (lastlog.ll_time == (time_t) 0)
143 +               cp = "**Never logged in**\0";
144 +
145 +#ifdef HAVE_LL_HOST
146 +       printf ("%-16s %-8.8s %-16.16s %s\n", pw->pw_name,
147 +               lastlog.ll_line, lastlog.ll_host, cp);
148 +#else
149 +       printf ("%-16s\t%-8.8s %s\n", pw->pw_name, lastlog.ll_line, cp);
150 +#endif
151 +}
152 +
153 +static void print (void)
154 +{
155 +       off_t offset;
156 +
157 +       if (uflg) {
158 +               offset = user * sizeof lastlog;
159 +
160 +               if (fstat (fileno (lastlogfile), &statbuf)) {
161 +                       perror (LASTLOG_FILE);
162 +                       return;
163 +               }
164 +               if (offset >= statbuf.st_size)
165 +                       return;
166 +
167 +               fseeko (lastlogfile, offset, SEEK_SET);
168 +               if (fread ((char *) &lastlog, sizeof lastlog, 1,
169 +                          lastlogfile) == 1)
170 +                       print_one (pwent);
171 +               else
172 +                       perror (LASTLOG_FILE);
173 +       } else {
174 +               setpwent ();
175 +               while ((pwent = getpwent ())) {
176 +                       user = pwent->pw_uid;
177 +                       offset = user * sizeof lastlog;
178 +
179 +                       fseeko (lastlogfile, offset, SEEK_SET);
180 +                       if (fread ((char *) &lastlog, sizeof lastlog, 1,
181 +                                  lastlogfile) != 1)
182 +                               continue;
183 +
184 +                       if (tflg && NOW - lastlog.ll_time > seconds)
185 +                               continue;
186 +
187 +                       if (bflg && NOW - lastlog.ll_time < inverse_seconds)
188 +                               continue;
189 +
190 +                       print_one (pwent);
191 +               }
192 +       }
193 +}
194 +
195 +int main (int argc, char **argv)
196 +{
197 +       int c;
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'}
204 +       };
205 +
206 +       while ((c = getopt_long (argc, argv, "ht:b:u:", longopts, NULL)) != -1) {
207 +               switch (c) {
208 +               case 'h':
209 +                       usage ();
210 +                       break;
211 +               case 't':
212 +                       days = atoi (optarg);
213 +                       seconds = days * (24L*3600L);
214 +                       tflg++;
215 +                       break;
216 +               case 'b':
217 +                       inverse_days = atoi (optarg);
218 +                       inverse_seconds = inverse_days * (24L*3600L);
219 +                       bflg++;
220 +                       break;
221 +               case 'u':
222 +                       pwent = getpwnam (optarg);
223 +                       if (!pwent) {
224 +                               fprintf (stderr, "Unknown User: %s\n", optarg);
225 +                               exit (1);
226 +                       }
227 +                       uflg++;
228 +                       user = pwent->pw_uid;
229 +                       break;
230 +               default:
231 +                       usage ();
232 +                       break;
233 +               }
234 +       }
235 +       if (argc > optind) {
236 +               fprintf (stderr, "lastlog: unexpected argument: %s\n", argv[optind]);
237 +               usage();
238 +       }
239 +
240 +       if ((lastlogfile = fopen (LASTLOG_FILE, "r")) == (FILE *) 0) {
241 +               perror (LASTLOG_FILE);
242 +               exit (1);
243 +       }
244 +
245 +       print ();
246 +       fclose (lastlogfile);
247 +       exit (0);
248 +}
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
251 @@ -0,0 +1,64 @@
252 +.\"     Title: lastlog
253 +.\"    Author: 
254 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
255 +.\"      Date: 06/24/2006
256 +.\"    Manual: Команды управления системой
257 +.\"    Source: Команды управления системой
258 +.\"
259 +.TH "lastlog" "8" "06/24/2006" "Команды управления системой" "Команды управления системой"
260 +.\" disable hyphenation
261 +.nh
262 +.\" disable justification (adjust text to left margin only)
263 +.ad l
264 +.SH "НАЗВАНИЕ"
265 +lastlog \- выводит отчёт о последней регистрации в системе всех или указанного пользователя
266 +.SH "СИНТАКСИС"
267 +.HP 8
268 +\fBlastlog\fR [\fIпараметры\fR]
269 +.SH "ОПИСАНИЕ"
270 +.PP
271 +Программа
272 +\fBlastlog\fR
273 +упорядочивает и выводит содержимое файла
274 +\fI/var/log/lastlog\fR, который содержит даты последнего входа пользователей систему. Выводятся
275 +\fIимя пользователя\fR,
276 +\fIпорт\fR
277
278 +\fIдата последнего входа в систему\fR. По умолчанию (вызов без параметров) показываются записи файла lastlog, отсортированные согласно расположению пользователей в файле
279 +\fI/etc/passwd\fR.
280 +.SH "ПАРАМЕТРЫ"
281 +.PP
282 +Параметры команды
283 +\fBlastlog\fR:
284 +.TP 3n
285 +\fB\-b\fR, \fB\-\-before\fR\fIДНЕЙ\fR
286 +Показать записи lastlog за последние
287 +\fIДНЕЙ\fR.
288 +.TP 3n
289 +\fB\-h\fR, \fB\-\-help\fR
290 +Показать краткую справку и закончить работу.
291 +.TP 3n
292 +\fB\-t\fR, \fB\-\-time\fR\fIДНЕЙ\fR
293 +Показать записи lastlog новее чем
294 +\fIДНЕЙ\fR.
295 +.TP 3n
296 +\fB\-u\fR, \fB\-\-user\fR\fIИМЯ\fR
297 +Показать запись lastlog только для указанного пользователя с emphasis remap="I">ИМЕНЕМ
298 +.TP 3n
299 +Параметр \fB\-t\fR отменяет действие параметра \fB\-u\fR.
300 +.PP
301 +Если пользователь никогда не регистрировался в системе, то будет показано сообщение
302 +\fI** Никогда не входил в систему**\fR
303 +вместо названия порта и даты.
304 +.SH "ЗАМЕЧАНИЕ"
305 +.PP
306 +Файл
307 +\fIlastlog\fR
308 +содержит информацию о последней регистрации в системе каждого пользователя. Вы не должны применять к нему ротацию журнальных файлов. Этот файл является разреженным, поэтому его размер на диске гораздо меньше, чем показывает команда "\fBls \-l\fR" (которая может показывать, что это очень большой файл, если значения идентификаторов пользователей в системе достигают больших значений). Чтобы увидеть реальный размер введите "\fBls \-s\fR".
309 +.SH "ФАЙЛЫ"
310 +.TP 3n
311 +\fI/var/log/lastlog\fR
312 +содержит список завершённых сеансов работы с системой
313 +.SH "ПРЕДОСТЕРЕЖЕНИЯ"
314 +.PP
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
318 @@ -0,0 +1,68 @@
319 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
320 +.\" All rights reserved.
321 +.\"
322 +.\" Redistribution and use in source and binary forms, with or without
323 +.\" modification, are permitted provided that the following conditions
324 +.\" are met:
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.
333 +.\"
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
344 +.\" SUCH DAMAGE.
345 +.\"
346 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
347 +.\"    $Id$
348 +.\"
349 +.TH LASTLOG 8
350 +.SH NÉV
351 +lastlog \- a lastlog fájl vizsgálata
352 +.SH ÁTTEKINTÉS
353 +.B lastlog
354 +.RB [ -u
355 +.IR uid ]
356 +.RB [ -t
357 +.IR napok száma ]
358 +.SH LEÍRÁS
359 +
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.
369 +.PP
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.
372 +.SH FÁJLOK
373 +/var/log/lastlog \- a felhasználók legutóbbi belépéseit tartalmazza
374 +.SH MEGJEGYZÉS
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).
380 +.SH SZERZŐK
381 +Julianne Frances Haugh (jfh@tab.com)
382 +.br
383 +Phillip Street
384 +.SH MAGYAR FORDÍTÁS
385 +Hermann Benedek (bence@intercom.hu)
386 +
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
389 @@ -0,0 +1,69 @@
390 +.\"     Title: lastlog
391 +.\"    Author: 
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
396 +.\"
397 +.TH "LASTLOG" "8" "19/06/2006" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
398 +.\" disable hyphenation
399 +.nh
400 +.\" disable justification (adjust text to left margin only)
401 +.ad l
402 +.SH "NAZWA"
403 +lastlog \- wyświetla informacje o ostanim logowaniu dla wybranego lub wszystkich użytkowaników
404 +.SH "SKŁADNIA"
405 +.HP 8
406 +\fBlastlog\fR [\fIopcje\fR]
407 +.SH "OPIS"
408 +.PP
409 +Polecenie
410 +\fBlastlog\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,
414 +\fIport\fR
415 +i
416 +\fIczas\fR
417 +ostatniego logowania. Domyślnie (bez flag) pozycje wyświetlane są w kolejności w jakiej są w pliku
418 +\fI/etc/passwd\fR.
419 +.SH "OPCJE"
420 +.PP
421 +Polecenie
422 +\fBlastlog\fR
423 +posiada następujące opcje:
424 +.TP 3n
425 +\fB\-b\fR, \fB\-\-before\fR\fIDNI\fR
426 +Wyświetlenie rekordów lastlog starszych niż zadana
427 +\fIDNI\fR.
428 +.TP 3n
429 +\fB\-h\fR, \fB\-\-help\fR
430 +Wyświetlenie komunikatu pomocy i zakończenie działania.
431 +.TP 3n
432 +\fB\-t\fR, \fB\-\-time\fR\fIDNI\fR
433 +Wyświetlenie rekordów lastlog nie starszych niż zadana ilość
434 +\fIDNI\fR.
435 +.TP 3n
436 +\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR
437 +Wyświetlenie informacji o ostanim logowaniu dla użytkownika
438 +\fILOGIN\fR.
439 +.TP 3n
440 +Opcja \fB\-t\fR przesłania użycie opcji \fB\-u\fR.
441 +.PP
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ł).
445 +.SH "UWAGI"
446 +.PP
447 +Baza danych
448 +\fIlastlog\fR
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
450 +\fIpasswd\fR
451 +użytkowaników z wysokimi wartościami UID). Mozesz wyświetlić rzeczywisty rozmiar tego pliku używając polecenia "\fBls \-s\fR".
452 +.SH "PLIKI"
453 +.TP 3n
454 +\fI/var/log/lastlog\fR
455 +Baza danych ostatnich logowań użytkowników.
456 +.SH "OSTRZEŻENIA"
457 +.PP
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
461 @@ -0,0 +1,76 @@
462 +.\" This file was generated with po4a. Translate the source file.
463 +.\" 
464 +.\"$Id$
465 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
466 +.\" All rights reserved.
467 +.\"
468 +.\" Redistribution and use in source and binary forms, with or without
469 +.\" modification, are permitted provided that the following conditions
470 +.\" are met:
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.
479 +.\"
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
490 +.\" SUCH DAMAGE.
491 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
492 +.TH LASTLOG 8   
493 +.SH NOME
494 +lastlog \- esamina il file degli ultimi accessi
495 +.SH SINTASSI
496 +.TP 8
497 +\fBlastlog\fP [\fBopzioni\fP]
498 +.SH DESCRIZIONE
499 +.PP
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.
505 +.SH OPZIONI
506 +.TP
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 
512 +\fIGIORNI\fP.
513 +.IP "\fB\-u\fP, \fB\-\-user\fP \fILOGIN\fP"
514 +Mostra il record di ultimo accesso per l'utente specificato da \fILOGIN\fP.
515 +.TP
516 +L'opzione \fB\-t\fP ha la precedenza sull'uso di \fB\-u\fP.
517 +.PP
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 
520 +effettuato**"\fP.
521 +.SH FILE
522 +\fI/var/log/lastlog\fP \- file di log degli ultimi accessi
523 +.SH AVVISI/CAVEAT
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).
528 +.SH AUTORI
529 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
530 +.br
531 +Phillip Street
532 +.SH TRADUZIONE
533 +.nf
534 +Isabella Ruocco <isacher@nettaxi.com>, 1999
535 +Giuseppe Sacco <eppesuig@debian.org>, 2005
536 +Danilo Piazzalunga <danilopiazza@libero.it>, 2005
537 +.fi
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
540 @@ -0,0 +1,66 @@
541 +.\"     Title: lastlog
542 +.\"    Author: 
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
547 +.\"
548 +.TH "LASTLOG" "8" "30/07/2006" "Commandes de gestion du systèm" "Commandes de gestion du systèm"
549 +.\" disable hyphenation
550 +.nh
551 +.\" disable justification (adjust text to left margin only)
552 +.ad l
553 +.SH "NOM"
554 +lastlog \- signaler les connexions les plus récentes de tous les utilisateurs ou d'un utilisateur donné
555 +.SH "SYNOPSIS"
556 +.HP 8
557 +\fBlastlog\fR [\fIoptions\fR]
558 +.SH "DESCRIPTION"
559 +.PP
560 +\fBLastlog\fR
561 +affiche le contenu du journal des dernières connexions (\fI/var/log/lastlog\fR). Les champs
562 +\fIUtilisateur\fR,
563 +\fIPort\fR, date de
564 +\fIDernière\fR
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
566 +\fI/etc/passwd\fR.
567 +.SH "OPTIONS"
568 +.PP
569 +Les options disponibles pour la commande
570 +\fBlastlog\fR
571 +sont\ :
572 +.TP 3n
573 +\fB\-b\fR, \fB\-\-before\fR \fIJOURS\fR
574 +N'affiche que les entrées du fichier lastlog plus anciennes que
575 +\fIJOURS\fR.
576 +.TP 3n
577 +\fB\-h\fR, \fB\-\-help\fR
578 +Afficher un message d'aide et quitter.
579 +.TP 3n
580 +\fB\-t\fR, \fB\-\-time\fR \fIJOURS\fR
581 +Affiche les entrées du fichier lastlog plus récentes que
582 +\fIJOURS\fR.
583 +.TP 3n
584 +\fB\-u\fR, \fB\-\-user\fR \fIIDENTIFIANT\fR
585 +N'affiche que les entrées correspondant à l'utilisateur
586 +\fIIDENTIFIANT\fR.
587 +.TP 3n
588 +L'utilisation de l'option \fB\-t\fR supplante l'option \fB\-u\fR.
589 +.PP
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
591 +\fIPort\fR
592 +et date de
593 +\fIDernière\fR
594 +connexion.
595 +.SH "NOTE"
596 +.PP
597 +Le fichier
598 +\fIlastlog\fR
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.
600 +.SH "FICHIERS"
601 +.TP 3n
602 +\fI/var/log/lastlog\fR
603 +Base de données de l'heure des connexions précédentes des utilisateurs.
604 +.SH "AVERTISSEMENTS"
605 +.PP
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
609 @@ -0,0 +1,40 @@
610 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
611 +.\"    $Id$
612 +.\"
613 +.TH LASTLOG 8
614 +.SH JMÉNO
615 +lastlog \- prozkoumá soubor lastlog
616 +.SH SYNTAXE
617 +.B lastlog
618 +.RB [ \-u
619 +.IR přihlašovací\-jméno ]
620 +.RB [ \-t
621 +.IR dny ]
622 +.SH POPIS
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
627 +přihlašení\fR.
628 +Standardně (tj. bez dalších voleb) lastlog zobrazí záznamy setříděné
629 +podle čísla UID.
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.
635 +.PP
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.
638 +.SH SOUBORY
639 +/var/log/lastlog \- soubor se záznamy o přihlášení a odhlášení
640 +.SH NÁMITKY
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).
644 +.SH AUTOŘI
645 +Julianne Frances Haugh (jfh@austin.ibm.com)
646 +.br
647 +Phillip Street
648 +.SH PŘELOŽIL
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
652 @@ -0,0 +1,70 @@
653 +.\"     Title: lastlog
654 +.\"    Author: 
655 +.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
656 +.\"      Date: 20.07.2006
657 +.\"    Manual: Systemhanteringskommandon
658 +.\"    Source: Systemhanteringskommandon
659 +.\"
660 +.TH "LASTLOG" "8" "20\-07\-2006" "Systemhanteringskommandon" "Systemhanteringskommandon"
661 +.\" disable hyphenation
662 +.nh
663 +.\" disable justification (adjust text to left margin only)
664 +.ad l
665 +.SH "NAMN"
666 +lastlog \- reports the most recent login of all users or of a given user
667 +.SH "SYNOPSIS"
668 +.HP 8
669 +\fBlastlog\fR [\fIflaggor\fR]
670 +.SH "BESKRIVNING"
671 +.PP
672 +
673 +\fBlastlog\fR
674 +formats and prints the contents of the last login log
675 +\fI/var/log/lastlog\fR
676 +file. The
677 +\fIlogin\-name\fR,
678 +\fIport\fR, and
679 +\fIlast login time\fR
680 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
681 +\fI/etc/passwd\fR.
682 +.SH "FLAGGOR"
683 +.PP
684 +Flaggorna som gäller för kommandot
685 +\fBlastlog\fR
686 +är:
687 +.TP 3n
688 +\fB\-b\fR, \fB\-\-before\fR\fIDAGAR\fR
689 +Print only lastlog records older than
690 +\fIDAYS\fR.
691 +.TP 3n
692 +\fB\-h\fR, \fB\-\-help\fR
693 +Visa hjälpmeddelande och avsluta.
694 +.TP 3n
695 +\fB\-t\fR, \fB\-\-time\fR\fIDAGAR\fR
696 +Print the lastlog records more recent than
697 +\fIDAYS\fR.
698 +.TP 3n
699 +\fB\-u\fR, \fB\-\-user\fR\fIINLOGGNINGSNAMN\fR
700 +Print the lastlog record for user with specified
701 +\fILOGIN\fR
702 +only.
703 +.TP 3n
704 +Flaggan \fB\-t\fR åsidosätter användningen av \fB\-u\fR.
705 +.PP
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.
709 +.SH "NOTERA"
710 +.PP
711 +The
712 +\fIlastlog\fR
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
714 +\fIpasswd\fR
715 +users with a high UID). You can display its real size with "\fBls \-s\fR".
716 +.SH "FILER"
717 +.TP 3n
718 +\fI/var/log/lastlog\fR
719 +Databastider för tidigare användarinloggningar.
720 +.SH "TÄNK PÅ"
721 +.PP
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
725 @@ -0,0 +1,80 @@
726 +.\"$Id$
727 +.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
728 +.\" All rights reserved.
729 +.\"
730 +.\" Redistribution and use in source and binary forms, with or without
731 +.\" modification, are permitted provided that the following conditions
732 +.\" are met:
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.
741 +.\"
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
752 +.\" SUCH DAMAGE.
753 +.\"    @(#)lastlog.8   3.3     08:24:58        29 Sep 1993 (National Guard Release)
754 +.\"
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>
763 +.\"
764 +.TH LASTLOG 8
765 +.SH 名前
766 +lastlog \- lastlog ファイルを調べる
767 +.SH 書式
768 +.TP 8
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)]
771 +.SH 説明
772 +\fBlastlog\fR は最終ログインの記録ファイル
773 +\fI/var/log/lastlog\fR の内容を整形して表示する。
774 +\fBログイン名\fR・\fBポート\fR・\fB最終ログイン時刻\fR、が表示される。
775 +オプションを指定しなかった場合、デフォルトでは
776 +lastlog エントリを UID の数値でソートして表示する。
777 +.TP
778 +\fB\-u\fR, \fB\-\-user\fR \fIlogin\-name\fR
779 +\fIlogin\-name\fR の記録だけを表示する。
780 +.TP
781 +\fB\-t\fR, \fB\-\-time\fR \fIdays\fR
782 +最近 \fIdays\fR 日以内の最終ログインを表示する。
783 +.TP
784 +\fB\-h\fR, \fB\-\-help\fR
785 +オンラインヘルプを表示して終了する。
786 +.PP
787 +\fB\-u\fR フラグを用いると \fB\-t\fR は無視される。
788 +.\"nakano というのが実際の動作のように見えるのだが。
789 +.PP
790 +一度もログインしていないユーザに対しては、
791 +ポートと時刻の代わりに
792 +\fB"**Never logged in**"\fR
793 +というメッセージが表示される。
794 +.SH ファイル
795 +\fI/var/log/lastlog\fR \- lastlog 記録ファイル
796 +.SH 警告
797 +UID 番号に大きな飛びがあると、
798 +lastlog プログラムは長時間画面に何も出力しないまま
799 +実行を続ける (例えば mmdf が 800 で最後の UID が 170 の場合、
800 +UID が 171\-799 の間プログラムは何も出力しないので、
801 +ハングしたように見える)。
802 +.SH 著者
803 +Julianne Frances Haugh (jockgrrl@ix.netcom.com)
804 +.BR
805 +Phillip Street
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
808 @@ -0,0 +1,70 @@
809 +.\"     Title: lastlog
810 +.\"    Author: 
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
815 +.\"
816 +.TH "LASTLOG" "8" "07/30/2006" "System Management Commands" "System Management Commands"
817 +.\" disable hyphenation
818 +.nh
819 +.\" disable justification (adjust text to left margin only)
820 +.ad l
821 +.SH "NAME"
822 +lastlog \- reports the most recent login of all users or of a given user
823 +.SH "SYNOPSIS"
824 +.HP 8
825 +\fBlastlog\fR [\fIoptions\fR]
826 +.SH "DESCRIPTION"
827 +.PP
828 +
829 +\fBlastlog\fR
830 +formats and prints the contents of the last login log
831 +\fI/var/log/lastlog\fR
832 +file. The
833 +\fIlogin\-name\fR,
834 +\fIport\fR, and
835 +\fIlast login time\fR
836 +will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
837 +\fI/etc/passwd\fR.
838 +.SH "OPTIONS"
839 +.PP
840 +The options which apply to the
841 +\fBlastlog\fR
842 +command are:
843 +.TP 3n
844 +\fB\-b\fR, \fB\-\-before\fR \fIDAYS\fR
845 +Print only lastlog records older than
846 +\fIDAYS\fR.
847 +.TP 3n
848 +\fB\-h\fR, \fB\-\-help\fR
849 +Display help message and exit.
850 +.TP 3n
851 +\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR
852 +Print the lastlog records more recent than
853 +\fIDAYS\fR.
854 +.TP 3n
855 +\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR
856 +Print the lastlog record for user with specified
857 +\fILOGIN\fR
858 +only.
859 +.TP 3n
860 +The \fB\-t\fR flag overrides the use of \fB\-u\fR.
861 +.PP
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.
865 +.SH "NOTE"
866 +.PP
867 +The
868 +\fIlastlog\fR
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
870 +\fIpasswd\fR
871 +users with a high UID). You can display its real size with "\fBls \-s\fR".
872 +.SH "FILES"
873 +.TP 3n
874 +\fI/var/log/lastlog\fR
875 +Database times of previous user logins.
876 +.SH "CAVEATS"
877 +.PP
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).
This page took 0.145749 seconds and 3 git commands to generate.