1logins(1M)              System Administration Commands              logins(1M)
2
3
4

NAME

6       logins - list user and system login information
7

SYNOPSIS

9       /usr/bin/logins [-admopstux] [-g group...]
10            [-l login_name...]
11
12

DESCRIPTION

14       This  command  displays  information on user and system logins known to
15       the system. Contents of the output is controlled by the command options
16       and  can  include  the following: user or system login, user id number,
17       passwd account field value (user name or  other  information),  primary
18       group name, primary group id, multiple group names, multiple group ids,
19       home directory, login shell, and four password  aging  parameters.  The
20       default  information is the following: login id, user id, primary group
21       name, primary group id and the account field value. Output is sorted by
22       user id, system logins, followed by user logins.
23

OPTIONS

25       Options  may be used together. If so, any login that matches any crite‐
26       ria are displayed.
27
28
29       The following options are supported:
30
31       -a                  Add two password expiration fields to the  display.
32                           The fields show how many days a password can remain
33                           unused before it  automatically  becomes  inactive,
34                           and the date that the password expires.
35
36
37       -d                  Selects logins with duplicate uids.
38
39
40       -g group            Selects  all  users  belonging  to group, sorted by
41                           login. Multiple groups can be specified as a comma-
42                           separated list. When the -l and -g options are com‐
43                           bined, a user is only listed once, even if the user
44                           belongs to more than one of the selected groups.
45
46
47       -l login_name...    Selects the requested login. Multiple logins can be
48                           specified as a comma-separated list.  Depending  on
49                           the  nameservice  lookup  types  set  in  /etc/nss‐
50                           witch.conf,  the  information  can  come  from  the
51                           /etc/passwd  and  /etc/shadow files and other name‐
52                           services. When the -l and -g options are  combined,
53                           a  user  is  only  listed  once,  even  if the user
54                           belongs to more than one of the selected groups.
55
56
57       -m                  Displays multiple group membership information.
58
59
60       -o                  Formats output into  one  line  of  colon-separated
61                           fields.
62
63
64       -p                  Selects logins with no passwords.
65
66
67       -s                  Selects all system logins.
68
69
70       -t                  Sorts output by login instead of by uid.
71
72
73       -u                  Selects all user logins.
74
75
76       -x                  Prints  an  extended  set of information about each
77                           selected user. The  extended  information  includes
78                           home  directory,  login  shell  and  password aging
79                           information, each displayed on a separate line. The
80                           password information currently consists of password
81                           status:
82
83                           NP    Account has no password
84
85
86                           LK    Account is locked for UNIX authentication
87
88
89                           NL    Account is a no login account
90
91
92                           PS    Account probably has a valid password
93
94
95                           UN    Account password status is unknown. That  is,
96                                 it  is  not a recognizable hashed password or
97                                 any of the above entries. See  crypt(3C)  for
98                                 valid password hashes.
99
100                           If  the  login is passworded, status is followed by
101                           the date the password was last changed, the  number
102                           of days required between changes, and the number of
103                           days allowed before a change is required. The pass‐
104                           word aging information shows the time interval that
105                           the user receives  a  password  expiration  warning
106                           message  (when  logging  on)  before  the  password
107                           expires.
108
109

ATTRIBUTES

111       See attributes(5) for descriptions of the following attributes:
112
113
114
115
116       ┌─────────────────────────────┬─────────────────────────────┐
117       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
118       ├─────────────────────────────┼─────────────────────────────┤
119       │Availability                 │SUNWcsu                      │
120       └─────────────────────────────┴─────────────────────────────┘
121

SEE ALSO

123       passwd(1), crypt(3C), attributes(5)
124
125
126
127SunOS 5.11                        6 Sep 2005                        logins(1M)
Impressum