xref: /illumos-gate/usr/src/man/man5/sulog.5 (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
te
Copyright (c) 1994, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
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.
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.
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]
SULOG 5 "Jun 6, 1994"
NAME
sulog - su command log file
SYNOPSIS

/var/adm/sulog
DESCRIPTION

The sulog file is a record of all attempts by users on the system to execute the su(8) command. Each time su(8) is executed, an entry is added to the sulog file.

Each entry in the sulog file is a single line of the form:

SU date time
result port user-newuser

where date

The month and date su(8) was executed. date is displayed in the form mm/dd where mm is the month number and dd is the day number in the month.

time

The time su(8) was executed. time is displayed in the form HH/MM where HH is the hour number (24 hour system) and MM is the minute number.

result

The result of the su(8) command. A ` + ' sign is displayed in this field if the su attempt was successful; otherwise a ` - ' sign is displayed.

port

The name of the terminal device from which su(8) was executed.

user

The user id of the user executing the su(8) command.

newuser

The user id being switched to with su(8).

EXAMPLES

Example 1 A sample sulog file.

Here is a sample sulog file:

SU 02/25 09:29 + console root-sys
SU 02/25 09:32 + pts/3 user1-root
SU 03/02 08:03 + pts/5 user1-root
SU 03/03 08:19 + pts/5 user1-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/14 08:31 + pts/4 user1-root
FILES
/var/adm/sulog

su log file

/etc/default/su

contains the default location of sulog

SEE ALSO

su (8)