麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 服務器 > Ftp服務器 > 正文

vsftpd.conf配置詳解

2024-09-09 20:58:44
字體:
來源:轉載
供稿:網(wǎng)友
vsftpd.conf配置詳解根據(jù)/etc/vsftpd/vsftpd.conf默認配置給出設定功能# Example config file /etc/vsftpd/vsftpd.conf# The default compiled in settings are fairly paranoid. This sample file# loosens things up a bit, to make the ftp daemon more usable.# Please see vsftpd.conf.5 for all compiled in defaults.# READ THIS: This example file is NOT an exhaustive list of vsftpd options.# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's# capabilities.# 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允許使用任何可以修改文件系統(tǒng)的FTP的指令# Default umask for local users is 077. You may wish to change this to 022,# if your users expect that (022 is used by most other ftpd's)local_umask=022本地用戶新增檔案的權限# Uncomment this to allow the anonymous FTP user to upload files. This only# has an effect if the above global write enable is activated. Also, you will# obviously need to create a directory writable by the FTP user.#anon_upload_enable=YES允許匿名用戶上傳文件# Uncomment this if you want the anonymous FTP user to be able to create# new directories.#anon_mkdir_write_enable=YES允許匿名用戶創(chuàng)建新目錄# Activate directory messages - messages given to remote users when they# go into a certain directory.dirmessage_enable=YES允許為目錄配置顯示信息,顯示每個目錄下面的message_file文件的內容# Activate logging of uploads/downloads.xferlog_enable=YES開啟日記功能# Make sure PORT transfer connections originate from port 20 (ftp-data).connect_from_port_20=YES使用標準的20端口來連接ftp# 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#chown_username=whoever匿名上傳文件所屬用戶名# You may override where the log file goes if you like. The default is shown# below.#xferlog_file=/var/log/vsftpd.log日志文件位置# If you want, you can have your log file in standard ftpd xferlog formatxferlog_std_format=YES使用標準格式# You may change the default value for timing out an idle session.#idle_session_timeout=600空閑連接超時# You may change the default value for timing out a data connection.#data_connection_timeout=120數(shù)據(jù)傳輸超時# It is recommended that you define on your system a unique user which the# ftp server can use as a totally isolated and unPRivileged user.#nopriv_user=ftpsecure當服務器運行于最底層時使用的用戶名# Enable this and the server will recognise asynchronous ABOR requests. Not# recommended for security (the code is non-trivial). Not enabling it,# however, may confuse older FTP clients.#async_abor_enable=YES允許使用/"asyncABOR/"命令,一般不用,容易出問題# By default the server will pretend to allow ASCII mode but in fact ignore# the request. Turn on the below options to have the server actually do ASCII# mangling on files when in ASCII mode.# Beware that on some FTP servers, ASCII support allows a denial of service# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd# predicted this attack and has always been safe, reporting the size of the# raw file.# ASCII mangling is a horrible feature of the protocol.#ascii_upload_enable=YES管控是否可用ASCII模式上傳。默認值為NO#ascii_download_enable=YES管控是否可用ASCII模式下載。默認值為NO# You may fully customise the login banner string:#ftpd_banner=Welcome to blah FTP service.login時顯示歡迎信息.如果設置了banner_file則此設置無效# You may specify a file of disallowed anonymous e-mail addresses. Apparently# useful for combatting certain DoS attacks.#deny_email_enable=YES如果匿名用戶需要密碼,那么使用banned_email_file里面的電子郵件地址的用戶不能登錄# (default follows)#banned_email_file=/etc/vsftpd/banned_emails禁止使用匿名用戶登陸時作為密碼的電子郵件地址# 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_list_enable=YES如果啟動這項功能,則所有列在chroot_list_file中的使用者不能更改根目錄# (default follows)#chroot_list_file=/etc/vsftpd/chroot_list定義不能更改用戶主目錄的文件# You may activate the "-R" option to the builtin ls. This is disabled by# default to avoid remote users being able to cause excessive I/O on large# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume# the presence of the "-R" option, so there is a strong case for enabling it.#ls_recurse_enable=YES是否能使用ls-R命令以防止浪費大量的服務器資源# 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綁定到listen_port指定的端口,既然都綁定了也就是每時都開著的,就是那個什么standalone模式# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6# sockets, you must run two copies of vsftpd whith two configuration files.# Make sure, that one of the listen options is commented !!#listen_ipv6=YESpam_service_name=vsftpd定義PAM所使用的名稱,預設為vsftpduserlist_enable=YES若啟用此選項,userlist_deny選項才被啟動tcp_wrappers=YES開啟tcp_wrappers支持過濾掉那些注釋,以便我們日后修改配置,大家可以刪除vsftpd.conf內容,拷貝以下:anonymous_enable=YESlocal_enable=YESwrite_enable=YESlocal_umask=022#anon_upload_enable=YES#anon_mkdir_write_enable=YESdirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=YES#chown_uploads=YES#chown_username=whoever#xferlog_file=/var/log/vsftpd.logxferlog_std_format=YES#idle_session_timeout=600#data_connection_timeout=120#nopriv_user=ftpsecure#async_abor_enable=YES#ascii_upload_enable=YES#ascii_download_enable=YES#ftpd_banner=Welcome to blah FTP service.#deny_email_enable=YES#banned_email_file=/etc/vsftpd/banned_emails#chroot_list_enable=YES#chroot_list_file=/etc/vsftpd/chroot_list#ls_recurse_enable=YESlisten=YES#listen_ipv6=YESpam_service_name=vsftpduserlist_enable=YEStcp_wrappers=YES
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: av成人在线电影 | 中文字幕www. | 一区二区免费看 | 久久久久久久久久久久免费 | 91短视频在线观看视频 | 日韩欧美中文字幕视频 | 欧美一级高潮片免费的 | 亚洲精品一区二区三区在线看 | 精品三级内地国产在线观看 | 久色porn| 精品亚洲夜色av98在线观看 | 亚洲精中文字幕二区三区 | 一级做a爱片性色毛片高清 日本一区二区在线看 | 久久久久久久久日本理论电影 | 一级黄色免费大片 | 少妇一级淫片免费放正片 | 国外成人在线视频 | 91九色视频观看 | 中文字幕在线观看精品 | 国产精品久久久久久久久久尿 | 91久久综合 | 一区二区三区在线观看免费视频 | 久草视频福利在线观看 | 午夜精品久久久久久久99热浪潮 | 成人福利在线视频 | 欧美一级美国一级 | 日日噜噜夜夜爽 | 91成人影库 | 97se亚洲综合在线韩国专区福利 | 精品一区二区在线观看视频 | 欧洲精品久久 | 最新福利在线 | 538任你躁在线精品视频网站 | 亚洲片在线观看 | 亚洲精品自在在线观看 | 成人精品免费看 | 黄色网址在线免费播放 | 激情小说激情电影 | 午夜国产福利 | 新久草在线视频 | 日本在线播放一区二区三区 |