Red Flag Linux System FTP Configuration Tips

  

Red Flag Linux users will need to set up their own FTP before using their own computer to access the Internet, but how to configure their own FTP. Some users are still not very clear, so today Xiaobian will share the solution to this problem with everyone.

First, the preparatory work before the configuration:

1, create two user student, teacher

[root @ localhost /] # useradd student

[root@localhost /]#passwd student

[root@localhost /]#useradd teacher

[root@localhost /]#passwd teacher

2 Modify the owner of the data folder to belong to the teacher user

[root@localhost /]# chown teacher data

Second, configure the FTP service:

1Open the graphic management Tool 2 Right click on the default FTP site in the Select Properties

5. In the Home tab,

Absolute Path Selection Select & Browse; Browse ” and Assign to /DATA Directory

Click Apply, OK button

6. In the Directory Security tab,

Add button to add the address or network segment of the login server that is not allowed

Click Apply, OK button

7. Restart the service.

Third, the text configuration process

Vi /etc/proftpd.conf

At the 5th line

ServerName “ftpserver”will“ftpserver&rdquo Change to the server name you actually need to use

Modify it to line 22 at

DefaultRoot /data

Use the /DATA directory as the default login folder
>

Modify the content on line 75 to

Order Deny, Allow

Deny from 192.168.1.1

Allow from all

All hosts except 16.8.1 can access the FTP server

Other parts remain the default. Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved