JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Managing Remote Systems in Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Working With Remote Systems (Overview)

2.  Administering the FTP Server (Tasks)

Administering the FTP Server (Task Map)

Administering the FTP Server (Tasks)

How to Start an FTP Server Using SMF

How to Shut Down the FTP Server Using SMF

How to Shut Down the FTP Connection

How to Change the ProFTPD Configuration

3.  Accessing Remote Systems (Tasks)

Index

Administering the FTP Server (Tasks)

The following procedures show how to start and stop the FTP server, how to disable the FTP connection and how to make changes to the ProFTPD configuration file.

How to Start an FTP Server Using SMF

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Start the FTP server.
    # svcadm enable network/ftp

How to Shut Down the FTP Server Using SMF

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Stop the FTP server.
    # svcadm disable network/ftp

How to Shut Down the FTP Connection

The ftpshut(8) command closes down the FTP server at a particular time. If you want to stop serving FTP only, but not stop the daemon (so it can report the service is not available to clients) then use this procedure. The ftpshut command will block connections and stop the current connection, but not shutdown the server daemon itself.

When you run ftpshut, a file is generated from command-line options that specify when shutdown occurs, the point at which new connections are refused, and when existing connections are dropped. Users are notified of a server shutdown based on this information. The location of the file that is created by ftpshut is /etc/shutmsg.

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Run the ftpshut command.
    ftpshut [ -l min] [ -d min] time [warning-message...]
    ftpshut

    Command that provides a procedure for notifying users that the FTP server is shutting down.

    -l

    Flag that is used to adjust the time that new connections to the FTP server are denied

    -d

    Flag that is used to adjust the time that existing connections to the FTP server are disconnected

    time

    Shutdown time that is specified by the word now for immediate shutdown, or in one of two formats (+ number or HHMM) for a future shutdown

    [warning-message...]

    Shutdown notification message; see the ftpshut(8) man page for more information

  3. Restore access to the files.

    Use the ftprestart command to restart the connections to the FTP server. For further information, see ftpshut(8) and ftprestart(8).

How to Change the ProFTPD Configuration

Most configuration variations are made by making changes to the /etc/proftpd.conf file. Use the following steps when making changes to this file.

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Make changes to the configuration file.

    See the simple examples below for suggestions about what information to add to the configuration file.

  3. Restart the FTP server.
    # svcadm restart network/ftp

Example 2-1 ProFTPD Configuration File Changes for a Virtual Host

For a virtual host that is using a fixed IP address, use the following directive. You may add multiple IP addresses separated by spaces if needed.

<VirtualHost 10.0.0.1>
  ServerName "My virtual FTP server"
</VirtualHost>

Example 2-2 ProFTPD Configuration File Changes for Anonymous Access

To provide anonymous ftp access to your site, use these directives:

# Deny login access
  <Limit LOGIN>
    DenyAll
  </Limit>

  <Anonymous ~ftp>

# Allow anonymous logins
    <Limit LOGIN>
      AllowAll
    </Limit> ....
  </Anonymous>