acua forEach {-p n} {-r n} [-u] <command>
acua forEach allows you to execute a command for each user. If {} is found in the command, the user's login name will be substituted. In acua.config, you may exclude specific users with the ForEachExclude directive.
-p n - PROHIBIT flag - if the user has an ACUA record, they will be excluded if they do have user-defined flag n set.
-r n - REQUIRE flag - if the user has an ACUA record, they will be excluded if they do not have user-defined flag n set.
-u - only execute the command for users who have an ACUA record.
For example, to initialize your ACUA user file based on your passwd file, you might do:
NOTE: The { and } are quoted in order to prevent the shell from interpreting them specially.
NOTE: User-defined flags are in the range [0,15]. See acua modRec for information on how to modify these flags.
Robert Davidson