Command and Tool Reference

beq Search Tool

pw_dir............

(/home/iuser1)

pw_shell..........

(/usr/bin/sh)

pw_audid..........

(0)

pw_audflg.........

(0)

2.An example beq command using user name adm as the search key, pwd (password) as the service, and files as the library is shown below:

./beq -k n -s pwd -l /usr/lib/libnss_files.1 adm

nss_status

.............. NSS_SUCCESS

pw_name...........

(adm)

pw_passwd.........

(*)

pw_uid............

(4)

pw_gid............

(4)

pw_age............

()

pw_comment........

()

pw_gecos..........

()

pw_dir............

(/var/adm)

pw_shell..........

(sbin/sh)

pw_audid..........

(0)

pw_audflg.........

(0)

3.An example beq command using uid number 102 as the search key, pwd (password) as the service and ldap as the library is shown below:

./beq -k d -s pwd -l /usr/lib/libnss_ldap.1 102

nss_status

.............. NSS_SUCCESS

pw_name...........

(user2)

pw_passwd.........

(*)

pw_uid............

(102)

pw_gid............

(21)

pw_age............

()

pw_comment........

()

pw_gecos..........

(gecos data in files)

pw_dir............

(/home/iuser2)

pw_shell..........

(/usr/bin/sh)

pw_audid..........

(0)

pw_audflg.........

(0)

4.An example beq command using group name grp1 as the search key, grp (group) as the service, and ldap as the library is shown below:

./beq -k n -s grp -l /usr/lib/libnss_ldap.1 igrp1

152

Chapter 5