Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man4 / sulog.4
blob0ccd671c7ac04cd2ac8216767630b8459ab35304
1 '\" te
2 .\" Copyright (c) 1994, Sun Microsystems, Inc. All Rights Reserved.
3 .\"  Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH SULOG 4 "Jun 6, 1994"
8 .SH NAME
9 sulog \- su command log file
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fB/var/log/sulog\fR
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 The  \fBsulog\fR file is a record of all attempts by users on the system  to
20 execute the \fBsu\fR(8) command.  Each time  \fBsu\fR(8) is executed, an
21 entry is added to the \fBsulog\fR file.
22 .sp
23 .LP
24 Each entry in the \fBsulog\fR file is a single line of the form:
25 .sp
26 .in +2
27 .nf
28 \fBSU\fR \fBdate\fR \fBtime\fR
29 \fIresult port user\fR\fB-\fR\fInewuser\fR
30 .fi
31 .in -2
32 .sp
34 .sp
35 .LP
36 where
37 .sp
38 .ne 2
39 .na
40 \fB\fBdate\fR\fR
41 .ad
42 .RS 11n
43 The month and date \fBsu\fR(8) was executed.  \fBdate\fR is displayed in the
44 form \fImm\fR\fB/\fR\fBdd\fR where  \fImm\fR is the month number and \fBdd\fR
45 is the day number in the month.
46 .RE
48 .sp
49 .ne 2
50 .na
51 \fB\fBtime\fR\fR
52 .ad
53 .RS 11n
54 The time  \fBsu\fR(8) was executed. \fBtime\fR is displayed in the form
55 \fIHH\fR\fB/\fR\fIMM\fR where  \fIHH\fR is the hour number (24 hour system) and
56 \fIMM\fR is the minute number.
57 .RE
59 .sp
60 .ne 2
61 .na
62 \fB\fIresult\fR\fR
63 .ad
64 .RS 11n
65 The result of the  \fBsu\fR(8) command.  A ` + ' sign is displayed in this
66 field if the su attempt was successful; otherwise  a ` - ' sign is displayed.
67 .RE
69 .sp
70 .ne 2
71 .na
72 \fB\fIport\fR\fR
73 .ad
74 .RS 11n
75 The name of the terminal device from which  \fBsu\fR(8) was executed.
76 .RE
78 .sp
79 .ne 2
80 .na
81 \fB\fIuser\fR\fR
82 .ad
83 .RS 11n
84 The user id of the user executing the  \fBsu\fR(8) command.
85 .RE
87 .sp
88 .ne 2
89 .na
90 \fB\fInewuser\fR\fR
91 .ad
92 .RS 11n
93 The user id being switched to with  \fBsu\fR(8).
94 .RE
96 .SH EXAMPLES
97 .LP
98 \fBExample 1 \fRA sample \fBsulog\fR file.
99 .sp
101 Here is a sample \fBsulog\fR file:
104 .in +2
106 SU 02/25 09:29 + console root-sys
107 SU 02/25 09:32 + pts/3 user1-root
108 SU 03/02 08:03 + pts/5 user1-root
109 SU 03/03 08:19 + pts/5 user1-root
110 SU 03/09 14:24 - pts/5 guest3-root
111 SU 03/09 14:24 - pts/5 guest3-root
112 SU 03/14 08:31 + pts/4 user1-root
114 .in -2
117 .SH FILES
119 .ne 2
121 \fB\fB/var/log/sulog\fR\fR
123 .RS 19n
124 su log file
128 .ne 2
130 \fB\fB/etc/default/su\fR\fR
132 .RS 19n
133 contains the default location of  \fBsulog\fR
136 .SH SEE ALSO
139 \fBsu\fR(8)