printpw(8) — Maintenance
OSF
NAME
printpw − Outputs the contents of the password database
SYNOPSIS
printpw [-acdgsu]
FLAGS
-aOutputs all information. Use of this flag is the same as specifying all flags with -cdgsu.
-cOutputs username and the comment string.
-dOutput username and the login directory.
-gOutputs username and the group ID numerical value.
-sOutput username and the login shell.
-uOutput username and the UID numerical value.
DESCRIPTION
The printpw command outputs the contents of the /etc/password database file in ASCII format to the standard output. When printpw is called with no option, all usernames in the database are output.
The /etc/password database file is accessed through the standard library function getpwent. On secure systems or on systems with an installed Yellow Pages service that have changed this library function, printpw produces the same information.
When printpw is called in combination with any flag, one or more additional columns separated with : (colon) is output.
EXAMPLES
To output the username, UID, and login directory of all users in the password database file, enter:
/usr/sbin/acct/printpw -ud
FILES
/usr/sbin/acct/printpw
Specifies the command path
/etc/passwd
The password database file.
RELATED INFORMATION
Commands: acct(8)