Workgroup name:
Welcome message is displayed only for the specified working group.
Variables available
%T |
message / login //Indicates when anonymous user logs in, |
Welcome from%RFriends! |
tar
Set file compression function. tar can set whether certain working groups are allowed to compress files online using tar. Format:
tar <Set value><Workgroup name> |
Settings: The options available are yes and no; they indicate the activation and closing of the tar function.
Workgroup name: Workgroup name defined using class.
For example (defaults to allow all workgroups to use tar to compress files online)
tar yes all |
The execution permissions of the instruction
This class can be used to set which categories of users are allowed to execute commands such as chmod, in the format:
chmod <Set value><User Category> |
Settings: The options available are yes and no. It indicates whether this instruction is allowed to be executed separately. By default, everyone can execute user categories: the available categories are real, anonymous, guest.
For example (users who log in with guest and anonymous identity are not allowed to execute chmod, delete, overwrite, rename instructions)
chmod no guest,anonymous |
compress
You can set whether some working groups are allowed to compress files online using compress. Format:
compress <Set value><Workgroup name> |
compress yes all |
log commands
It can be used to specify which users to record the commands executed by them, in the following format:
log commands <User Category> |
User Category: The available user categories are real, anonymous, guest
For example:
log commmands real |
log transfers
Can be used to specify which users to record the actions of transfer files, in the format:
log transfers <User Category><Transmission action> |
User Category: The available categories are real, anonymous, guest.
Transfer action: There are two options available: inbound (used to record the actions uploaded to the server); outbound (represents to record the actions of downloading files from the server)
For example (records all actions of uploading and downloading files by anonymous user):
log transfers anonymous inbound,outbound |
shutdown
Set when to turn off the FTP server, format:
shutdown <Set the path to the file> |
Set the file path:
The content of this setting file is about the shutdown command, and the default value is /etc/shutmsg file.
This file format is as follows:
<Year><moon><day><hour><point><cannotFTP登入的hour间><用户被踢出的hour间> |
2003 12 7 0 30 20 5 |
// means that the FTP server was closed at 0:30 on December 7, 2003, and users are prohibited from logging in at 0:10 minutes. At 0:25, all users will be kicked out by the system.
To start FTP, delete the /etc/shutmsg file
7. Set up the upload directory
Follow the steps below to complete:
Follow the steps below to complete:
1 #cd /var/ftp //Switch to the anonymous FTP root directory
2 #mkdir upload //Create the directory upload to upload
3 #chmod 733 upload //Set the permissions of this directory to 733, that is, everyone has permissions to write and execute. or 333.
4 Add the following content to the /etc/ftpaccess file:
upload /var/ftp /upload yes root ftp 0600 nodir |
chmod no guest,anonymous |
Detailed description
grammar:
upload
[dirs/nodirs]> |
#chmod a+w /var/ftp/upload |
upload /var/ftp * no |
/*When the permission is set to 0600, the files uploaded by anonymous users cannot be downloaded immediately. You need to wait for the FTP administrator to change the file permission to 0644 before you can provide download. If you want to upload the file upload to be available for download immediately, just change the file attribute to 0744, as follows: upload /var/ftp /upload yes root ftp 0744 nodirs */
Set filtering function
grammar:
path-filter <User Category> <Information file> <Upload file name rules> |
Access control
The settings here can be used to define workgroups, which users are allowed or rejected, or where to log in, or
deny
Used to set which URLs this FTP server refuses to log in from, and decides that the prompt text should be displayed at this time, format:
deny <Host address><Prompt text file path> |
Host address:
IP address or domain name, the host address can be specified here, or the wildcard character * can be used.
Prompt text file path:
When the user is denied login, the location of the prompt text file is to appear.
For example (rejected user to log in from the URL and displayed information about /etc/msgs/file)
deny *. /etc/msgs/ |
deny 192.168.1.* /etc/msgs/ |
limit
Set the maximum number of people online for a certain working group at a certain time, format:
limit <Workgroup name><Number of people><time><Prompt text file path> |
Workgroup name:
Workgroup name defined using class
Number of people:
Number of users allowed to log in
Time: Specify the time to be limited. The time format can be in a 24-hour system. For example, 0800-1800 means from 8 am to 6 pm. Other default formats are as follows:
Any Any date |
//In the time item, if you want to represent the time of multiple segments, the time and time can be connected in series with "|".
Prompt text file path:
When the user is denied login, the location of the prompt text file to be displayed.
For example:
/*Limited to any time, at most 20 group1 workgroup users can log in at the same time. When this number exceeds this number, users of the same workgroup will be denied to log in again and display
/etc/msgs/File information*/ |
Example 2:
/*Set on Saturday, Sunday, and Monday to Friday at 18:00 to 23:00. At the same time, up to 30 groups of users are allowed to log in. When logging in is refused, it will be displayed.
/etc/msgs/File information*/ |