当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Jetpack Compose——Image使用Coli加载网络图片(包含GIF、SVG)
Jetpack Compose——Modifier的基本属性简单介绍
CTF题解五 Web PHP大法(实验吧)
11. cuBLAS Development Guide Chinese version--Level-1 functions amax() and amin() in cuBLAS
RHCE课程总结
The use of Jetpack Compose - Button (Button)
RHCE课程总结
spark单机版安装
Mysql的七种连接查询方法
flink并行度知识点
响应式pbootcms模板家禽饲养类网站
LNMP架构搭建之论坛
蓝桥杯嵌入式(STM32F103RBT6)最全攻略(一)
汇编语言学习(七)
Xshell建立SSH隧道连接
Firewalld防火墙基础
1.11 flink中的动态加载udf jar包
Spark GC日志分析
三子棋的代码实现
“未来10年,中国APP不可能回印度了”









