xref: /freebsd/usr.bin/logins/logins.1 (revision 7b8fd8e3132e4765cebbcbb8cee5c33fa5684fb4)
10a5f38d4SDag-Erling Smørgrav.\"-
20a5f38d4SDag-Erling Smørgrav.\" Copyright (c) 2004 Dag-Erling Co�dan Sm�rgrav
30a5f38d4SDag-Erling Smørgrav.\" All rights reserved.
40a5f38d4SDag-Erling Smørgrav.\"
50a5f38d4SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
60a5f38d4SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
70a5f38d4SDag-Erling Smørgrav.\" are met:
80a5f38d4SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
90a5f38d4SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
100a5f38d4SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
110a5f38d4SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
120a5f38d4SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
130a5f38d4SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote products
140a5f38d4SDag-Erling Smørgrav.\"    derived from this software without specific prior written permission.
150a5f38d4SDag-Erling Smørgrav.\"
160a5f38d4SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
170a5f38d4SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
180a5f38d4SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
190a5f38d4SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
200a5f38d4SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
210a5f38d4SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
220a5f38d4SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
230a5f38d4SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
240a5f38d4SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
250a5f38d4SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
260a5f38d4SDag-Erling Smørgrav.\" SUCH DAMAGE.
270a5f38d4SDag-Erling Smørgrav.\"
280a5f38d4SDag-Erling Smørgrav.\" $FreeBSD$
290a5f38d4SDag-Erling Smørgrav.\"
300a5f38d4SDag-Erling Smørgrav.Dd March 6, 2004
310a5f38d4SDag-Erling Smørgrav.Dt LOGINS 1
320a5f38d4SDag-Erling Smørgrav.Os
330a5f38d4SDag-Erling Smørgrav.Sh NAME
340a5f38d4SDag-Erling Smørgrav.Nm logins
350a5f38d4SDag-Erling Smørgrav.Nd display account information
360a5f38d4SDag-Erling Smørgrav.Sh SYNOPSIS
370a5f38d4SDag-Erling Smørgrav.Nm
380a5f38d4SDag-Erling Smørgrav.Op Fl admopstux
390a5f38d4SDag-Erling Smørgrav.Op Fl g Ar groups
400a5f38d4SDag-Erling Smørgrav.Op Fl l Ar logins
410a5f38d4SDag-Erling Smørgrav.Sh DESCRIPTION
420a5f38d4SDag-Erling SmørgravThe
430a5f38d4SDag-Erling Smørgrav.Nm
440a5f38d4SDag-Erling Smørgravutility displays information about user and system accounts.
450a5f38d4SDag-Erling Smørgrav.Pp
460a5f38d4SDag-Erling SmørgravThe following options are available:
477b8fd8e3SDag-Erling Smørgrav.Bl -tag -width ".Fl g Ar groups"
480a5f38d4SDag-Erling Smørgrav.It Fl a
490a5f38d4SDag-Erling SmørgravDisplay information about the password change and account expiration
500a5f38d4SDag-Erling Smørgravtimes for each account.
510a5f38d4SDag-Erling Smørgrav.It Fl d
520a5f38d4SDag-Erling SmørgravSelect accounts with duplicate UIDs.
530a5f38d4SDag-Erling Smørgrav.It Fl g Ar groups
540a5f38d4SDag-Erling SmørgravSelect accounts that are members of the specified groups.
550a5f38d4SDag-Erling SmørgravIf multiple group names are specified, they must be separated with
560a5f38d4SDag-Erling Smørgravcommas.
570a5f38d4SDag-Erling Smørgrav.It Fl l Ar logins
580a5f38d4SDag-Erling SmørgravSelect accounts matching the specified login names.
590a5f38d4SDag-Erling SmørgravIf multiple names are specified, they must be separated with commas.
600a5f38d4SDag-Erling Smørgrav.It Fl m
610a5f38d4SDag-Erling SmørgravShow information about secondary groups.
620a5f38d4SDag-Erling Smørgrav.It Fl o
630a5f38d4SDag-Erling SmørgravDisplay the information for each account on a single line of
640a5f38d4SDag-Erling Smørgravcolon-separated fields.
650a5f38d4SDag-Erling Smørgrav.It Fl p
660a5f38d4SDag-Erling SmørgravSelect accounts with no password.
670a5f38d4SDag-Erling Smørgrav.It Fl s
680a5f38d4SDag-Erling SmørgravSelect system accounts.
697b8fd8e3SDag-Erling SmørgravThese are currently defined as accounts with UIDs below 1000, plus the
707b8fd8e3SDag-Erling Smørgrav.Dq Li nobody
710a5f38d4SDag-Erling Smørgravaccount (UID 65534).
720a5f38d4SDag-Erling Smørgrav.It Fl t
730a5f38d4SDag-Erling SmørgravSort selected accounts by name rather than by UID.
740a5f38d4SDag-Erling Smørgrav.It Fl u
750a5f38d4SDag-Erling SmørgravSelect user accounts.
760a5f38d4SDag-Erling SmørgravThese are currently defined as accounts with UIDs above 1000, except
770a5f38d4SDag-Erling Smørgravthe
787b8fd8e3SDag-Erling Smørgrav.Dq Li nobody
790a5f38d4SDag-Erling Smørgravaccount (UID 65534).
800a5f38d4SDag-Erling Smørgrav.It Fl x
810a5f38d4SDag-Erling SmørgravDisplay information about each account's home directory and shell.
820a5f38d4SDag-Erling Smørgrav.El
830a5f38d4SDag-Erling Smørgrav.Pp
840a5f38d4SDag-Erling SmørgravIf multiple selection options are specified, all accounts matching any
850a5f38d4SDag-Erling Smørgravof the selection criteria will be displayed.
860a5f38d4SDag-Erling Smørgrav.Pp
877b8fd8e3SDag-Erling SmørgravIf no selection options are specified, all accounts will be displayed.
880a5f38d4SDag-Erling Smørgrav.Sh SEE ALSO
890a5f38d4SDag-Erling Smørgrav.Xr getgrent 3 ,
900a5f38d4SDag-Erling Smørgrav.Xr getpwent 3 ,
910a5f38d4SDag-Erling Smørgrav.Xr group 5 ,
920a5f38d4SDag-Erling Smørgrav.Xr passwd 5 ,
930a5f38d4SDag-Erling Smørgrav.Xr pw 8
940a5f38d4SDag-Erling Smørgrav.Sh HISTORY
950a5f38d4SDag-Erling SmørgravThe
960a5f38d4SDag-Erling Smørgrav.Nm
977b8fd8e3SDag-Erling Smørgravutility appeared in
980a5f38d4SDag-Erling Smørgrav.Fx 4.10 .
990a5f38d4SDag-Erling Smørgrav.Sh AUTHORS
1000a5f38d4SDag-Erling SmørgravThe
1010a5f38d4SDag-Erling Smørgrav.Nm
1020a5f38d4SDag-Erling Smørgravutility was written by
1030a5f38d4SDag-Erling Smørgrav.An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org
1040a5f38d4SDag-Erling Smørgravbased on similar utilities in other operating systems.
105