This command allows the system administrator to shut down the FTP server at the specified time and sends a warning message to the user before it is disabled. If the closing time is set to "none", the server is immediately shut down. If "+ 30" is used, the server will be shut down after 30 minutes. Similarly, if the "1130" format is used, the server is disabled at every day. The time format is in the 24-hour format. After the FTP server is shut down, a file named shutmsg will be generated in the/etc directory. After deleting the file, you can start the FTP server function again.
Syntax
Ftpshut [-d <MINUTE>] [-l <MINUTE>] [close time] ["warning"]
Parameters:
- -D <MINUTE> disconnect all FTP connections.
- -L <MINUTE> the time when FTP logon is stopped.
Instance
Shut down the FTP server at, and reject new FTP logins five minutes before the shutdown. Close all ftp links three minutes before and give a warning. Run the following command:
Ftpshut-d 3-1 5 1100 "Server will be shutdown at 23:00:00"