欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

ftp的常用配置文件參數(shù)

這篇文章主要介紹“ftp的常用配置文件參數(shù)”,在日常操作中,相信很多人在ftp的常用配置文件參數(shù)問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”ftp的常用配置文件參數(shù)”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!

創(chuàng)新互聯(lián)建站自2013年創(chuàng)立以來(lái),先為蒙城等服務(wù)建站,蒙城等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為蒙城企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問(wèn)題。

ftp用戶:

    系統(tǒng)用戶

    匿名用戶---->系統(tǒng)用戶 

    虛擬用戶---->系統(tǒng)用戶

ftp用戶的默認(rèn)訪問(wèn)目錄:

    匿名用戶訪問(wèn)目錄:/var/ftp

    系統(tǒng)用戶的訪問(wèn)目錄:用戶的家目錄

安全通信方式

    ftps: ftp+ssl/tls

    sftp: OpenSSH,SubSystem,sftp(SSH)

1 安裝軟件

[root@CnBJYwz01QNmoSmokepingL01 ~]# yum -y install vsftpd

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirrors.btte.net

 * epel: mirrors.aliyun.com

 * extras: mirrors.btte.net

 * updates: mirrors.btte.net

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package vsftpd.x86_64 0:2.2.2-21.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================

 Package                                 Arch                                    Version                                          Repository                             Size

==============================================================================================================================================================================

Installing:

 vsftpd                                  x86_64                                  2.2.2-21.el6                                     base                                  155 k

Transaction Summary

==============================================================================================================================================================================

Install       1 Package(s)

Total download size: 155 k

Installed size: 340 k

Downloading Packages:

vsftpd-2.2.2-21.el6.x86_64.rpm                                                                                                                         | 155 kB     00:00     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : vsftpd-2.2.2-21.el6.x86_64                                                                                                                                 1/1 

  Verifying  : vsftpd-2.2.2-21.el6.x86_64                                                                                                                                 1/1 

Installed:

  vsftpd.x86_64 0:2.2.2-21.el6                                                                                                                                                

Complete!

[root@CnBJYwz01QNmoSmokepingL01 ~]# rpm -ql vsftpd

/etc/logrotate.d/vsftpd

/etc/pam.d/vsftpd

/etc/rc.d/init.d/vsftpd

/etc/vsftpd

/etc/vsftpd/ftpusers

/etc/vsftpd/user_list

/etc/vsftpd/vsftpd.conf

/etc/vsftpd/vsftpd_conf_migrate.sh

/usr/sbin/vsftpd

/usr/share/doc/vsftpd-2.2.2

.......

/var/ftp             //ftp服務(wù)的根目錄

/var/ftp/pub

2 啟動(dòng)服務(wù)

[root@CnBJYwz01QNmoSmokepingL01 ~]# /etc/init.d/vsftpd start

Starting vsftpd for vsftpd:                                [  OK  ]

[root@CnBJYwz01QNmoSmokepingL01 ~]# chkconfig vsftpd on

[root@CnBJYwz01QNmoSmokepingL01 ~]#

3 測(cè)試登陸

匿名登陸ftp服務(wù)器

localhost:~ ray$ ftp 192.168.2.141

Connected to 192.168.2.141.

220 (vsFTPd 2.2.2)

Name (192.168.2.141:ray): anonymous

331 Please specify the password.

Password: 

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> 

ftp> help

Commands may be abbreviated.  Commands are:

!        features    mls        prompt        site

$        fget        mlsd        proxy        size

account        form        mlst        put        sndbuf

append        ftp        mode        pwd        status

ascii        gate        modtime        quit        struct

bell        get        more        quote        sunique

binary        glob        mput        rate        system

bye        hash        mreget        rcvbuf        tenex

case        help        msend        recv        throttle

cd        idle        newer        reget        trace

cdup        image        nlist        remopts        type

chmod        lcd        nmap        rename        umask

close        less        ntrans        reset        unset

cr        lpage        open        restart        usage

debug        lpwd        page        rhelp        user

delete        ls        passive        rmdir        verbose

dir        macdef        pdir        rstatus        xferbuf

disconnect    mdelete        pls        runique        ?

edit        mdir        pmlsd        send

