Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
Example 17 Telserv Login Using a Site-Written Direct Login Service
Connecting...
Connected to node1.subdom1.corporate.net.
Escape character is '^]'.
WELCOME TO node1.subdom1.corporate.net [PORT $ZTCF0 #23
WINDOW $ZTNF0.#PTMNBVY]
TELSERV - T9553D40 - (29JUN2001) - (IPMADI)
Available Services:
OSH3 TACL EXIT
Enter Choice> OSH3
login: guest.any
Password:
Hello:
Considerations:
• Specify the SCF ADD SERVICE command with ACCESS set to SYSTEM. This access requires
users to be prompted for login authorization, as shown in Example 17 (page 202).
• The PARAM value specified in the ADD SERVICE command is passed to the program specified
by the PROGRAM option. Telserv uses the PARAM value instead of the INITIAL-PROGRAM
value from either a third-party product or Safeguard user definition, as described in “How
Users Gain Access to the OSS Environment” (page 204).
The default value used by the OSH program when the PARAM option does not appear places
the user in the OSS shell (/bin/sh). Therefore, you must explicitly define a value for the
PARAM option to start any program other than the OSS shell.
In the PARAM value definition, the -p flag indicates that a program file is to be executed; the
-p flag is followed by the full OSS pathname of the application. (The quotation marks around
the PARAM value are required.)
• The initial working directory of the user is set to that configured for the user name specified
by the OWNER option. The INITIAL-DIRECTORY value configured for the user through either
a third-party product or SAFECOM is not used.
In the SCF ADD SERVICE command example, the super ID is configured without an initial
working directory, so the user has the default subvolume for the super ID (/G/SYSTEM/SYSTEM)
as an initial working directory. This configuration is probably not ideal.
As an alternative, the following configuration could be used:
ADD SERVICE $ZTNT.OSH3, TYPE CONVERSATION, PRI 150, &
SWAP $DATA1, CPU 2, PROGRAM $SYSTEM.SYSTEM.OSH, &
PARAM "-p /bin/my_app", &
SUBTYPE DYNAMIC, OWNER "GUEST.USER0", ACCESS SYSTEM
where the user name GUEST.USER0 is assigned a more appropriate default volume and
subvolume for an OSS initial working directory.
• As shown in Example 17 (page 202), the service name OSH3 is displayed on the screen. You
can suppress this display by using the DISPLAY OFF option of the ADD SERVICE command.
Use this option if you do not want availability of the service known to all users.
• HP recommends that you do not configure resilient windows for direct program logins. The
default configuration for a service is to not have resilient windows, so simply omit the RESILIENT
option when defining the service.
202 Managing Terminal Access