Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
Creating an Initial Working Directory in the OSS Environment
NOTE: HP strongly recommends that you create a separate fileset for initial working directories.
To create an initial working directory in the OSS environment, use either the mkdir command
from within the OSS environment or the OSH command from within the Guardian environment.
The following OSS shell command creates the OSS file-system directory /home/henrysp from
within the OSS environment:
mkdir /home/henrysp
The following TACL command creates the OSS file-system directory /home/henrysp from within
the Guardian environment:
OSH -p mkdir /home/henrysp
Assigning an Initial Working Directory Using Safeguard
You can assign an initial working directory to an existing user definition by using the SAFECOM
ALTER USER command to change the value of the INITIAL-DIRECTORY attribute. You use a SAFECOM
command such as:
ALTER USER group-number,member-number,
INITIAL-DIRECTORY /home/dir
or
ALTER USER group-name.member-name,
INITIAL-DIRECTORY /home/dir
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.
/home/dir
is the initial working directory, expressed as an OSS pathname.
For example, the following SAFECOM command assigns the initial working directory
/home/henrysp to the user definition with the user name scribes.henrysp:
ALTER USER scribes.henrysp, INITIAL-DIRECTORY /home/henrysp
You can assign an initial working directory 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-DIRECTORY /home/dir
alias-name
is an existing alias for an existing user definition.
/home/dir
is the initial working directory, expressed as an OSS pathname.
For example, the following SAFECOM command assigns the initial working directory /user/donl
to the alias donl of the user definition with the user name scribes.DONALD:
ALTER ALIAS donl, INITIAL-DIRECTORY /user/donl
The assignment process can be partially automated by creating a TACL macro file and then editing
that file appropriately for each new user. Example 18 (page 208) contains a Guardian TACL macro
that adds a user and an alias for the user with an OSS initial working directory.
Assigning an Initial Working Directory 207