Set up ftp service
Environment introduction:
There is a newly installed (minimum + developer tool) linux system locally, without any modifications. Please complete the experiment according to the following requirements. Root password 123123
1. Configure the static ip address as 192.168.100.130 Universe 24, and the gateway as 192.168.100.1dns server address 192.168.100.100. Turn off the firewall.
Configure a local yum source using a local CD
Mount the CD and realize automatic mount on boot.
Install vsftpd
Create the user teacher and specify the home directory as / ftproot and the password set to pwd@123.
two。 Create a logical volume / dev/ftp_vg/ftp_lv with a size of 45G using / dev/sd {bforce c ftproot d} and mount it permanently to the / volume directory.
1) Partition the hard disk (nMurpmur1-enter-enter-t-8e-w)
The other two hard drives operate the same way.
2) reload
3) create a pv
4) create a vg
5) create a lv of 45g
6) formatting
7) permanently mount to the / ftproot directory
3. Install and configure ftp for the school according to the following requirements:
1) there are three directories under the ftp root directory:
Benet5.2 requires all students to upload assignments (upload files cannot be: * .rmvb,*.mp3,*.avi,*.exe) but cannot be downloaded, and teacher is required to authorize and download student assignments to this directory.
Public requires learning materials to be shared, students can download but not upload, teacher can upload and download
The Teacher directory is accessible only to teacher and not to anyone else.
(use:% g / ^ # / d to delete comments:% g / ^ $/ d to delete blank lines)
2) access the test and verify it.
Windows accesses ftp, uses teacher users to log in and create Benet5.2, Public, Teacher directories, establishes class directories and authorizes them under Benet5.2, uploads resources to Public and Teacher directories, and closes the window.
At this point, the creation of ftp experiment is over. Thank you for checking.