


PWGET(UTIL)                                           PWGET(UTIL)


NNAAMMEE
       pwget, grget - get password and group information

SSYYNNOOPPSSIISS
       ppwwggeett [ --nn name | --uu uid ]]

       ggrrggeett [ --nn name | --gg gid ]]

DDEESSCCRRIIPPTTIIOONN
       _P_w_g_e_t  and  _g_r_g_e_t are used to access the information found
       in //eettcc//ppaasssswwdd and //eettcc//ggrroouupp.  These routines  provide  a
       common access method whether using the Yellow Page network
       database or not.  The output of these routines is sent  to
       standard  output.  With no options, _p_w_g_e_t and _g_r_g_e_t output
       all of  the  data  found  using  _g_e_t_p_w_e_n_t_(LIBC_)  and  _g_e_t_-
       _g_r_e_n_t_(LIBC_)  respectively.   When  options are given, only
       specified entries are searched for.

       The options for _p_w_g_e_t are:

              --nn _n_a_m_e Output the first entry that  matches  using
                      ggeettppwwnnaamm((_n_a_m_e))..

              --uu _u_i_d  Output  the  first entry that matches using
                      ggeettppwwuuiidd((_u_i_d))..

       The options for _g_r_g_e_t are:

              --nn _n_a_m_e Output the first entry that  matches  using
                      ggeettggrrnnaamm((_n_a_m_e))..

              --gg _g_i_d  Output  the  first entry that matches using
                      ggeettggrrggiidd((_g_i_d))..

RREETTUURRNN VVAALLUUEE
       These routines return 0 upon success, 1  when  a  specific
       search fails and 2 upon error.

WWAARRNNIINNGGSS
       If  the  Yellow Page network database is in use and the YP
       client daemon, _y_p_b_i_n_d(ADMIN), is not  connected  to  a  YP
       server  daemon,  _y_p_s_e_r_v(ADMIN),  then these utilities will
       wait until such a connection is established.   These  rou-
       tines  can  be  terminated  in this condition by sending a
       SIGINT signal to the process (see _k_i_l_l(UTIL)).

AAUUTTHHOORR
       Pwget and grget were developed by Hewlett-Packard Company.

FFIILLEESS
       l     l.     /etc/group     Local    group    data    file
       /etc/passwd    Local password data file





                                                                1





PWGET(UTIL)                                           PWGET(UTIL)


SSEEEE AALLSSOO
       getgrent(LIBC), getpwent(LIBC), group(FILE), passwd(FILE).























































                                                                2


