Previous Topic Next topic Print topic


Configuring the Server

You need to take the following steps to configure the server. Note that these commands need to be executed with superuser privileges.

  1. Link the SCP program to scpd. For example,
    ln /cobol_install_dir/bin/cobscp /usr/local/etc/scpd 
    

    where cobol_install_dir is the location of your Studio Enterprise Edition for UNIX installation.

    Note that the directory is not important.

  2. Choose the network port to listen on.

    When executed, the SCP daemon listens on a special network port. By default this is 696. If this port is already being used on your system or you want to use a different port, you can override the SCP daemon port with the -p argument. For example:

    scpd -p 900

    Errors, such as port busy, are reported to the standard system syslog facility. You can check /etc/syslog.conf to see which file receives the syslog output.

  3. Choose the daemon mode.

    The SCP daemon can be started from the command line or in a shell script or via the inetd server.

    When starting from the command line, make sure that you start the server as part of the system startup process. System startup files vary from system to system: most SVR4 systems look in /etc/rc2.d.

    When starting via the inetd server, the configuration is somewhat more complex. However, the system will automatically start the daemon when necessary and close it down when finished. To use this method:

    1. Add the port number the SCP daemon will be listening on to the services files, /etc/services. This should look something like:
      mf-scpd   696/tcp   # Micro Focus SCP Daemon
      
    2. Add a line to the inetd configuration file, /etc/inetd.conf. The configuration varies slightly from system to system, but it should look something like:
      mf-scpd stream   tcp   nowait   root  
                  /usr/local/etc/scpd   scpd

      (Shown here broken across two lines for ease of reading.)

    3. Send a SIGHUP signal to tell the inetd process to re-load its configuration file. To do this, first find the process ID, for example:
      ps -eaf | grep inet

      then

      kill -1 processid
  4. Choose whether to allow r-command access to the server.

    To restrict r-command access to UNIX Publish, remove or rename the SCP program.

Previous Topic Next topic Print topic