ftpshut – Shut down the FTP server at a set time

The ftpshut command is used to shut down the FTP server at a specified time. This command is useful for system administrators who want to schedule regular maintenance or shutdowns of their FTP server.


The ftpshut command takes a single argument, which is the time at which the FTP server should be shut down. This time can be specified using the following format: HH:MM, where HH is the hour (in 24-hour format) and MM is the minute.

For example, to shut down the FTP server at 11:30 PM, you would use the following command:

ftpshut 23:30

Once the ftpshut command is executed, it will wait until the specified time and then shut down the FTP server. Any users currently connected to the server will be disconnected.


The following table lists all available options for the ftpshut command:

Option Description
-q Quiet mode. Suppresses all output.
-V Print version information and exit.

Troubleshooting Tips

If the ftpshut command does not shut down the FTP server at the specified time, there are a few troubleshooting steps you can take:

  1. Check that the time specified is correct and in the correct format (HH:MM).
  2. Ensure that the FTP server is running and that you have the necessary permissions to shut it down.
  3. Check the system logs for any errors or issues related to the ftpshut command.


  • The ftpshut command must be run as the root user or with sudo privileges.
  • If you need to cancel a scheduled shutdown, you can use the ftpwho command to see which users are currently connected to the FTP server and then use the ftpshut -u command to disconnect them.