xref: /freebsd/usr.bin/logins/logins.1 (revision e738085b94631f90e21a49852538ac95974baf44)
10a5f38d4SDag-Erling Smørgrav.\"-
2*e738085bSDag-Erling Smørgrav.\" Copyright (c) 2004 Dag-Erling 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.Dd March 6, 2004
290a5f38d4SDag-Erling Smørgrav.Dt LOGINS 1
300a5f38d4SDag-Erling Smørgrav.Os
310a5f38d4SDag-Erling Smørgrav.Sh NAME
320a5f38d4SDag-Erling Smørgrav.Nm logins
330a5f38d4SDag-Erling Smørgrav.Nd display account information
340a5f38d4SDag-Erling Smørgrav.Sh SYNOPSIS
350a5f38d4SDag-Erling Smørgrav.Nm
360a5f38d4SDag-Erling Smørgrav.Op Fl admopstux
370a5f38d4SDag-Erling Smørgrav.Op Fl g Ar groups
380a5f38d4SDag-Erling Smørgrav.Op Fl l Ar logins
390a5f38d4SDag-Erling Smørgrav.Sh DESCRIPTION
400a5f38d4SDag-Erling SmørgravThe
410a5f38d4SDag-Erling Smørgrav.Nm
420a5f38d4SDag-Erling Smørgravutility displays information about user and system accounts.
430a5f38d4SDag-Erling Smørgrav.Pp
440a5f38d4SDag-Erling SmørgravThe following options are available:
457b8fd8e3SDag-Erling Smørgrav.Bl -tag -width ".Fl g Ar groups"
460a5f38d4SDag-Erling Smørgrav.It Fl a
470a5f38d4SDag-Erling SmørgravDisplay information about the password change and account expiration
480a5f38d4SDag-Erling Smørgravtimes for each account.
490a5f38d4SDag-Erling Smørgrav.It Fl d
500a5f38d4SDag-Erling SmørgravSelect accounts with duplicate UIDs.
510a5f38d4SDag-Erling Smørgrav.It Fl g Ar groups
520a5f38d4SDag-Erling SmørgravSelect accounts that are members of the specified groups.
530a5f38d4SDag-Erling SmørgravIf multiple group names are specified, they must be separated with
540a5f38d4SDag-Erling Smørgravcommas.
550a5f38d4SDag-Erling Smørgrav.It Fl l Ar logins
560a5f38d4SDag-Erling SmørgravSelect accounts matching the specified login names.
570a5f38d4SDag-Erling SmørgravIf multiple names are specified, they must be separated with commas.
580a5f38d4SDag-Erling Smørgrav.It Fl m
590a5f38d4SDag-Erling SmørgravShow information about secondary groups.
600a5f38d4SDag-Erling Smørgrav.It Fl o
610a5f38d4SDag-Erling SmørgravDisplay the information for each account on a single line of
620a5f38d4SDag-Erling Smørgravcolon-separated fields.
630a5f38d4SDag-Erling Smørgrav.It Fl p
640a5f38d4SDag-Erling SmørgravSelect accounts with no password.
650a5f38d4SDag-Erling Smørgrav.It Fl s
660a5f38d4SDag-Erling SmørgravSelect system accounts.
677b8fd8e3SDag-Erling SmørgravThese are currently defined as accounts with UIDs below 1000, plus the
687b8fd8e3SDag-Erling Smørgrav.Dq Li nobody
690a5f38d4SDag-Erling Smørgravaccount (UID 65534).
700a5f38d4SDag-Erling Smørgrav.It Fl t
710a5f38d4SDag-Erling SmørgravSort selected accounts by name rather than by UID.
720a5f38d4SDag-Erling Smørgrav.It Fl u
730a5f38d4SDag-Erling SmørgravSelect user accounts.
740a5f38d4SDag-Erling SmørgravThese are currently defined as accounts with UIDs above 1000, except
750a5f38d4SDag-Erling Smørgravthe
767b8fd8e3SDag-Erling Smørgrav.Dq Li nobody
770a5f38d4SDag-Erling Smørgravaccount (UID 65534).
780a5f38d4SDag-Erling Smørgrav.It Fl x
790a5f38d4SDag-Erling SmørgravDisplay information about each account's home directory and shell.
800a5f38d4SDag-Erling Smørgrav.El
810a5f38d4SDag-Erling Smørgrav.Pp
820a5f38d4SDag-Erling SmørgravIf multiple selection options are specified, all accounts matching any
830a5f38d4SDag-Erling Smørgravof the selection criteria will be displayed.
840a5f38d4SDag-Erling Smørgrav.Pp
857b8fd8e3SDag-Erling SmørgravIf no selection options are specified, all accounts will be displayed.
860a5f38d4SDag-Erling Smørgrav.Sh SEE ALSO
870a5f38d4SDag-Erling Smørgrav.Xr getgrent 3 ,
880a5f38d4SDag-Erling Smørgrav.Xr getpwent 3 ,
890a5f38d4SDag-Erling Smørgrav.Xr group 5 ,
900a5f38d4SDag-Erling Smørgrav.Xr passwd 5 ,
910a5f38d4SDag-Erling Smørgrav.Xr pw 8
920a5f38d4SDag-Erling Smørgrav.Sh HISTORY
930a5f38d4SDag-Erling SmørgravThe
940a5f38d4SDag-Erling Smørgrav.Nm
957b8fd8e3SDag-Erling Smørgravutility appeared in
960a5f38d4SDag-Erling Smørgrav.Fx 4.10 .
970a5f38d4SDag-Erling Smørgrav.Sh AUTHORS
980a5f38d4SDag-Erling SmørgravThe
990a5f38d4SDag-Erling Smørgrav.Nm
1000a5f38d4SDag-Erling Smørgravutility was written by
1012b7af31cSBaptiste Daroussin.An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org
1020a5f38d4SDag-Erling Smørgravbased on similar utilities in other operating systems.
103