xref: /freebsd/usr.bin/logins/logins.1 (revision e0c4386e)
1.\"-
2.\" Copyright (c) 2004 Dag-Erling Smørgrav
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\" 3. The name of the author may not be used to endorse or promote products
14.\"    derived from this software without specific prior written permission.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd March 6, 2004
29.Dt LOGINS 1
30.Os
31.Sh NAME
32.Nm logins
33.Nd display account information
34.Sh SYNOPSIS
35.Nm
36.Op Fl admopstux
37.Op Fl g Ar groups
38.Op Fl l Ar logins
39.Sh DESCRIPTION
40The
41.Nm
42utility displays information about user and system accounts.
43.Pp
44The following options are available:
45.Bl -tag -width ".Fl g Ar groups"
46.It Fl a
47Display information about the password change and account expiration
48times for each account.
49.It Fl d
50Select accounts with duplicate UIDs.
51.It Fl g Ar groups
52Select accounts that are members of the specified groups.
53If multiple group names are specified, they must be separated with
54commas.
55.It Fl l Ar logins
56Select accounts matching the specified login names.
57If multiple names are specified, they must be separated with commas.
58.It Fl m
59Show information about secondary groups.
60.It Fl o
61Display the information for each account on a single line of
62colon-separated fields.
63.It Fl p
64Select accounts with no password.
65.It Fl s
66Select system accounts.
67These are currently defined as accounts with UIDs below 1000, plus the
68.Dq Li nobody
69account (UID 65534).
70.It Fl t
71Sort selected accounts by name rather than by UID.
72.It Fl u
73Select user accounts.
74These are currently defined as accounts with UIDs above 1000, except
75the
76.Dq Li nobody
77account (UID 65534).
78.It Fl x
79Display information about each account's home directory and shell.
80.El
81.Pp
82If multiple selection options are specified, all accounts matching any
83of the selection criteria will be displayed.
84.Pp
85If no selection options are specified, all accounts will be displayed.
86.Sh SEE ALSO
87.Xr getgrent 3 ,
88.Xr getpwent 3 ,
89.Xr group 5 ,
90.Xr passwd 5 ,
91.Xr pw 8
92.Sh HISTORY
93The
94.Nm
95utility appeared in
96.Fx 4.10 .
97.Sh AUTHORS
98The
99.Nm
100utility was written by
101.An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org
102based on similar utilities in other operating systems.
103