匿名用户通过ftp服务对文件的操作
匿名用户可以通过ftp服务上传,下载,删除文件,同时上传目录文件的权限是755
首先是装包
[root@localhost ~]# mount /dev/sr0 /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
[root@localhost ~]# yum install vsftpd -y
然后去编辑配置文件
[root@localhost ~]# vim /etc/vsftpd/vsftpd.conf
12 anonymous_enable=yes
29 anon_upload_enable=YES
33 anon_mkdir_write_enable=YES
anon_other_write_enable=yes
anon_umask=022
关闭防火墙和selinux,重启服务
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# setenforce 0
[root@localhost ~]# systemctl restart vsftpd
然后修改目录权限
[root@localhost ~]# ll /var/ftp/pub/ -d
drwxr-xr-x. 2 root root 6 Feb 17 2020 /var/ftp/pub/
[root@localhost ~]# chmod o+w /var/ftp/pub/
[root@localhost ~]# ll /var/ftp/pub/ -d
drwxr