epsv4        mget        preserve    sendport

exit        mkdir        progress    set

ftp> 

系統(tǒng)用戶登陸

[localhost:~ ray$ ftp 192.168.2.142

Connected to 192.168.2.142.

220 (vsFTPd 2.2.2)

Name (192.168.2.142:ray): ray

331 Please specify the password.

Password: 

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> 

ftp> 

ftp> ls

229 Entering Extended Passive Mode (|||59706|).

150 Here comes the directory listing.

226 Directory send OK.

ftp> 

ftp> pwd

Remote directory: /home/ray

ftp>

4 常用配置文件參數(shù)

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).

anonymous_enable=YES  #是否允許匿名用戶登陸

# Uncomment this to allow local users to log in.

local_enable=YES      #是否允許本地的系統(tǒng)用戶登陸

# Uncomment this to enable any form of FTP write command.

write_enable=YES      #是否允許上傳文件

anon_upload_enable=YES  #是否允許匿名用戶上傳文件,打開(kāi)上傳權(quán)限。注意:最終文件能否上傳成功,取決于文件系統(tǒng)權(quán)限和文件共享權(quán)限

anon_mkdir_write_enable=YES  #是否允許匿名用戶創(chuàng)建目錄

anon_other_write_enable=YES  #是否允許匿名用戶其他寫(xiě)動(dòng)作,如:刪除和修改

# Activate directory messages - messages given to remote users when they

# go into a certain directory.

dirmessage_enable=YES        #當(dāng)用進(jìn)入目錄,是否顯示歡迎信息

# The target log file can be vsftpd_log_file or xferlog_file.

# This depends on setting xferlog_std_format parameter

xferlog_enable=YES            #是否打開(kāi)傳輸日志,記錄上傳下載的操作命令

# The name of log file when xferlog_enable=YES and xferlog_std_format=YES

# WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log

xferlog_file=/var/log/xferlog       #指定傳輸日志的路徑

# If you want, you can arrange for uploaded anonymous files to be owned by

# a different user. Note! Using "root" for uploaded files is not

# recommended!

#chown_uploads=YES                   #是否允許上傳文件完,修改用戶屬組

#chown_username=whoever              #文件上傳完,修改成用戶屬性

# You may change the default value for timing out an idle session.

#idle_session_timeout=600            #超時(shí)時(shí)間,控制連接

#

# You may change the default value for timing out a data connection.

#data_connection_timeout=120          #超時(shí)時(shí)間,數(shù)據(jù)連接

# You may specify an explicit list of local users to chroot() to their home

# directory. If chroot_local_user is YES, then this list becomes a list of

# users to NOT chroot().

#chroot_local_user=YES                #是否將所有用戶限制在主目錄,YES為啟用 NO禁用.(該項(xiàng)默認(rèn)值是NO,即在安裝vsftpd后不做配置的話,ftp用戶是可以向上切換到要目錄之外的)

#chroot_list_enable=YES               #是否允許啟用限制用戶名單

# (default follows)

#chroot_list_file=/etc/vsftpd/chroot_list      #禁錮用戶列表,文件需要主動(dòng)創(chuàng)建

# When "listen" directive is enabled, vsftpd runs in standalone mode and

# listens on IPv4 sockets. This directive cannot be used in conjunction

# with the listen_ipv6 directive.

listen=YES                            #是否為獨(dú)立守護(hù)進(jìn)程

userlist_enable=YES                   #是否啟用/etc/vsftpd/user_list名單

userlist_deny=YES                     #yes表示/etc/vsftpd/user_list為黑名單,no為白名單,

#If vsftpd is in standalone mode, this is the maximum number of clients which may be connected. Any additional clients connecting will get an error message.  The value 0 switches off the limit.

max_clients                   #限制最大客戶端數(shù)量

#If vsftpd is in standalone mode, this is the maximum number of clients which may be connected from the same source internet address. A  client  will get an error message if they go over this limit. The value 0 switches off the limit.

max_per_ip                    #限制相同IP的連接客戶端數(shù)量

