The prmlist command with the
For example, consider a configuration that includes only one application record. This record, shown below, places all applications in /bin/ that begin with the letter “b” in a PRM group named Bapplications:
/bin/b*::::Bapplications
To get a listing of these applications, enter the command:
#prmlist -a
PRM ApplicationAssigned Group Alternate Name(s)
/bin/bfs | Bapplications |
/bin/bg | Bapplications |
/bin/basename | Bapplications |
/bin/bs | Bapplications |
/bin/bdiff | Bapplications |
/bin/bc | Bapplications |
/bin/banner | Bapplications |
/bin/batch | Bapplications |
/bin/bdf | Bapplications |
Displaying netgroup expansions
The combination of user records and multiple netgroup records can make determining a user’s initial and alternate PRM groups difficult.
The prmlist command displays exactly this information. Using the prmlist
For example, consider the following /etc/netgroup entries:
prime | two three five | # Define the first three |
even | zero two four | # netgroups in terms of the |
odd | one three five | # following netgroups |
zero | (, user0, ) |
|
one | (, user1, ) |
|
two | (, user2, ) |
|
three | (, user3, ) |
|
four | (, user4, ) |
|
five | (, user5, ) |
|
Notice in the entries above that user2, user3, and user5 appear in multiple netgroups. Now consider the following PRM configuration:
OTHERS:1:20::
even_PRM_group:2:25:: odd_PRM_group:3:25:: prime_PRM_group:4:25:: Five:5:5::
root::::PRM_SYS guest::::OTHERS user5::::Five +even::::even_PRM_group +odd::::odd_PRM_group +prime::::prime_PRM_group
The configuration places members of the even netgroup in the PRM group even_PRM_group. Similarly, members of the odd and prime netgroups are assigned to the PRM groups odd_PRM_group and prime_PRM_group, respectively. The explicit user record for user5 assigns that user to the PRM group Five.
Using the prmlist command, we get all the group and alternate group assignments (a portion of the output has been omitted for brevity):
#prmlist
90 Administering PRM