Solaris ISP Server 2.0 Reference Guide

1.3 Maintenance

1.3.1 Start ftpd

The standard FTP installation places an entry in /etc/inetd.conf, thereby automatically starting the FTP server when an FTP connection is made.

The ftpshut(1m) command creates the file /var/ftp/shutdown which disables FTP.

To reenable FTP, enter the command:

ftpshut enable

This deletes the /var/ftp/shutdown file, allowing subsequent FTP connections to automatically start the FTP daemon.

1.3.2 Stop ftpd

The ftpshut(1m) command is used to shut down the FTP server. You can optionally specify the number of minutes to new user lockout and disconnect of existing users as well as the logout message, or you can specify a configuration file containing this information.

The ftpshut(1m) command creates the file/var/ftp/shutdown. This blocks the restart of the FTP server until you enter the command ftpshut enable.

Examples:

Please refer to the ftpshut(1m) man page for information on creating and using a shutdown configuration file.

1.3.3 Show Users by Class

Refer to ftpaccess(4) for the definition of class and procedures for defining new classes.

Use the ftpcount(1m) to display the number of active users per class:

/usr/sbin/ftpcount

The number of users per class and the class maximums are displayed:


root# ftpcount
Service class anon                 -   2 users ( 10 maximum) 
Service class guest                -   0 users ( 10 maximum) 
Service class real                 -   0 users 
root# 

1.3.4 Delete an FTP Site

Removal of an FTP virtual host depends on the type of subscriber authentication; and whether or not the virtual host is also serving as a web hosting site.

The following procedure uses the examples:

  1. Remove the FTP virtual host entry from /etc/inet/ftpservers. For example, you would delete the line myVH.org /etc/inet/myVH.org/ftpaccess.

  2. If this is an FTP-only virtual host:

    1. Remove the FTP virtual host entry from /etc/inet/hosts. For example, you would delete the line containing myVH.org from /etc/inet/hosts.

    2. Remove the virtual host chroot directory; in this example, /export/home/myVH.org.

  3. If this is an FTP/web site host:

    1. Change directory to the virtual host chroot directory, in this example /export/home/myVH.org.

    2. Remove the file Welcome, and remove the following directories only if they do not contain web data:dev/, etc/, pub/, usr/, and var/.

  4. Remove the FTP virtual host entries from LDAP using Deja, or via the command line as described by ldapdelete(1m).