對(duì)于ftp用戶訪問(wèn)ftp服務(wù)時(shí)應(yīng)該對(duì)其chroot

          禁錮用戶于其家目錄中

               chroot_local_user={Yes|No}

               chroot_list_enable={YES|NO}

               chroot_list_file=/etc/vsftpd/chroot_list

                    每行一個(gè)用戶

     匿名用戶的配置:

          anonymous_enable=YES

          anon_upload_enable=YES

          anon_other_write_enable=YES

          anon_mkdir_write_enable=YES

          注意:?jiǎn)⒂脤?xiě)入功能時(shí),ftp用戶對(duì)相應(yīng)的本地文件系統(tǒng)也有相應(yīng)的寫(xiě)入權(quán)限;

               生效的權(quán)限取決于文件系統(tǒng)權(quán)限和服務(wù)權(quán)限的交集;

     歡迎信息的定義:

          banner_file=/path/to/some_banner_file

          ftp_banner=some string

          dirmessage_enable=yes

               在某ftp可訪問(wèn)的目錄下創(chuàng)建.messages文件

     vsftp控制登錄用戶的機(jī)制:

          /etc/vsftpd/ftpusers中的用戶都不允許使用ftp服務(wù), 這是在/etc/pam.d/vsftpd中定義;

          user_list配置文件有兩種用法:

               黑名單:

                    userlist_enable=YES

                    userlist_deny=YES

               白名單

                    userlist_enable=YES

                    userlist_deny=NO

     連接限制:

          max_clients: 最大并發(fā)連接數(shù)

          max_per_ip: 每IP可同時(shí)發(fā)起并發(fā)請(qǐng)求

     傳輸速率:

          anon_max_rate: 匿名用戶的最大傳輸速率,單位是“字節(jié)/秒”;

          local_max_rate: 本地用戶……………………

     上傳文件的umask:

          anno_umask: 匿名用戶上傳文件的umask;

          local_umask:

     修改匿名用戶上傳文件的屬主和屬組:

          chown_uploads=YES

          chown_username=someuser

     虛擬用戶:

          所有的虛擬用戶會(huì)映射會(huì)一個(gè)系統(tǒng)用戶,訪問(wèn)時(shí)的文件目錄是為此系統(tǒng)用戶的家目錄;

          虛擬用戶:

               hash編碼的文件:

                    奇數(shù)行為用戶名,偶數(shù)行為密碼

               關(guān)系型數(shù)據(jù)庫(kù):

                    pam-MySQL實(shí)現(xiàn)認(rèn)證

到此,關(guān)于“ftp的常用配置文件參數(shù)”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!

新聞名稱:ftp的常用配置文件參數(shù)
鏈接URL:http://aaarwkj.com/article40/gopdho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)品牌網(wǎng)站建設(shè)、搜索引擎優(yōu)化軟件開(kāi)發(fā)、商城網(wǎng)站、關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)
日韩女同一区二区三区在线观看| 国产一区二区不卡在线播放| 伊人激情久久综合中文字幕| 哈昂~不要啊在线观看| 欧美精品一区二区亚洲| 久久伊人亚洲中文字幕| 97国产一区二区精品久久呦| 亚洲综合五月天色婷婷| 二区三区在线欧美日韩| 亚洲香蕉视频在线播放| 三级视频一区二区三区| 国产一区二区日本在线| 黑丝美女被内射视频免费观看| 丝袜美腿亚洲欧美日韩| 日韩久久精品五月综合| 国产精品久久一国产精品| 国产女主播福利在线播放| 青青草av一区二区三区| 99热免费精品在线观看| 激情欧美一区二区三区精品| 中文字幕欧美精品日韩人妻| 亚洲av日韩高清在线观看| 超碰欧美黄色免费在线| 亚洲精品一区二区牛仔裤| 91在线播放国产视频| 粉嫩美女精品一区二区| 日韩精品高清中文字幕| 一区二区三区特黄色片| 色婷婷国产精品久久包臀| 中文字幕人成乱码在线| 偷拍一区二区三区夫妻| 国产原创剧情免费观看av| 欧美激情另类综合国内| 不卡视频在线免费观看| 三级国产大片在线观看| 中文免费在线观看av| 日韩高清av一区二区| 国产在线成年人免费观看| 亚洲青青草原一区二区| 99国产精品久久久久久| 日本免费精品一区二区三区中|