JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: Network Services     Oracle Solaris 11 Information Library
search filter icon
search icon

Document Information

Preface

Part I Network Services Topics

1.  Network Service (Overview)

2.  Managing Web Cache Servers

3.  Time-Related Services

Part II Accessing Network File Systems Topics

4.  Managing Network File Systems (Overview)

5.  Network File System Administration (Tasks)

6.  Accessing Network File Systems (Reference)

Part III SLP Topics

7.  SLP (Overview)

8.  Planning and Enabling SLP (Tasks)

9.  Administering SLP (Tasks)

10.  Incorporating Legacy Services

11.  SLP (Reference)

Part IV Mail Services Topics

12.  Mail Services (Overview)

13.  Mail Services (Tasks)

14.  Mail Services (Reference)

Part V Serial Networking Topics

15.  Solaris PPP 4.0 (Overview)

16.  Planning for the PPP Link (Tasks)

17.  Setting Up a Dial-up PPP Link (Tasks)

18.  Setting Up a Leased-Line PPP Link (Tasks)

19.  Setting Up PPP Authentication (Tasks)

20.  Setting Up a PPPoE Tunnel (Tasks)

21.  Fixing Common PPP Problems (Tasks)

22.  Solaris PPP 4.0 (Reference)

23.  Migrating From Asynchronous Solaris PPP to Solaris PPP 4.0 (Tasks)

24.  UUCP (Overview)

25.  Administering UUCP (Tasks)

26.  UUCP (Reference)

Part VI Working With Remote Systems Topics

27.  Working With Remote Systems (Overview)

28.  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

29.  Accessing Remote Systems (Tasks)

Part VII Monitoring Network Services Topics

30.  Monitoring Network Performance (Tasks)

Glossary

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 Obtain Administrative Rights in Oracle Solaris 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 Obtain Administrative Rights in Oracle Solaris 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 Obtain Administrative Rights in Oracle Solaris 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 Obtain Administrative Rights in Oracle Solaris 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 28-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 28-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>