2 .\" Copyright 1989 AT&T Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH LOGINS 8 "Sep 6, 2005"
8 logins \- list user and system login information
12 \fB/usr/bin/logins\fR [\fB-admopstux\fR] [\fB-g\fR \fIgroup...\fR]
13 [\fB-l\fR \fIlogin_name...\fR]
19 This command displays information on user and system logins known to the
20 system. Contents of the output is controlled by the command options and can
21 include the following: user or system login, user id number, \fBpasswd\fR
22 account field value (user name or other information), primary group name,
23 primary group id, multiple group names, multiple group ids, home directory,
24 login shell, and four password aging parameters. The default information is the
25 following: login id, user id, primary group name, primary group id and the
26 account field value. Output is sorted by user id, system logins, followed by
31 Options may be used together. If so, any login that matches any criteria are
35 The following options are supported:
42 Add two password expiration fields to the display. The fields show how many
43 days a password can remain unused before it automatically becomes inactive, and
44 the date that the password expires.
53 Selects logins with duplicate uids.
59 \fB\fB\fR\fB-g\fR \fIgroup\fR\fR
62 Selects all users belonging to \fBgroup\fR, sorted by login. Multiple groups
63 can be specified as a comma-separated list. When the \fB-l\fR and \fB-g\fR
64 options are combined, a user is only listed once, even if the user belongs to
65 more than one of the selected groups.
71 \fB\fB\fR\fB-l\fR \fIlogin_name...\fR\fR
74 Selects the requested login. Multiple logins can be specified as a
75 comma-separated list. Depending on the nameservice lookup types set in
76 \fB/etc/nsswitch.conf\fR, the information can come from the \fB/etc/passwd\fR
77 and \fB/etc/shadow\fR files and other nameservices. When the \fB-l\fR and
78 \fB-g\fR options are combined, a user is only listed once, even if the user
79 belongs to more than one of the selected groups.
88 Displays multiple group membership information.
97 Formats output into one line of colon-separated fields.
106 Selects logins with no passwords.
115 Selects all system logins.
124 Sorts output by login instead of by uid.
133 Selects all user logins.
142 Prints an extended set of information about each selected user. The extended
143 information includes home directory, login shell and password aging
144 information, each displayed on a separate line. The password information
145 currently consists of password status:
152 Account has no password
161 Account is locked for \fBUNIX\fR authentication
170 Account is a no login account
179 Account probably has a valid password
188 Account password status is unknown. That is, it is not a recognizable hashed
189 password or any of the above entries. See \fBcrypt\fR(3C) for valid password
193 If the login is passworded, status is followed by the date the password was
194 last changed, the number of days required between changes, and the number of
195 days allowed before a change is required. The password aging information shows
196 the time interval that the user receives a password expiration warning message
197 (when logging on) before the password expires.
203 \fBpasswd\fR(1), \fBcrypt\fR(3C), \fBattributes\fR(5)