]> git.pld-linux.org Git - packages/SysVinit.git/blame - sysvinit-lastlog.patch
- updated to 3.04
[packages/SysVinit.git] / sysvinit-lastlog.patch
CommitLineData
94cdd863
AM
1diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/cs/man8/lastlog.8 sysvinit-2.99/man/intl/cs/man8/lastlog.8
2--- sysvinit-2.99.org/man/intl/cs/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
3+++ sysvinit-2.99/man/intl/cs/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
4@@ -0,0 +1,40 @@
ad9a85e2 5+.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
94cdd863
AM
6+.\" $Id$
7+.\"
8+.TH LASTLOG 8
9+.SH JMÉNO
10+lastlog \- prozkoumá soubor lastlog
11+.SH SYNTAXE
12+.B lastlog
13+.RB [ \-u
14+.IR přihlašovací\-jméno ]
15+.RB [ \-t
16+.IR dny ]
17+.SH POPIS
18+\fBlastlog\fR setřídí a zobrazí obsah souboru
19+\fI/var/log/lastlog\fR,
20+který obsahuje záznamy o přihlašování a odhlašování uživatelů v systému.
21+Zobrazí se \fBpřihlašovací jméno\fR, \fBjméno terminálu\fR a \fBčas posledního
22+přihlašení\fR.
23+Standardně (tj. bez dalších voleb) lastlog zobrazí záznamy setříděné
24+podle čísla UID.
25+Použití přepínače \fB\-u \fIpřihlašovací\-jméno\fR
26+způsobí, že bude vytištěn pouze poslední záznam o přihlášení příslušného uživatele.
27+Zadáním \fB\-t \fIdny\fR se zobrazí pouze
28+ta přihlášení, které jsou dřívější než zadané \fIdny\fR.
29+Parametr \fB\-t\fR překryje případný parametr \fB\-u\fR.
ad9a85e2 30+.PP
94cdd863
AM
31+Pokud se uživatel ještě nikdy nepřihlásil, zobrazí se zpráva \fB"**Never logged in**"\fR (Nikdy nepřihlášen)
32+místo jména terminálu a času.
33+.SH SOUBORY
34+/var/log/lastlog \- soubor se záznamy o přihlášení a odhlášení
35+.SH NÁMITKY
36+Velké rozdíly v UID číslech jsou způsobeny tím, že lastlog program běžel dlouho bez
37+výstupu na obrazovku (např. mmdf=800 a poslední uid=170, program se bude
38+jevit jako s uid 171\-799).
39+.SH AUTOŘI
40+Julianne Frances Haugh (jfh@austin.ibm.com)
ad9a85e2
JR
41+.br
42+Phillip Street
94cdd863
AM
43+.SH PŘELOŽIL
44+Ondřej Pavlíček (mox@post.cz).
45diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/fr/man8/lastlog.8 sysvinit-2.99/man/intl/fr/man8/lastlog.8
46--- sysvinit-2.99.org/man/intl/fr/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
47+++ sysvinit-2.99/man/intl/fr/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
8c5b2406 48@@ -0,0 +1,66 @@
ad9a85e2
JR
49+.\" Title: lastlog
50+.\" Author:
51+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
8c5b2406
AF
52+.\" Date: 30/07/2006
53+.\" Manual: Commandes de gestion du système
54+.\" Source: Commandes de gestion du système
ad9a85e2 55+.\"
8c5b2406 56+.TH "LASTLOG" "8" "30/07/2006" "Commandes de gestion du systèm" "Commandes de gestion du systèm"
ad9a85e2
JR
57+.\" disable hyphenation
58+.nh
59+.\" disable justification (adjust text to left margin only)
60+.ad l
8c5b2406
AF
61+.SH "NOM"
62+lastlog \- signaler les connexions les plus récentes de tous les utilisateurs ou d'un utilisateur donné
63+.SH "SYNOPSIS"
ad9a85e2 64+.HP 8
8c5b2406
AF
65+\fBlastlog\fR [\fIoptions\fR]
66+.SH "DESCRIPTION"
ad9a85e2 67+.PP
8c5b2406
AF
68+\fBLastlog\fR
69+affiche le contenu du journal des dernières connexions (\fI/var/log/lastlog\fR). Les champs
70+\fIUtilisateur\fR,
71+\fIPort\fR, date de
72+\fIDernière\fR
73+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
ad9a85e2 74+\fI/etc/passwd\fR.
8c5b2406 75+.SH "OPTIONS"
ad9a85e2 76+.PP
8c5b2406 77+Les options disponibles pour la commande
ad9a85e2 78+\fBlastlog\fR
8c5b2406 79+sont\ :
ad9a85e2 80+.TP 3n
8c5b2406
AF
81+\fB\-b\fR, \fB\-\-before\fR \fIJOURS\fR
82+N'affiche que les entrées du fichier lastlog plus anciennes que
83+\fIJOURS\fR.
ad9a85e2
JR
84+.TP 3n
85+\fB\-h\fR, \fB\-\-help\fR
8c5b2406 86+Afficher un message d'aide et quitter.
ad9a85e2 87+.TP 3n
8c5b2406
AF
88+\fB\-t\fR, \fB\-\-time\fR \fIJOURS\fR
89+Affiche les entrées du fichier lastlog plus récentes que
90+\fIJOURS\fR.
ad9a85e2 91+.TP 3n
8c5b2406
AF
92+\fB\-u\fR, \fB\-\-user\fR \fIIDENTIFIANT\fR
93+N'affiche que les entrées correspondant à l'utilisateur
94+\fIIDENTIFIANT\fR.
ad9a85e2 95+.TP 3n
8c5b2406 96+L'utilisation de l'option \fB\-t\fR supplante l'option \fB\-u\fR.
ad9a85e2 97+.PP
8c5b2406
AF
98+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
99+\fIPort\fR
100+et date de
101+\fIDernière\fR
102+connexion.
103+.SH "NOTE"
ad9a85e2 104+.PP
8c5b2406 105+Le fichier
ad9a85e2 106+\fIlastlog\fR
8c5b2406
AF
107+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.
108+.SH "FICHIERS"
ad9a85e2
JR
109+.TP 3n
110+\fI/var/log/lastlog\fR
8c5b2406
AF
111+Base de données de l'heure des connexions précédentes des utilisateurs.
112+.SH "AVERTISSEMENTS"
ad9a85e2 113+.PP
8c5b2406 114+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).
94cdd863
AM
115diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/hu/man8/lastlog.8 sysvinit-2.99/man/intl/hu/man8/lastlog.8
116--- sysvinit-2.99.org/man/intl/hu/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
117+++ sysvinit-2.99/man/intl/hu/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
118@@ -0,0 +1,68 @@
119+.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
120+.\" All rights reserved.
121+.\"
122+.\" Redistribution and use in source and binary forms, with or without
123+.\" modification, are permitted provided that the following conditions
124+.\" are met:
125+.\" 1. Redistributions of source code must retain the above copyright
126+.\" notice, this list of conditions and the following disclaimer.
127+.\" 2. Redistributions in binary form must reproduce the above copyright
128+.\" notice, this list of conditions and the following disclaimer in the
129+.\" documentation and/or other materials provided with the distribution.
130+.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
131+.\" may be used to endorse or promote products derived from this software
132+.\" without specific prior written permission.
133+.\"
134+.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
135+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
136+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
137+.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
138+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
139+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
140+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
141+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
142+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
143+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
144+.\" SUCH DAMAGE.
145+.\"
8c5b2406
AF
146+.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
147+.\" $Id$
ad9a85e2 148+.\"
8c5b2406 149+.TH LASTLOG 8
94cdd863
AM
150+.SH NÉV
151+lastlog \- a lastlog fájl vizsgálata
152+.SH ÁTTEKINTÉS
8c5b2406 153+.B lastlog
94cdd863
AM
154+.RB [ -u
155+.IR uid ]
156+.RB [ -t
157+.IR napok száma ]
158+.SH LEÍRÁS
159+
160+A \fBlastlog\fR formázza és olvashatóan megjeleníti a
161+\fB/var/log/lastlog\fR tartalmát. A listában szerepel a \fBlogin-név\fR, a
162+\fBterminál (port) azonosítója\fR és a felhasználó \fBlegutolsó
163+belépésének ideje\fR. Paraméterek nélkül meghívva a
164+felhasználó-azonosítók (UID) alapján sorbarendezve jelennek meg az
165+értékek. A \fB-u \fIlogin-név\fR opció megadása esetén csak a megadott
166+felhasználó utolsó belépésének ideje jelenik meg. A \fB-t \fInapok
167+száma\fR opció megadásával csak a megadott számú napon belüli belépési
168+idők jelennek meg. A \fB-r\fR opció felülírja a \fB-u\fR opciót.
ad9a85e2 169+.PP
94cdd863
AM
170+Ha a felhasználó még soha nem lépett be, akkor a terminál és az idő
171+helyett a \fB**Never logged in**\fR felirat jelenik meg.
172+.SH FÁJLOK
173+/var/log/lastlog \- a felhasználók legutóbbi belépéseit tartalmazza
174+.SH MEGJEGYZÉS
175+Ha a felhasználói azonosító számok (UID-k) között nagyobb üres tartományok
176+vannak, akkor a lastlog futásakor megtörténhet, hogy hosszabb ideig
177+nem jelenik meg semmi a képernyőn (pl ha a 170-es és a 800-as azonosítójú
178+felhasználók között nincs több azonosító, akkor a 171 és 799 közötti
179+számok kiértékelése alatt a képernyőn nem változik semmi).
180+.SH SZERZŐK
181+Julianne Frances Haugh (jfh@tab.com)
8c5b2406
AF
182+.br
183+Phillip Street
94cdd863
AM
184+.SH MAGYAR FORDÍTÁS
185+Hermann Benedek (bence@intercom.hu)
ad9a85e2 186+
94cdd863
AM
187diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/it/man8/lastlog.8 sysvinit-2.99/man/intl/it/man8/lastlog.8
188--- sysvinit-2.99.org/man/intl/it/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
189+++ sysvinit-2.99/man/intl/it/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
190@@ -0,0 +1,76 @@
191+.\" This file was generated with po4a. Translate the source file.
192+.\"
193+.\"$Id$
194+.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
195+.\" All rights reserved.
196+.\"
197+.\" Redistribution and use in source and binary forms, with or without
198+.\" modification, are permitted provided that the following conditions
199+.\" are met:
200+.\" 1. Redistributions of source code must retain the above copyright
201+.\" notice, this list of conditions and the following disclaimer.
202+.\" 2. Redistributions in binary form must reproduce the above copyright
203+.\" notice, this list of conditions and the following disclaimer in the
204+.\" documentation and/or other materials provided with the distribution.
205+.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
206+.\" may be used to endorse or promote products derived from this software
207+.\" without specific prior written permission.
208+.\"
209+.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
210+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
212+.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
213+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
214+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
215+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
216+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
217+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
218+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
219+.\" SUCH DAMAGE.
220+.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
221+.TH LASTLOG 8
222+.SH NOME
223+lastlog \- esamina il file degli ultimi accessi
224+.SH SINTASSI
225+.TP 8
226+\fBlastlog\fP [\fBopzioni\fP]
227+.SH DESCRIZIONE
ad9a85e2 228+.PP
94cdd863
AM
229+\fBlastlog\fP mostra il log degli ultimi accessi, contenuto nel file
230+\fI/var/log/lastlog\fP. Le informazioni mostrate sono il \fBnome utente\fP, la
231+\fBporta\fP, e la \fBdata dell'ultimo accesso\fP. Il comportamento predefinito
232+(nessuna opzione specificata) è di mostrare i record di ultimo accesso per
233+tutti gli utenti, nell'ordine in cui compaiono in \fB/etc/passwd\fP.
234+.SH OPZIONI
235+.TP
236+Il comando \fBlastlog\fP accetta le seguenti opzioni:
237+.IP "\fB\-h\fP, \fB\-\-help\fP"
238+Mostra un messaggio di aiuto ed esce.
239+.IP "\fB\-t\fP, \fB\-\-time\fP \fIGIORNI\fP"
240+Mostra solo i record di ultimo accesso più recenti di un numero di
241+\fIGIORNI\fP.
242+.IP "\fB\-u\fP, \fB\-\-user\fP \fILOGIN\fP"
243+Mostra il record di ultimo accesso per l'utente specificato da \fILOGIN\fP.
244+.TP
245+L'opzione \fB\-t\fP ha la precedenza sull'uso di \fB\-u\fP.
ad9a85e2 246+.PP
94cdd863
AM
247+Se l'utente non ha mai effettuato accessi al sistema viene mostrato, al
248+posto della porta e della data, il messaggio \fB"**Nessun accesso
249+effettuato**"\fP.
250+.SH FILE
251+\fI/var/log/lastlog\fP \- file di log degli ultimi accessi
252+.SH AVVISI/CAVEAT
253+Se ci sono dei grossi scarti tra i valori di UID, il programma lastlog può
254+restare in esecuzione per un tempo prolungato senza produrre output sullo
255+schermo (ad es. se mmdf=800 e l'ultimo UID vale 170, il programma sembrerà
256+bloccato come se esaminasse gli UID tra 171 e 799).
257+.SH AUTORI
258+Julianne Frances Haugh (jockgrrl@ix.netcom.com)
259+.br
260+Phillip Street
261+.SH TRADUZIONE
262+.nf
263+Isabella Ruocco <isacher@nettaxi.com>, 1999
264+Giuseppe Sacco <eppesuig@debian.org>, 2005
265+Danilo Piazzalunga <danilopiazza@libero.it>, 2005
266+.fi
267diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/ja/man8/lastlog.8 sysvinit-2.99/man/intl/ja/man8/lastlog.8
268--- sysvinit-2.99.org/man/intl/ja/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
269+++ sysvinit-2.99/man/intl/ja/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
8c5b2406
AF
270@@ -0,0 +1,80 @@
271+.\"$Id$
272+.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
273+.\" All rights reserved.
274+.\"
275+.\" Redistribution and use in source and binary forms, with or without
276+.\" modification, are permitted provided that the following conditions
277+.\" are met:
278+.\" 1. Redistributions of source code must retain the above copyright
279+.\" notice, this list of conditions and the following disclaimer.
280+.\" 2. Redistributions in binary form must reproduce the above copyright
281+.\" notice, this list of conditions and the following disclaimer in the
282+.\" documentation and/or other materials provided with the distribution.
283+.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
284+.\" may be used to endorse or promote products derived from this software
285+.\" without specific prior written permission.
286+.\"
287+.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
288+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
289+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
290+.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
291+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
292+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
293+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
294+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
295+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
296+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
297+.\" SUCH DAMAGE.
298+.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
299+.\"
300+.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
301+.\" all rights reserved.
302+.\" Translated Fri Feb 14 23:06:00 JST 1997
303+.\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
304+.\" Updated & Modified Thu Oct 14 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
305+.\" Updated Fri Jan 12 2001 by Kentaro Shirakata <argrath@ub32.org>
306+.\" Updated Mon Mar 4 2002 by kentaro Shirakata <argrath@ub32.org>
307+.\" Modified Sat 21 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
308+.\"
309+.TH LASTLOG 8
310+.SH 名前
311+lastlog \- lastlog ファイルを調べる
312+.SH 書式
313+.TP 8
314+\fBlastlog\fR [(\fB\-u\fR|\fB\-\-user\fR) \fIlogin\fR]
315+[(\fB\-t\fR|\fB\-\-time\fR) \fIdays\fR] [(\fB\-h\fR|\fB\-\-help\fR)]
316+.SH 説明
317+\fBlastlog\fR は最終ログインの記録ファイル
318+\fI/var/log/lastlog\fR の内容を整形して表示する。
319+\fBログイン名\fR・\fBポート\fR・\fB最終ログイン時刻\fR、が表示される。
320+オプションを指定しなかった場合、デフォルトでは
321+lastlog エントリを UID の数値でソートして表示する。
322+.TP
323+\fB\-u\fR, \fB\-\-user\fR \fIlogin\-name\fR
324+\fIlogin\-name\fR の記録だけを表示する。
325+.TP
326+\fB\-t\fR, \fB\-\-time\fR \fIdays\fR
327+最近 \fIdays\fR 日以内の最終ログインを表示する。
328+.TP
329+\fB\-h\fR, \fB\-\-help\fR
330+オンラインヘルプを表示して終了する。
331+.PP
332+\fB\-u\fR フラグを用いると \fB\-t\fR は無視される。
333+.\"nakano というのが実際の動作のように見えるのだが。
334+.PP
335+一度もログインしていないユーザに対しては、
336+ポートと時刻の代わりに
337+\fB"**Never logged in**"\fR
338+というメッセージが表示される。
339+.SH ファイル
340+\fI/var/log/lastlog\fR \- lastlog 記録ファイル
341+.SH 警告
342+UID 番号に大きな飛びがあると、
343+lastlog プログラムは長時間画面に何も出力しないまま
344+実行を続ける (例えば mmdf が 800 で最後の UID が 170 の場合、
345+UID が 171\-799 の間プログラムは何も出力しないので、
346+ハングしたように見える)。
347+.SH 著者
348+Julianne Frances Haugh (jockgrrl@ix.netcom.com)
349+.BR
350+Phillip Street
94cdd863
AM
351diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/pl/man8/lastlog.8 sysvinit-2.99/man/intl/pl/man8/lastlog.8
352--- sysvinit-2.99.org/man/intl/pl/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
353+++ sysvinit-2.99/man/intl/pl/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
354@@ -0,0 +1,69 @@
355+.\" Title: lastlog
356+.\" Author:
357+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
358+.\" Date: 19/06/2006
359+.\" Manual: Polecenia Zarządzania Systemem
360+.\" Source: Polecenia Zarządzania Systemem
361+.\"
362+.TH "LASTLOG" "8" "19/06/2006" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
363+.\" disable hyphenation
364+.nh
365+.\" disable justification (adjust text to left margin only)
366+.ad l
367+.SH "NAZWA"
368+lastlog \- wyświetla informacje o ostanim logowaniu dla wybranego lub wszystkich użytkowaników
369+.SH "SKŁADNIA"
370+.HP 8
371+\fBlastlog\fR [\fIopcje\fR]
372+.SH "OPIS"
373+.PP
374+Polecenie
375+\fBlastlog\fR
376+formatuje i wyświetla zawartość bazy ostatnich logowań zapisanych w pliku
377+\fI/var/log/lastlog\fR. Wyświetlone zostaną
378+\fInazwa użytkownika\fR,
379+\fIport\fR
380+i
381+\fIczas\fR
382+ostatniego logowania. Domyślnie (bez flag) pozycje wyświetlane są w kolejności w jakiej są w pliku
383+\fI/etc/passwd\fR.
384+.SH "OPCJE"
385+.PP
386+Polecenie
387+\fBlastlog\fR
388+posiada następujące opcje:
389+.TP 3n
390+\fB\-b\fR, \fB\-\-before\fR\fIDNI\fR
391+Wyświetlenie rekordów lastlog starszych niż zadana
392+\fIDNI\fR.
393+.TP 3n
394+\fB\-h\fR, \fB\-\-help\fR
395+Wyświetlenie komunikatu pomocy i zakończenie działania.
396+.TP 3n
397+\fB\-t\fR, \fB\-\-time\fR\fIDNI\fR
398+Wyświetlenie rekordów lastlog nie starszych niż zadana ilość
399+\fIDNI\fR.
400+.TP 3n
401+\fB\-u\fR, \fB\-\-user\fR\fILOGIN\fR
402+Wyświetlenie informacji o ostanim logowaniu dla użytkownika
403+\fILOGIN\fR.
404+.TP 3n
405+Opcja \fB\-t\fR przesłania użycie opcji \fB\-u\fR.
406+.PP
407+Jeżeli użytkownik nigdy się nie logował to zamiast portu i czasu logowania wyświetlany jest komunikat
408+\fI**Nigdy nie zalogowany**\fR
409+(użytkownik nigdy się nie logował).
410+.SH "UWAGI"
411+.PP
412+Baza danych
413+\fIlastlog\fR
414+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
415+\fIpasswd\fR
416+użytkowaników z wysokimi wartościami UID). Mozesz wyświetlić rzeczywisty rozmiar tego pliku używając polecenia "\fBls \-s\fR".
417+.SH "PLIKI"
418+.TP 3n
419+\fI/var/log/lastlog\fR
420+Baza danych ostatnich logowań użytkowników.
421+.SH "OSTRZEŻENIA"
422+.PP
423+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).
424diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/ru/man8/lastlog.8 sysvinit-2.99/man/intl/ru/man8/lastlog.8
425--- sysvinit-2.99.org/man/intl/ru/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
426+++ sysvinit-2.99/man/intl/ru/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
427@@ -0,0 +1,64 @@
428+.\" Title: lastlog
429+.\" Author:
430+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
431+.\" Date: 06/24/2006
432+.\" Manual: Команды управления системой
433+.\" Source: Команды управления системой
434+.\"
435+.TH "lastlog" "8" "06/24/2006" "Команды управления системой" "Команды управления системой"
436+.\" disable hyphenation
437+.nh
438+.\" disable justification (adjust text to left margin only)
439+.ad l
440+.SH "НАЗВАНИЕ"
441+lastlog \- выводит отчёт о последней регистрации в системе всех или указанного пользователя
442+.SH "СИНТАКСИС"
443+.HP 8
444+\fBlastlog\fR [\fIпараметры\fR]
445+.SH "ОПИСАНИЕ"
446+.PP
447+Программа
448+\fBlastlog\fR
449+упорядочивает и выводит содержимое файла
450+\fI/var/log/lastlog\fR, который содержит даты последнего входа пользователей систему. Выводятся
451+\fIимя пользователя\fR,
452+\fIпорт\fR
453
454+\fIдата последнего входа в систему\fR. По умолчанию (вызов без параметров) показываются записи файла lastlog, отсортированные согласно расположению пользователей в файле
455+\fI/etc/passwd\fR.
456+.SH "ПАРАМЕТРЫ"
457+.PP
458+Параметры команды
459+\fBlastlog\fR:
460+.TP 3n
461+\fB\-b\fR, \fB\-\-before\fR\fIДНЕЙ\fR
462+Показать записи lastlog за последние
463+\fIДНЕЙ\fR.
464+.TP 3n
465+\fB\-h\fR, \fB\-\-help\fR
466+Показать краткую справку и закончить работу.
467+.TP 3n
468+\fB\-t\fR, \fB\-\-time\fR\fIДНЕЙ\fR
469+Показать записи lastlog новее чем
470+\fIДНЕЙ\fR.
471+.TP 3n
472+\fB\-u\fR, \fB\-\-user\fR\fIИМЯ\fR
473+Показать запись lastlog только для указанного пользователя с emphasis remap="I">ИМЕНЕМ
474+.TP 3n
475+Параметр \fB\-t\fR отменяет действие параметра \fB\-u\fR.
476+.PP
477+Если пользователь никогда не регистрировался в системе, то будет показано сообщение
478+\fI** Никогда не входил в систему**\fR
479+вместо названия порта и даты.
480+.SH "ЗАМЕЧАНИЕ"
481+.PP
482+Файл
483+\fIlastlog\fR
484+содержит информацию о последней регистрации в системе каждого пользователя. Вы не должны применять к нему ротацию журнальных файлов. Этот файл является разреженным, поэтому его размер на диске гораздо меньше, чем показывает команда "\fBls \-l\fR" (которая может показывать, что это очень большой файл, если значения идентификаторов пользователей в системе достигают больших значений). Чтобы увидеть реальный размер введите "\fBls \-s\fR".
485+.SH "ФАЙЛЫ"
486+.TP 3n
487+\fI/var/log/lastlog\fR
488+содержит список завершённых сеансов работы с системой
489+.SH "ПРЕДОСТЕРЕЖЕНИЯ"
490+.PP
491+Большие промежутки в значениях идентификаторов пользователей приводят к тому, что программа некоторое время ничего не выводит на экран (то есть, если в базе данных lastlog нет пользователей с идентификаторами с 170 по 800, то во время обработки UID с 171 по 799 программа кажется повисшей).
492diff -urNp -x '*.orig' sysvinit-2.99.org/man/intl/sv/man8/lastlog.8 sysvinit-2.99/man/intl/sv/man8/lastlog.8
493--- sysvinit-2.99.org/man/intl/sv/man8/lastlog.8 1970-01-01 01:00:00.000000000 +0100
494+++ sysvinit-2.99/man/intl/sv/man8/lastlog.8 2021-02-25 08:11:23.560410930 +0100
495@@ -0,0 +1,70 @@
496+.\" Title: lastlog
497+.\" Author:
498+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
499+.\" Date: 20.07.2006
500+.\" Manual: Systemhanteringskommandon
501+.\" Source: Systemhanteringskommandon
502+.\"
503+.TH "LASTLOG" "8" "20\-07\-2006" "Systemhanteringskommandon" "Systemhanteringskommandon"
504+.\" disable hyphenation
505+.nh
506+.\" disable justification (adjust text to left margin only)
507+.ad l
508+.SH "NAMN"
509+lastlog \- reports the most recent login of all users or of a given user
510+.SH "SYNOPSIS"
511+.HP 8
512+\fBlastlog\fR [\fIflaggor\fR]
513+.SH "BESKRIVNING"
514+.PP
515+
516+\fBlastlog\fR
517+formats and prints the contents of the last login log
518+\fI/var/log/lastlog\fR
519+file. The
520+\fIlogin\-name\fR,
521+\fIport\fR, and
522+\fIlast login time\fR
523+will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
524+\fI/etc/passwd\fR.
525+.SH "FLAGGOR"
526+.PP
527+Flaggorna som gäller för kommandot
528+\fBlastlog\fR
529+är:
530+.TP 3n
531+\fB\-b\fR, \fB\-\-before\fR\fIDAGAR\fR
532+Print only lastlog records older than
533+\fIDAYS\fR.
534+.TP 3n
535+\fB\-h\fR, \fB\-\-help\fR
536+Visa hjälpmeddelande och avsluta.
537+.TP 3n
538+\fB\-t\fR, \fB\-\-time\fR\fIDAGAR\fR
539+Print the lastlog records more recent than
540+\fIDAYS\fR.
541+.TP 3n
542+\fB\-u\fR, \fB\-\-user\fR\fIINLOGGNINGSNAMN\fR
543+Print the lastlog record for user with specified
544+\fILOGIN\fR
545+only.
546+.TP 3n
547+Flaggan \fB\-t\fR åsidosätter användningen av \fB\-u\fR.
548+.PP
549+If the user has never logged in the message
550+\fI** Never logged in**\fR
551+will be displayed instead of the port and time.
552+.SH "NOTERA"
553+.PP
554+The
555+\fIlastlog\fR
556+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
557+\fIpasswd\fR
558+users with a high UID). You can display its real size with "\fBls \-s\fR".
559+.SH "FILER"
560+.TP 3n
561+\fI/var/log/lastlog\fR
562+Databastider för tidigare användarinloggningar.
563+.SH "TÄNK PÅ"
564+.PP
565+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).
566diff -urNp -x '*.orig' sysvinit-2.99.org/man/lastlog.8 sysvinit-2.99/man/lastlog.8
567--- sysvinit-2.99.org/man/lastlog.8 1970-01-01 01:00:00.000000000 +0100
568+++ sysvinit-2.99/man/lastlog.8 2021-02-25 08:11:23.560410930 +0100
ad9a85e2
JR
569@@ -0,0 +1,70 @@
570+.\" Title: lastlog
571+.\" Author:
572+.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
573+.\" Date: 07/30/2006
574+.\" Manual: System Management Commands
575+.\" Source: System Management Commands
576+.\"
577+.TH "LASTLOG" "8" "07/30/2006" "System Management Commands" "System Management Commands"
578+.\" disable hyphenation
579+.nh
580+.\" disable justification (adjust text to left margin only)
581+.ad l
582+.SH "NAME"
583+lastlog \- reports the most recent login of all users or of a given user
584+.SH "SYNOPSIS"
585+.HP 8
586+\fBlastlog\fR [\fIoptions\fR]
587+.SH "DESCRIPTION"
588+.PP
589+
590+\fBlastlog\fR
591+formats and prints the contents of the last login log
592+\fI/var/log/lastlog\fR
593+file. The
594+\fIlogin\-name\fR,
595+\fIport\fR, and
596+\fIlast login time\fR
597+will be printed. The default (no flags) causes lastlog entries to be printed, sorted by their order in
598+\fI/etc/passwd\fR.
599+.SH "OPTIONS"
600+.PP
601+The options which apply to the
602+\fBlastlog\fR
603+command are:
604+.TP 3n
605+\fB\-b\fR, \fB\-\-before\fR \fIDAYS\fR
606+Print only lastlog records older than
607+\fIDAYS\fR.
608+.TP 3n
609+\fB\-h\fR, \fB\-\-help\fR
610+Display help message and exit.
611+.TP 3n
612+\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR
613+Print the lastlog records more recent than
614+\fIDAYS\fR.
615+.TP 3n
616+\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR
617+Print the lastlog record for user with specified
618+\fILOGIN\fR
619+only.
620+.TP 3n
621+The \fB\-t\fR flag overrides the use of \fB\-u\fR.
622+.PP
623+If the user has never logged in the message
624+\fI** Never logged in**\fR
625+will be displayed instead of the port and time.
626+.SH "NOTE"
627+.PP
628+The
629+\fIlastlog\fR
630+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
631+\fIpasswd\fR
632+users with a high UID). You can display its real size with "\fBls \-s\fR".
633+.SH "FILES"
634+.TP 3n
635+\fI/var/log/lastlog\fR
636+Database times of previous user logins.
637+.SH "CAVEATS"
638+.PP
639+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).
94cdd863
AM
640diff -urNp -x '*.orig' sysvinit-2.99.org/src/Makefile sysvinit-2.99/src/Makefile
641--- sysvinit-2.99.org/src/Makefile 2021-02-21 19:02:25.000000000 +0100
642+++ sysvinit-2.99/src/Makefile 2021-02-25 08:11:23.560410930 +0100
643@@ -23,13 +23,13 @@ MNTPOINT=
644
645 # For some known distributions we do not build all programs, otherwise we do.
646 BIN =
647-SBIN = init halt shutdown runlevel killall5 fstab-decode logsave
648+SBIN = init halt shutdown runlevel killall5 fstab-decode logsave lastlog
649 USRBIN = last mesg readbootlog
650
651 MAN1 = last.1 lastb.1 mesg.1 readbootlog.1
652 MAN5 = initscript.5 inittab.5 initctl.5
653 MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
654-MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.8
655+MAN8 += shutdown.8 telinit.8 fstab-decode.8 logsave.8 lastlog.8
656
657 ifeq ($(DISTRO),)
658 SBIN += sulogin bootlogd
659@@ -120,6 +120,9 @@ last: last.o
660 logsave: LDLIBS += $(STATIC)
661 logsave: logsave.o
662
663+lastlog: LDLIBS += $(STATIC)
664+lastlog: lastlog.o
665+
666 mesg: LDLIBS += $(STATIC)
667 mesg: mesg.o
668
669diff -urNp -x '*.orig' sysvinit-2.99.org/src/lastlog.c sysvinit-2.99/src/lastlog.c
670--- sysvinit-2.99.org/src/lastlog.c 1970-01-01 01:00:00.000000000 +0100
671+++ sysvinit-2.99/src/lastlog.c 2021-02-25 08:11:23.560410930 +0100
672@@ -0,0 +1,217 @@
673+/*
674+ * Copyright 1989 - 1994, Julianne Frances Haugh
675+ * All rights reserved.
676+ *
677+ * Redistribution and use in source and binary forms, with or without
678+ * modification, are permitted provided that the following conditions
679+ * are met:
680+ * 1. Redistributions of source code must retain the above copyright
681+ * notice, this list of conditions and the following disclaimer.
682+ * 2. Redistributions in binary form must reproduce the above copyright
683+ * notice, this list of conditions and the following disclaimer in the
684+ * documentation and/or other materials provided with the distribution.
685+ * 3. Neither the name of Julianne F. Haugh nor the names of its contributors
686+ * may be used to endorse or promote products derived from this software
687+ * without specific prior written permission.
688+ *
689+ * THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
690+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
691+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
692+ * ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
693+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
694+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
695+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
696+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
697+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
698+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
699+ * SUCH DAMAGE.
700+ */
701+
702+#ident "$Id$"
703+
704+#include <getopt.h>
705+#include <lastlog.h>
706+#include <pwd.h>
707+#include <stdio.h>
708+#include <sys/stat.h>
709+#include <sys/types.h>
710+#include <time.h>
711+#include <stdlib.h>
712+/*
713+ * Needed for MkLinux DR1/2/2.1 - J.
714+ */
715+#ifndef LASTLOG_FILE
716+#define LASTLOG_FILE "/var/log/lastlog"
717+#endif
718+/*
719+ * Global variables
720+ */
721+static FILE *lastlogfile; /* lastlog file stream */
722+static off_t user; /* one single user, specified on command line */
723+static int days; /* number of days to consider for print command */
724+static time_t seconds; /* that number of days in seconds */
725+static int inverse_days; /* number of days to consider for print command */
726+static time_t inverse_seconds; /* that number of days in seconds */
727+
728+
729+static int uflg = 0; /* set if user is a valid user id */
730+static int tflg = 0; /* print is restricted to most recent days */
731+static int bflg = 0; /* print excludes most recent days */
732+static struct lastlog lastlog; /* scratch structure to play with ... */
733+static struct stat statbuf; /* fstat buffer for file size */
734+static struct passwd *pwent;
735+
736+#define NOW (time ((time_t *) 0))
737+
738+static void usage (void)
739+{
740+ fprintf (stdout, "Usage: lastlog [options]\n"
741+ "\n"
742+ "Options:\n"
743+ " -b, --before DAYS print only lastlog records older than DAYS\n"
744+ " -h, --help display this help message and exit\n"
745+ " -t, --time DAYS print only lastlog records more recent than DAYS\n"
746+ " -u, --user LOGIN print lastlog record for user with specified LOGIN\n"
747+ "\n");
748+ exit(1);
749+}
750+
751+static void print_one (const struct passwd *pw)
752+{
753+ static int once;
754+ char *cp;
755+ struct tm *tm;
756+ time_t ll_time;
757+
758+#ifdef HAVE_STRFTIME
759+ char ptime[80];
760+#endif
761+
762+ if (!pw)
763+ return;
764+
765+ if (!once) {
766+#ifdef HAVE_LL_HOST
767+ printf ("Username Port From Latest\n");
768+#else
769+ printf ("Username Port Latest\n");
770+#endif
771+ once++;
772+ }
773+ ll_time = lastlog.ll_time;
774+ tm = localtime (&ll_time);
775+#ifdef HAVE_STRFTIME
776+ strftime (ptime, sizeof (ptime), "%a %b %e %H:%M:%S %z %Y", tm);
777+ cp = ptime;
778+#else
779+ cp = asctime (tm);
780+ cp[24] = '\0';
781+#endif
782+
783+ if (lastlog.ll_time == (time_t) 0)
784+ cp = "**Never logged in**\0";
785+
786+#ifdef HAVE_LL_HOST
787+ printf ("%-16s %-8.8s %-16.16s %s\n", pw->pw_name,
788+ lastlog.ll_line, lastlog.ll_host, cp);
789+#else
790+ printf ("%-16s\t%-8.8s %s\n", pw->pw_name, lastlog.ll_line, cp);
791+#endif
792+}
793+
794+static void print (void)
795+{
796+ off_t offset;
797+
798+ if (uflg) {
799+ offset = user * sizeof lastlog;
800+
801+ if (fstat (fileno (lastlogfile), &statbuf)) {
802+ perror (LASTLOG_FILE);
803+ return;
804+ }
805+ if (offset >= statbuf.st_size)
806+ return;
807+
808+ fseeko (lastlogfile, offset, SEEK_SET);
809+ if (fread ((char *) &lastlog, sizeof lastlog, 1,
810+ lastlogfile) == 1)
811+ print_one (pwent);
812+ else
813+ perror (LASTLOG_FILE);
814+ } else {
815+ setpwent ();
816+ while ((pwent = getpwent ())) {
817+ user = pwent->pw_uid;
818+ offset = user * sizeof lastlog;
819+
820+ fseeko (lastlogfile, offset, SEEK_SET);
821+ if (fread ((char *) &lastlog, sizeof lastlog, 1,
822+ lastlogfile) != 1)
823+ continue;
824+
825+ if (tflg && NOW - lastlog.ll_time > seconds)
826+ continue;
827+
828+ if (bflg && NOW - lastlog.ll_time < inverse_seconds)
829+ continue;
830+
831+ print_one (pwent);
832+ }
833+ }
834+}
835+
836+int main (int argc, char **argv)
837+{
838+ int c;
839+ static struct option const longopts[] = {
840+ {"help", no_argument, NULL, 'h'},
841+ {"time", required_argument, NULL, 't'},
842+ {"before", required_argument, NULL, 'b'},
843+ {"user", required_argument, NULL, 'u'},
844+ {NULL, 0, NULL, '\0'}
845+ };
846+
847+ while ((c = getopt_long (argc, argv, "ht:b:u:", longopts, NULL)) != -1) {
848+ switch (c) {
849+ case 'h':
850+ usage ();
851+ break;
852+ case 't':
853+ days = atoi (optarg);
854+ seconds = days * (24L*3600L);
855+ tflg++;
856+ break;
857+ case 'b':
858+ inverse_days = atoi (optarg);
859+ inverse_seconds = inverse_days * (24L*3600L);
860+ bflg++;
861+ break;
862+ case 'u':
863+ pwent = getpwnam (optarg);
864+ if (!pwent) {
865+ fprintf (stderr, "Unknown User: %s\n", optarg);
866+ exit (1);
867+ }
868+ uflg++;
869+ user = pwent->pw_uid;
870+ break;
871+ default:
872+ usage ();
873+ break;
874+ }
875+ }
876+ if (argc > optind) {
877+ fprintf (stderr, "lastlog: unexpected argument: %s\n", argv[optind]);
878+ usage();
879+ }
880+
881+ if ((lastlogfile = fopen (LASTLOG_FILE, "r")) == (FILE *) 0) {
882+ perror (LASTLOG_FILE);
883+ exit (1);
884+ }
885+
886+ print ();
887+ fclose (lastlogfile);
888+ exit (0);
889+}
This page took 0.251429 seconds and 4 git commands to generate.