当前位置:网站首页>RHCE Course Summary
RHCE Course Summary
2022-08-09 14:47:00 【palm nine】
FTP experiment:
Configure FTP service on the host
Requirements:
Set up a file system server in the teaching department of openlab company.Realize that all users log in to the department's ftp file system server based on virtual user identities, and the root directory of the file system accessed is the /home/teacher directory.(The virtual users are: lucy, lack, david, dylan and the password is openlab)
1. Install ftp:
Mount:
[[email protected] ~]# mount /dev/sr0 /mnt
Mount:
[[email protected]~]# yum install vsftpd -y
Turn off the firewall:
[[email protected] ~]# systemctl stop firewalld
Turn off selinux;
[[email protected] ~]# setenforce 0
2. Create a system user teacher and turn off the interactive verification of real identity:
[[email protected] ~]# useradd -s /sbin/nologin teacher
3. Create a virtual user file and add a virtual user:
[[email protected] ~]# vim /etc/vsftpd/vfile

4. Convert virtual user files to user data files:
[[email protected] ~]# db_load -T -t hash -f /etc/vsftpd/vfile /etc/vsftpd/vfile.db
5. Permission to modify virtual user data file:
[[email protected] ~]# chmod 600 /etc/vsftpd/vfile.db
6. Edit the authentication file in the specified configuration file:
[[email protected] ~]# vim /etc/pam.d/vsftpd

7. Configure under the main ftp file:
[[email protected] ~]# vim /etc/vsftpd/vsftpd.conf
1. Add local user imprisonment: 
2.Enable virtual user access, corresponding to the real identity corresponding to the virtual identity: 
8. Add files to the teacher's home directory:
[[email protected] ~]# cd /home/teacher
[[email protected] teacher]# touch xueyuan
9. Restart the service and test by local and browser:
[[email protected] teacher]# systemctl restart vsftpd





Experiment completed
边栏推荐
猜你喜欢
随机推荐
零基础学习CANoe Panel 设计目录
*1-4 OJ 605 格雷码
RHCE课程总结
Counter of openharmony container components
汇编语言学习(五)
openharmony容器组件之Flex
三种ThreadLocal,玩转线程变量保存与传递
去IOE-EBS何去何从
*3-4 CCF 2014-09-3 字符串匹配
Es7.x使用RestHighLevelClient进行查询操作
RHCE课程总结
曾毓群想做王传福
青蛙跳台阶
RHCE课程总结
#23-5 OJ 86 杨辉三角形
【视频编码学习】——变换的理解
操作系统迁移实战之在openEuler上部署MySQL数据库
*4-2 CCF 2014-12-2 Z字形扫描
*3-2 CCF 2014-09-2 画图
openharmony容器组件之Column









