HP B2355-92068 Administration Manual page 506

System administration commands
Table of Contents

Advertisement

logins(1M)
NAME
logins - display system and user login data
SYNOPSIS
logins
[
-admopstux
DESCRIPTION
displays data concerning system and user logins. The format and content of the output is con-
logins
trolled by command options and may include: system or user login, user ID number,
ment field value (e.g., user name, etc...), primary group name, primary group ID, supplementary group
names, supplementary group IDs, home directory, login shell, user security level, user audit events, and
password aging parameters. The default data is: login, user ID, primary group name, primary group ID,
and
/etc/passwd
logins. The default output consists of login, user ID, primary group, primary group ID and comment field
formatted into columns.
The following options are available to this command:
Displays two account expiration fields. The fields show how long the account can be unused (in days)
-a
before it becomes inactive and the date the account will expire.
-d
Display logins with duplicate UIDs.
Show multiple group membership data.
-m
Display with alternate format of one line of colon separated fields.
-o
-p
Display logins with no passwords
-s
Display all system logins
Sort output by login rather than UID.
l
-t
Display all user logins.
-u
Display extended information about selected users. This extended information includes home direc-
-x
tory, login shell and password aging data, each on its own line. Password information consists of pass-
word status (PS for valid password, LK for locked and NP for no password) and, if a password is
present, date of last change, required number of days between changes, and number of days allowed
between changes. In the case of non-trusted systems, the date of last change will be the latest Thurs-
day since the change.
-g
groups
Display all users belonging to groups, sorted by login. A comma separated list specifies multiple
groups.
logins
-l
Display the requested logins. A comma separated list specifies multiple logins.
Multiple options may be used. Any login matching any of the criteria will be displayed. A login will be
displayed only once, even if it meets multiple criteria.
EXAMPLES
logins
logins -p -d
logins -s -o
FILES
/etc/passwd
/etc/group
SEE ALSO
listusers(1), passwd(1), group(4), passwd(4), prpwd(4), shadow(4).
STANDARDS CONFORMANCE
: SVID3
logins
506
Hewlett-Packard Company
] [
-g
groups] [
-l
logins]
comment field value. Output is sort by user ID, with user logins following system
List all logins in default format.
List all logins that have no password or have a duplicate UID in default format.
List all system logins in the alternate format.
HP-UX password file.
HP-UX group file.
− 1 −
HP-UX 11i Version 2: December 2007 Update
logins(1M)
/etc/passwd
com-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-ux 11i

Table of Contents