unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



printpw(8)							   printpw(8)



NAME

  printpw - Outputs the	contents of the	password database

SYNOPSIS

  printpw [-acdgsu]

OPTIONS

  -a  Outputs all information. Use of this option is the same as specifying
      all options with -cdgsu.

  -c  Outputs username and the comment string.

  -d  Output username and the login directory.

  -g  Outputs username and the group ID	numerical value.

  -s  Output username and the login shell.

  -u  Output username and the UID numerical value.

DESCRIPTION

  The printpw command outputs the contents of the /etc/passwd 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/passwd database file	is accessed through the	standard library
  function getpwent. On	secure systems that have changed this library func-
  tion or on systems with Network Information Service (NIS) service
  installed, printpw produces the same information.

  When printpw is called in combination	with any option, one or	more addi-
  tional columns separated with	: (colon) is output.

EXAMPLES

  To output the	username, UID, and login directory of all users	in the pass-
  word database	file, enter:

       /usr/sbin/acct/printpw -ud

FILES

  /usr/sbin/acct/printpw
      Specifies	the command path

  /etc/passwd
      The password database file



SEE ALSO

  Commands: acct(8)