Open System Services Management and Operations Guide (G06.29+, H06.07+)

Managing Security
Open System Services Management and Operations Guide527191-005
8-19
Assigning an Initial Program
Assigning an Initial Program Using Safeguard
You can assign an initial program to an existing user definition by using the SAFECOM
ALTER USER command to change the value of the INITIAL-PROGRAM attribute. You
use a SAFECOM command such as the following:
ALTER USER group-number,member-number,
INITIAL-PROGRAM /code-dir/program
or
ALTER USER group-name.member-name,
INITIAL-PROGRAM /code-dir/program
group-number,member-number
is the structured view of the user ID of an existing user definition.
group-name.member-name
is the user name of an existing user definition.
/code-dir/program
is the initial program, expressed as an OSS pathname.
For example, the following SAFECOM command assigns the initial program /bin/sh
to the user definition with the user name SCRIBES.HENRYSP:
ALTER USER scribes.henrysp, INITIAL-PROGRAM /bin/sh
You can assign an initial program to an alias instead of to the user definition itself by
using the SAFECOM ALTER ALIAS command. You use a SAFECOM command such
as the following:
ALTER ALIAS alias-name, INITIAL-PROGRAM /code-dir/program
alias-name
is an existing alias for an existing user definition.
/code-dir/program
is the initial program, expressed as an OSS pathname.
For example, the following SAFECOM command assigns the initial program
/user/deml.o to the alias donl of the user definition with the user name
SCRIBES.DONALD:
ALTER ALIAS donl, INITIAL-PROGRAM /user/deml.o
The assignment process can be partially automated by creating a TACL macro file and
then editing that file appropriately for each new user. Figure 8-2 on page 8-17 contains
a Guardian TACL macro that adds a user and an alias for the user with an OSS initial
program.