Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / sv / lastlog.8
1 '\" t
2 .\"     Title: lastlog
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 16-02-2011
6 .\"    Manual: Systemhanteringskommandon
7 .\"    Source: Systemhanteringskommandon
8 .\"  Language: Swedish
9 .\"
10 .TH "LASTLOG" "8" "16-02-2011" "Systemhanteringskommandon" "Systemhanteringskommandon"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAMN"
31 lastlog \- reports the most recent login of all users or of a given user
32 .SH "SYNOPSIS"
33 .HP \w'\fBlastlog\fR\ 'u
34 \fBlastlog\fR [\fIflaggor\fR]
35 .SH "BESKRIVNING"
36 .PP
37
38 \fBlastlog\fR
39 formats and prints the contents of the last login log
40 /var/log/lastlog
41 file\&. The
42 \fIlogin\-name\fR,
43 \fIport\fR, and
44 \fIlast login time\fR
45 will be printed\&. The default (no flags) causes lastlog entries to be printed, sorted by their order in
46 /etc/passwd\&.
47 .SH "FLAGGOR"
48 .PP
49 Flaggorna som g\(:aller f\(:or kommandot
50 \fBlastlog\fR
51 \(:ar:
52 .PP
53 \fB\-b\fR, \fB\-\-before\fR\fIDAGAR\fR
54 .RS 4
55 Print only lastlog records older than
56 \fIDAYS\fR\&.
57 .RE
58 .PP
59 \fB\-h\fR, \fB\-\-help\fR
60 .RS 4
61 Visa hj\(:alpmeddelande och avsluta\&.
62 .RE
63 .PP
64 \fB\-t\fR, \fB\-\-time\fR\fIDAGAR\fR
65 .RS 4
66 Print the lastlog records more recent than
67 \fIDAYS\fR\&.
68 .RE
69 .PP
70 \fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR|\fIRANGE\fR
71 .RS 4
72 Print the lastlog record of the specified user(s)\&.
73 .sp
74 The users can be specified by a login name, a numerical user ID, or a
75 \fIRANGE\fR
76 of users\&. This
77 \fIRANGE\fR
78 of users can be specified with a min and max values (\fIUID_MIN\-UID_MAX\fR), a max value (\fI\-UID_MAX\fR), or a min value (\fIUID_MIN\-\fR)\&.
79 .RE
80 .PP
81 If the user has never logged in the message
82 \fI** Never logged in**\fR
83 will be displayed instead of the port and time\&.
84 .PP
85 Only the entries for the current users of the system will be displayed\&. Other entries may exist for users that were deleted previously\&.
86 .SH "NOTERA"
87 .PP
88 The
89 lastlog
90 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
91 passwd
92 users with a high UID)\&. You can display its real size with "\fBls \-s\fR"\&.
93 .SH "FILER"
94 .PP
95 /var/log/lastlog
96 .RS 4
97 Databastider f\(:or tidigare anv\(:andarinloggningar\&.
98 .RE
99 .SH "T\(:ANK P\(oA"
100 .PP
101 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)\&.