歡迎您光臨本站 註冊首頁

ftp伺服器匿名訪問配配置文檔(for linux平台)

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

ftp伺服器匿名訪問配配置文檔(for linux平台)

.配置yum,以便安裝軟體包

yum全局文件編輯目錄

: /etc/yum.repos.d/rhel-source.repo

[root@wanghong ~]# vim //etc/yum.repos.d/rhel-source.repo

#[rhel-source]

#name=Red Hat Enterprise Linux $releasever - $basearch - Source

#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/

#enabled=0

#gpgcheck=1

#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

#[rhel-source-beta]

#name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source

#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/

#enabled=0

#gpgcheck=1

#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[wanghong]

Name=123

Baseurl=file:///mnt/Server

enable=1

gpgcheck=0

備註: #是註釋作用,在此對文件沒用任何影響,可以去掉

二.安裝ftp

服務軟體包,配置ftp服務

1.ftp服務軟體包名:vsftpd-2.2.2-6.el6_0.1.i686.rpm

[root@wanghong ~]#yum install vsftpd

2.配置目錄文件

/etc/vsftpd/vsftpd.conf

[root@wanghong ~]#vim /etc/vsftpd/vsftpd.conf

anonymous_enable=YES

local_enable=NO

write_enable=YES

local_umask=022

anon_upload_enable=YES

anon_mkdir_write_enable=YES

dirmessage_enable=YES

xferlog_enable=YES

connect_from_port_20=YES

xferlog_std_format=YES

listen=YES

download_enable=YES

pam_service_name=vsftpd

userlist_enable=NO

tcp_wrappers=YES

anon_other_write_enable=YES

備註: 紅色區域為修改增加部份,請參照上述文件部署

3.客戶端進行測試

,訪問ftp://192.168.2.3

測試內容: 是否能上創建文件夾,上傳文件,修改文件(重命名

,刪除),下載文件內容

注意:該文件或目錄的許可權可根據自己的需要去設置(一般為707)

本文出自 「學海無涯苦作舟!」 博客,謝絕轉載!


[火星人 ] ftp伺服器匿名訪問配配置文檔(for linux平台)已經有550次圍觀

http://coctec.com/docs/linux/show-post-47650.html