`

linux vsftpd无法上传和下载

阅读更多
vsftpd搭建好了,宿主机也可以连接到虚拟机的ftp服务
但是,用leapFTP工具连接时,随连接上了,却无法上传和下载
首先要确定把ftp的根目录设置成770权限
chmod 770 ftp
设置ftp所属的owner和group
chown root:ftp ftp
我是Linux菜鸟,这地方我就照着SELinux提示来做的,其实充分利用他的作用也会事半功倍
如: man ftpd selinux

                        出现如下提示,照着做就行了!
大家没必要看这下面的,在字符窗口敲  man ftpd selinux  就有了
tpd_selinux(8)        ftpd SELinux policy documentation       ftpd_selinux(8)

NAME
       ftpd_selinux - Security-Enhanced Linux policy for ftp daemons.

DESCRIPTION
       Security-Enhanced  Linux provides security for ftp daemons via flexible
       mandatory access control.

FILE_CONTEXTS
       SELinux requires files to have a file type. File types may be specified
       with  semanage  and  are  restored with restorecon.  Policy governs the
       access that daemons have to files.

       Allow ftp servers to read the /var/ftp directory  by  adding  the  pub-
       lic_content_t  file  type  to  the  directory and by restoring the file
       type.

       semanage fcontext -a -t public_content_t "/var/ftp(/.*)?"

       restorecon -R -v /var/ftp

       Allow ftp servers to read and write  /var/tmp/incoming  by  adding  the
       public_content_rw_t  type  to  the  directory and by restoring the file
       type.  This also requires the allow_ftpd_anon_write boolean to be  set.

       semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?"

       restorecon -R -v /var/ftp/incoming

BOOLEANS
       SELinux policy is based on least privilege required  and  may  also  be
       customizable by setting a boolean with setsebool.

       Allow  ftp servers to read and write files with the public_content_rw_t
       file type.

       setsebool -P allow_ftpd_anon_write on

       Allow  ftp servers to read or write files in the user home directories.

       setsebool -P ftp_home_dir on

       Allow ftp servers to read or write all files on the system.
       setsebool -P allow_ftpd_full_access on

       Allow ftp servers to use cifs for public file transfer services.

       setsebool -P allow_ftpd_use_cifs on

       Allow ftp servers to use nfs for public file transfer services.

       setsebool -P allow_ftpd_use_nfs on

       system-config-selinux is a GUI tool available to customize SELinux pol-
       icy settings.

AUTHOR
       This manual page was written by Dan Walsh <dwalsh@redhat.com>.

SEE ALSO
       selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8)

dwalsh@redhat.com                 17 Jan 2005                  ftpd_selinux(8)


分享到:
评论

相关推荐

    Linux VSFTPD 中实现匿名上传配置

    在Linux环境下实现匿名用户的上传的问题的详细配置

    Linuxvsftpd匿名用户开放上传,写入,创建,删除权限[收集].pdf

    Linuxvsftpd匿名用户开放上传,写入,创建,删除权限[收集].pdf

    linux vsftpd搭建步骤 亲测可用

    #如果服务器与客户端的数据联机已经成功建立 (不论主动还是被动联机),但是可能由于线路问题导致 120 秒内还是无法顺利的完成数据的传送,那客户端的联机就会被我们的 vsftpd 强制剔除! data_connection_timeout=...

    centos7上安装与卸载vsftpd服务器

    vsftpd是linux系统上的一款常用文件服务器,它的优点是占用内存小,上传,下载速率快,运行速度较快,是其他ftp服务器所不具备的。

    vsftpd-3.0.3-edit.tar.gz.tar

    pub这个目录是用来供匿名用户上传文件的,上传的文件存放在此处,故其属性为777,而其他目录无此属性,不能用来作为上传目录。 7、开发板执行以下命令启动 vsftpd/etc/vsftpd.conf& 8、启动ftp登录 用户名root密码空...

    vsftpd_ftp服务器Linux虚拟用户配置(超详细)

    vsftpd_ftp服务器Linux虚拟用户配置(超详细)

    Linux FTP服务搭建

    确认系统中vsFTPd的安装和版本情况: [root@localhost ~]#rpm –q vsftpd 安装vsFTPd命令: [root@localhost Server]#rpm –ivh vsftpd-2.0.5-12.el5.i386.rpm 在vsftpd.conf文件中配置匿名访问: anonymous_...

    Linux FTP服务配置

     ascii_download_enable=YES 是否使用ascii码方式上传和下载文件  ftpd_banner=Welcome to chenlf FTP service. 定制欢迎信息  deny_email_enable=YES  banned_email_file=/etc/vsftpd.banned_emails 是否...

    ftp可登录但是无法下载,上传问题解决

    构建了一个ftp服务器,通过命令ftp可登录,登录后,无法下载,上传,ls也无法执行。 通过 passive 开启和关闭 PASV模式,再ls 也是同样的问题, # 主动模式 $ pftp -v -A -d 211.159.185.xxx Connected to 211...

    Linux下vsftpd server的搭建

    在学习linux的时候搭建ftp不能上传文件,通过查找资料解决了问题,现在和大家分享,祝愿大家能早点解决问题

    vsftpd服务器三种用户的配置.doc

    vsftpd服务器的匿名、本地、虚拟用户的登录、上传和下载;文件中的内容算是挺详细的,!

    vsftpd-2.2.2-24.el6.x86_64 linux中vsftp

    下载后解压后上传都服务器上,使用rpm -ivh 包名,便可安装

    linux终端下用命令创建ftp

    linux终端下用命令创建ftp 用到的ftp服务器是vsftpd 实现上传与下载

    安装vsftpd.docx

    Linux系统安装vsftpd服务实现远程ftp上传下载,有不明白如何配置的,可以下方评论留言哦,欢迎交流分享!

    Linux上ftp服务器的配置

    1.实训目的 掌握Linux下Vsftpd服务器的架设方法,学会使用ftp服务器。 2.实训内容 1) 本地用户和匿名用户都... 通过本次实训,掌握Linux上ftp服务器的配置,掌握登录访问ftp服务器的方法和上传和下载共享文件的方法。

    vsftpd-2.2.2-12.el6_5.1.x86_64.rpm

    linux 2.6 vsftp的RPM安装包,下载上传至服务器,然后rpm -ivh vsftpd-2.2.2-12.el6_5.1.x86_64.rpm 即可安装最新版vsftp了

    linux下ftp客户端.zip

    linux下 ftp shell ,ftp...下载后,解压,上传rpm包到/usr/local/src下,执行rpm -ivh ftp-0.17-54.el6.x86_64.rpm(同时也要安装好vsftpd,查看service vsftpd status运行状态),运行情况下,输入ftp就可以使用啦

    vsftpd-anonymous-upload-docker:仅用于匿名FTP上传的Vsftpd Docker映像

    vsftpd匿名上传Docker映像 是用于UNIX系统(包括Linux)的GPL许可FTP服务器。 该Docker映像配置为仅允许匿名上传。 通过在/etc/vsftpd.email_passwords列出允许的电子邮件,可以提供最低限度的访问控制。 /var/...

    vsftpd_3.0.3-3ubuntu2_amd64-fiona

    vsftpd,ubuntu; 解压后将包上传服务器,执行dpkg -i vsftpd_3.0.3-3ubuntu2_amd64.deb就可以

    vsftpd-3.0.3-12-arm64.deb

    使用vsftpd_3.0.3-12_arm64.deb软件包,用户可以将FTP服务器配置为按照不同的权限虚拟用户,以及给用户对应的上传、下载权限。vsftpd还提供了插件接口,可以自定义脚本对FTP上传文件的事件进行拦截和处理,可进行...

Global site tag (gtag.js) - Google Analytics