logins.1 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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
  40. The
  41. .Nm
  42. utility displays information about user and system accounts.
  43. .Pp
  44. The following options are available:
  45. .Bl -tag -width ".Fl g Ar groups"
  46. .It Fl a
  47. Display information about the password change and account expiration
  48. times for each account.
  49. .It Fl d
  50. Select accounts with duplicate UIDs.
  51. .It Fl g Ar groups
  52. Select accounts that are members of the specified groups.
  53. If multiple group names are specified, they must be separated with
  54. commas.
  55. .It Fl l Ar logins
  56. Select accounts matching the specified login names.
  57. If multiple names are specified, they must be separated with commas.
  58. .It Fl m
  59. Show information about secondary groups.
  60. .It Fl o
  61. Display the information for each account on a single line of
  62. colon-separated fields.
  63. .It Fl p
  64. Select accounts with no password.
  65. .It Fl s
  66. Select system accounts.
  67. These are currently defined as accounts with UIDs below 1000, plus the
  68. .Dq Li nobody
  69. account (UID 65534).
  70. .It Fl t
  71. Sort selected accounts by name rather than by UID.
  72. .It Fl u
  73. Select user accounts.
  74. These are currently defined as accounts with UIDs above 1000, except
  75. the
  76. .Dq Li nobody
  77. account (UID 65534).
  78. .It Fl x
  79. Display information about each account's home directory and shell.
  80. .El
  81. .Pp
  82. If multiple selection options are specified, all accounts matching any
  83. of the selection criteria will be displayed.
  84. .Pp
  85. If 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
  93. The
  94. .Nm
  95. utility appeared in
  96. .Fx 4.10 .
  97. .Sh AUTHORS
  98. The
  99. .Nm
  100. utility was written by
  101. .An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org
  102. based on similar utilities in other operating systems.