Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Services Oracle Solaris 11 Information Library |
Part I Network Services Topics
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)
8. Planning and Enabling SLP (Tasks)
10. Incorporating Legacy Services
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)
25. Administering UUCP (Tasks)
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
29. Accessing Remote Systems (Tasks)
Part VII Monitoring Network Services Topics
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.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# svcadm enable network/ftp
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
# svcadm disable network/ftp
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.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
ftpshut [ -l min] [ -d min] time [warning-message...]
Command that provides a procedure for notifying users that the FTP server is shutting down.
Flag that is used to adjust the time that new connections to the FTP server are denied
Flag that is used to adjust the time that existing connections to the FTP server are disconnected
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
Shutdown notification message; see the ftpshut(8) man page for more information
Use the ftprestart command to restart the connections to the FTP server. For further information, see ftpshut(8) and ftprestart(8).
Most configuration variations are made by making changes to the /etc/proftpd.conf file. Use the following steps when making changes to this file.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
See the simple examples below for suggestions about what information to add to the configuration file.
# 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>