这个是FTP
2017/11/21
vi etc/sysconfig/network
【hostname=cn201611214】
reboot
(cmb)ipconfig / all
(桥接——编辑连接)
ping 192.168.42.29 -c 4
ping 192.168.81.110 -c 4
service network restart
(cmd) ping 192.168.81.110
useradd cn
passwd cn
chmod 640 /etc/sudoers
gedit /etc/sudoers
【cn ALL=(ALL) ALL】
chmod 440 /etc/sudoers
su cn
rpm -qa|grep vsftpd
sudo rpm -ivh v(tab)/f(tab)
sudo setenforce 0
(关闭防火墙)
sudo service vsftpd start
(cmd)ftp 192.168.42.29
()anonymous
()ls
()bye
ls /var/ftp
(cmd)ftp 192.168.42.29
()cn
()cd /
()ls -l
()bye
cd ~
pwd
mkdir -p ftpserver/upload
sudo chown ftp ftpserver/upload/
ls ftpserver/ -l
vi ftpserver/wenjuan01.txt
【cn201611214
chushi wenjuan】
ls ftpserver/ -l
cd /etc/vsftpd/
ls -l
sudo cp vsftpd.conf vsftpd.conf.bak
sudo gedit vsftpd.conf
【】
sudo useradd cn01
sudo passwd cn01 MM111111 MM222222
ls /home
sudo vi chroot_list
【cn01】
sudo service vsftpd restart
ftp 192.168.42.29
cn
111111
cd /
ls
ftp 192.168.42.29
cn01
222222
ls
cd /
ls
bye
ftp 192.168.42.29
anonymous
111111
ls
cd /
ls
get wenjuan01.txt /home/cn/aa.txt
(打开终端)
su cn
ls
cd ~
ls
cat aa.txt
vi aa.txt
【cn201611214
wancheng wenjuan】
mv aa.txt wancheng-wenjuan01-cn.txt
ls
ls -l
(回终端)
ls
cd upload
ls
put /home/cn/wancheng-wenjuan01-cn.txt wancheng-wenjuan01-cn.txt
ls
(打开软件 先调试anonymous 再调试cn)
2017/11/21
vi etc/sysconfig/network
【hostname=cn201611214】
reboot
(cmb)ipconfig / all
(桥接——编辑连接)
ping 192.168.42.29 -c 4
ping 192.168.81.110 -c 4
service network restart
(cmd) ping 192.168.81.110
useradd cn
passwd cn
chmod 640 /etc/sudoers
gedit /etc/sudoers
【cn ALL=(ALL) ALL】
chmod 440 /etc/sudoers
su cn
rpm -qa|grep vsftpd
sudo rpm -ivh v(tab)/f(tab)
sudo setenforce 0
(关闭防火墙)
sudo service vsftpd start
(cmd)ftp 192.168.42.29
()anonymous
()ls
()bye
ls /var/ftp
(cmd)ftp 192.168.42.29
()cn
()cd /
()ls -l
()bye
cd ~
pwd
mkdir -p ftpserver/upload
sudo chown ftp ftpserver/upload/
ls ftpserver/ -l
vi ftpserver/wenjuan01.txt
【cn201611214
chushi wenjuan】
ls ftpserver/ -l
cd /etc/vsftpd/
ls -l
sudo cp vsftpd.conf vsftpd.conf.bak
sudo gedit vsftpd.conf
【】
sudo useradd cn01
sudo passwd cn01 MM111111 MM222222
ls /home
sudo vi chroot_list
【cn01】
sudo service vsftpd restart
ftp 192.168.42.29
cn
111111
cd /
ls
ftp 192.168.42.29
cn01
222222
ls
cd /
ls
bye
ftp 192.168.42.29
anonymous
111111
ls
cd /
ls
get wenjuan01.txt /home/cn/aa.txt
(打开终端)
su cn
ls
cd ~
ls
cat aa.txt
vi aa.txt
【cn201611214
wancheng wenjuan】
mv aa.txt wancheng-wenjuan01-cn.txt
ls
ls -l
(回终端)
ls
cd upload
ls
put /home/cn/wancheng-wenjuan01-cn.txt wancheng-wenjuan01-cn.txt
ls
(打开软件 先调试anonymous 再调试cn)