Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

Miscellaneous Files and Commands ftpserver(7)
SHOWOPEN { ON | OFF }
When the Guardian le system is used, the SITE SHOWOPEN command
displays (ON) or does not display (OFF) an open ag (an O next to the lecode
eld) when the FTP clients DIR command is used and a listed le has at least
one current open.
If the SITE SHOWOPEN command is not used, no open ags are displayed.
Authenticating Users
The FTP server authenticates users according to the following rules:
Using the User_Authenticate call to validate a user. If an initial OSS directory is
congured, OSS is the default le system. Use the quote Guardian command to access
the Guardian le system. If an OSS directory is not congured, Guardian is the default
le system.
Using the User_Getinfo_ call to set up the initial directory of both the OSS and Guar-
dian le systems for the user.
Failure of either of the above results in the user not logging in. The FTP server supports
Safeguard security conguration.
The Guardian SAFECOM program used for setting-up FTP user IDs is described below.
Adding FTP user IDs to the System Using the Guardian SAFECOM Program
The following Guardian TACL macro shows how to add an FTP user ID that defaults to an OSS
directory.
?TACL MACRO
== This macro adds FTP user IDs to the system
#FRAME
#SET #INLINEPREFIX>
INLECHO ON
safecom /INLINE/
>add user admin.ftp, 168,10, password ftp
>alter user admin.ftp, guardian default security NNNN
>alter user admin.ftp, guardian default volume $data2.q9552
>add alias ftp, 168,19, password ftp
>alter alias ftp, guardian default security NNNN
>alter alias ftp, guardian default volume $data2.q9552
>alter alias ftp, initial-program /bin/ksh
>alter alias ftp, initial-directory /user/q9552
>info user super.ftp, detail
>info alias ftp, detail
>exit
#UNFRAME
FTP Replies
The FTP server reply consists of a three digit number (transmitted as three alphanumeric charac-
ters) followed by text. Programmatic applications can use the number to determine what state to
enter next. Users can interpret the text. A reply contains a 3-digit code, followed by Space
<SP>, followed by one line of text (where some maximum line length has been specied), and
terminated by the Telnet end-of-line code. The rst digit of the three digit code denotes whether
the response is good, bad or incomplete. There are ve values for the rst digit of the reply code:
527188-003 Hewlett-Packard Company 129