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.
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.
Shut down FTP immediately:
ftpshut now
Shut down FTP in 15 minutes, deny access to new users in 5 minutes, disconnect users not in file transfer mode in 10 minutes:
root# ftpshut -l 5 -d 10 15 System going down in 15 minutes
The shutdown message is limited to 76 characters maximum.
Please refer to the ftpshut(1m) man page for information on creating and using a shutdown configuration file.
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# |
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:
The FTP virtual host is myVH.org.
the FTP virtual host chroot directory is/export/home/myVH.org.
Remove the FTP virtual host entry from /etc/inet/ftpservers. For example, you would delete the line myVH.org /etc/inet/myVH.org/ftpaccess.
If this is an FTP-only virtual host:
Remove the FTP virtual host entry from /etc/inet/hosts. For example, you would delete the line containing myVH.org from /etc/inet/hosts.
Remove the virtual host chroot directory; in this example, /export/home/myVH.org.
If this is an FTP/web site host:
Change directory to the virtual host chroot directory, in this example /export/home/myVH.org.
Remove the file Welcome, and remove the following directories only if they do not contain web data:dev/, etc/, pub/, usr/, and var/.
Remove the FTP virtual host entries from LDAP using Deja, or via the command line as described by ldapdelete(1m).