]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.bin/logins/logins.1
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.bin / logins / logins.1
1 .\"-
2 .\" Copyright (c) 2004 Dag-Erling Coïdan 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 .\" $FreeBSD$
29 .\"
30 .Dd March 6, 2004
31 .Dt LOGINS 1
32 .Os
33 .Sh NAME
34 .Nm logins
35 .Nd display account information
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl admopstux
39 .Op Fl g Ar groups
40 .Op Fl l Ar logins
41 .Sh DESCRIPTION
42 The
43 .Nm
44 utility displays information about user and system accounts.
45 .Pp
46 The following options are available:
47 .Bl -tag -width ".Fl g Ar groups"
48 .It Fl a
49 Display information about the password change and account expiration
50 times for each account.
51 .It Fl d
52 Select accounts with duplicate UIDs.
53 .It Fl g Ar groups
54 Select accounts that are members of the specified groups.
55 If multiple group names are specified, they must be separated with
56 commas.
57 .It Fl l Ar logins
58 Select accounts matching the specified login names.
59 If multiple names are specified, they must be separated with commas.
60 .It Fl m
61 Show information about secondary groups.
62 .It Fl o
63 Display the information for each account on a single line of
64 colon-separated fields.
65 .It Fl p
66 Select accounts with no password.
67 .It Fl s
68 Select system accounts.
69 These are currently defined as accounts with UIDs below 1000, plus the
70 .Dq Li nobody
71 account (UID 65534).
72 .It Fl t
73 Sort selected accounts by name rather than by UID.
74 .It Fl u
75 Select user accounts.
76 These are currently defined as accounts with UIDs above 1000, except
77 the
78 .Dq Li nobody
79 account (UID 65534).
80 .It Fl x
81 Display information about each account's home directory and shell.
82 .El
83 .Pp
84 If multiple selection options are specified, all accounts matching any
85 of the selection criteria will be displayed.
86 .Pp
87 If no selection options are specified, all accounts will be displayed.
88 .Sh SEE ALSO
89 .Xr getgrent 3 ,
90 .Xr getpwent 3 ,
91 .Xr group 5 ,
92 .Xr passwd 5 ,
93 .Xr pw 8
94 .Sh HISTORY
95 The
96 .Nm
97 utility appeared in
98 .Fx 4.10 .
99 .Sh AUTHORS
100 The
101 .Nm
102 utility was written by
103 .An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org
104 based on similar utilities in other operating systems.