• CentOS配制FTP服务器,并且能用root权限登录


    步骤如下:
    1、运行yum install vsftpd命令
    具体的细节如下:(如果无法更新,你先配置能访问互联网,我有文档叫 CentOS VMware下,如何联网到Internet的解决办法可以解决无法上网的问题)
    [root@localhost ~]# yum install vsftpd
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package vsftpd.i386 0:2.0.5-12.el5 set to be updated
    filelists.xml.gz          100% |=========================| 648 kB    02:46   
    http://ftp.hostrino.com/pub/centos/5.2/os/i386/repodata/filelists.xml.gz: [Errno 4] Socket Error: timed out
    Trying other mirror.
    filelists.xml.gz          100% |=========================| 2.8 MB    00:21   
    filelists.xml.gz          100% |=========================| 1.1 MB    00:12   
    filelists.xml.gz          100% |=========================| 132 kB    00:01   
    filelists.xml.gz          100% |=========================|  150 B    00:00   
    --> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================
    Package                Arch      Version          Repository        Size
    =============================================================================
    Installing:
    vsftpd                  i386      2.0.5-12.el5    base              137 k

    Transaction Summary
    =============================================================================
    Install      1 Package(s)       
    Update      0 Package(s)       
    Remove      0 Package(s)       

    Total download size: 137 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/1): vsftpd-2.0.5-12.el 100% |=========================| 137 kB    00:01   
    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
    Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    Is this ok [y/N]: y
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing: vsftpd                      ######################### [1/1]

    Installed: vsftpd.i386 0:2.0.5-12.el5
    Complete!
    [root@localhost ~]#
    2、将 /etc/vsftpd/user_list文件和/etc/vsftpd/ftpusers文件中的root这一行注释掉
    # root
    3、执行以下命令
    # setsebool -P ftpd_disable_trans=1 

    修改/etc/vsftpd/vsftpd.conf,在最后一行处添加local_root=/

    4service vsftpd  restart

    ftp服务器就可以使用了。

  • 相关阅读:
    安装virtualbox后无法上网
    win8 添加语言现象 (中英文切换路径)
    pre-condition & post-condition
    win8系统 host process for windows tasks has stopped working
    Chrome一直提醒要翻译网页
    百度首页导航设置
    停止windows8自动下载更新系统
    win8 添加开机启动项 (类似win7系统中开始->选择要启动的程序)
    扩展欧几里得定理
    UVA1583-Digit Generator(紫书例题3.5)
  • 原文地址:https://www.cnblogs.com/dpf-learn/p/7162020.html
Copyright © 2020-2023  润新知