`
coconut_zhang
  • 浏览: 532743 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

redhat linux as 5 ftp配置

阅读更多

1.查看并启动vsftpd
运行ntsysv
查看有没有vsftpd,有的话,选中,没有则安装vsftp.
启动ftp. service vsftpd restart
2.配置vsftpd用户,启用root用户.
cd /etc/vsftp
vi ftpdusers
#root
运行命令
setsebool -P ftpd_disable_trans 1
cd /etc/vsftp
编辑vsftpd.conf 添加
local_root=/
userlist_deny=NO
重启ftp
service vsftpd restart
搞定,用ftp连接.

 

3.配置。使用命令:vi /etc/vsftpd/vsftpd.conf。利用vi编辑器编辑vsftpd的配置文件vsftpd.conf。将vsftpd.conf文件中的主要设置如下:

anonymous_enable=YES

local_enable=YES

write_enable=YES

anon_upload_enable=YES

anon_mkdir_write_enable=YES

ascii_upload_enable=YES

ascii_download_enable=YES

注意要将配置项前面的#去掉,配置才生效。

4.设置ftp的pub目录属性中的权限。根目录下的var文件夹下的ftp文件夹是用户登录到ftp的目录,而ftp目录下的pub目录是用户上传或下载文件的目录,如果要允许用户上传文件那么就要将这个目录的属性中的权限设置为可写。

5.启动ftp服务器。利用命令service vsftpd start就可以启动ftp服务器了。

6.关闭ftp服务器。利用命令service vsftpd stop。

修改用户到/etc/vsftp.userlist修改

修改目录local_root=/var/upload

chroot_local_user=yes

分享到:
评论

相关推荐

    Redhat Linux AS 3下VS-FTP的配置.pdf

    Redhat Linux AS 3下VS-FTP的配置.pdf

    vsftp讲解

    原文出处 http://www.5ilinux.com/vsftp01.html] <br>“这是我这个菜鸟学习...我所用的是Redhat Linux AS + VSFTPD-1.2.0-4的系统架构,在这里说明的是如果对配置文件不是很熟悉,最好做个备份,以免误操作。”

    [Fedora.Linux.宝典.2010版.PDF].Fedora.Bible.2010.Edition-Featuring.Fedora.Linux.12.pdf

    As a free, open source Linux operating system sponsored by Red Hat, Fedora can either be a stepping stone to Enterprise or used as a viable operating system for those looking for frequent updates....

    NESS 教程 完整

    下面以 Redhat linux AS 3.0 系统安装Nessus-2.0.10a 为例进行说明。 最近版本的 Nessus 下载地址 http://ftp.nessus.org/nessus/nessus-2.0.10a/ http://ftp.nessus.org/nessus/nessus-2.0.10a/src/为Nessus 的4 个...

    Linux Dictionary

    Linux 大全; 按照A~Z区分; A a−Linux a−Linux is an x86 floppy−based mini−distribution, where assembly code meets Linux kernel. It contains only programs written in assembly language. It is ...

    CentOS宝典.pdf

    Lead author Christopher Negus is the bestselling Linux author of such books as Fedora 10 and Red Hat Enterprise Linux Bible and Linux 2009 Edition Bible; he is also a member of the Red Hat Enterprise ...

    oracle 11g安装配置

    [root@dbserver lib]# cp fontconfig.RedHat.6.bfc fontconfig.bfc [root@dbserver ~]# rpm -e ksh 因为默认没有装 [root@dbserver ~]# rpm -ivh .../ksh-5.2.14-36.el5.i386.rpm 用户环境要求 创建组账号...

    ELDK使用与开发手册

    文档中描述了如何在嵌入式PowerPC, ARM和MIPS系统上配置、编译、使用Das U-Boot(常常缩写为“U-Boot”)和Linux操作系统。文档中涵盖了所有你可能需要的用于配置、编译、运行U-Boot和Linux的工具。 2. 绪论 首先,...

    linux.chm文档

    usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1 修改用户属性 passwd 修改口令 passwd user1 修改一个用户的口令 (只允许root执行) chage -E 2005-12-31 user1 设置用户口令的失效期限 ...

    Beginning Fedora Desktop

    This is your complete guide to using the Fedora 28 Desktop Linux release as your daily driver for multimedia, productivity, social networking, administrative tasks, and more. Author and Linux expert ...

    2009 达内Unix学习笔记

    ftp工具 192.168.0.202 tools-toolss 老师测评网址 http://172.16.0.198:8080/poll/ 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ 一、注意事项 命令和参数之间必需用空格隔开,参数和...

Global site tag (gtag.js) - Google Analytics