xref: /titanic_44/usr/src/man/man1/listusers.1 (revision f05d7fc81533be643136e12ce92516d1d4292921)
te
Copyright (c) 1994, Sun Microsystems, Inc. All Rights Reserved
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]
LISTUSERS 1 "Mar 18, 1994"
NAME
listusers - list user login information
SYNOPSIS

listusers [-g groups] [-l logins]
DESCRIPTION

Executed without any options, this command lists all user logins sorted by login. The output shows the login ID and the account field value from the system's password database as specified by /etc/nsswitch.conf.

OPTIONS

The following options are supported: -g groups

Lists all user logins belonging to group, sorted by login. Multiple groups can be specified as a comma-separated list.

-l logins

Lists the user login or logins specified by logins, sorted by login. Multiple logins can be specified as a comma-separated list.

SEE ALSO

nsswitch.conf(4), attributes(5)

NOTES

A user login is one that has a UID of 100 or greater.

The -l and -g options can be combined. User logins will only be listed once, even if they belong to more than one of the selected groups.