Submitting Scripts to the Security Administration Utility (secadm)

Use this procedure to create and submit a script containing multiple secadm commands. An example of a secadm script is the %LAENVDIR%\install\secadm_script.txt file used during the installation process. This file contains commands that were built by the installation program and then submitted to secadm to create an initial security configuration.

To use a script with secadm

  1. Using a text editor, create a file containing the list of commands you want to submit to secadm. Build the commands using the full syntax for the options you want to specify, but without the leading secadm command at the front of each.

    For example, to manually create a Security Administrator role, you would type the following lines at a Landmark command prompt:

    secadm role add SecurityAdministrator
    secadm security classes assign AllGenAccess SecurityAdministrator gen
    secadm security classes assign ProductLineAccess SecurityAdministrator gen

    To create the same role from a script submitted to secadm, enter the following text into the script file:

    role add SecurityAdministrator
    security classes assign AllGenAccess SecurityAdministrator gen
    security classes assign ProductLineAccess SecurityAdministrator gen

    Save and close the file. Be sure to note the full path and file name.

  2. From the command prompt, type

    secadm -f scriptname

    where scriptname is the full path and file name of the script that you created in step 1.