Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
Miscellaneous Files and Commands ftpserver(7)
SHOWOPEN { ON | OFF }
When the Guardian file system is used, the SITE SHOWOPEN command
displays (ON) or does not display (OFF) an open flag (an O next to the filecode
field) when the FTP client’s DIR command is used and a listed file has at least
one current open.
If the SITE SHOWOPEN command is not used, no open flags 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
configured, OSS is the default file system. Use the quote Guardian command to access
the Guardian file system. If an OSS directory is not configured, Guardian is the default
file system.
• Using the User_Getinfo_ call to set up the initial directory of both the OSS and Guar-
dian file systems for the user.
• Failure of either of the above results in the user not logging in. The FTP server supports
Safeguard security configuration.
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 specified), and
terminated by the Telnet end-of-line code. The first digit of the three digit code denotes whether
the response is good, bad or incomplete. There are five values for the first digit of the reply code:
527188-003 Hewlett-Packard Company 12−9