Linux ftpshut command details how to use the Linux ftpshut command

Source: Internet
Author: User
Tags ftp

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.