最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

關于linux服務器下vsftpd的一些問題

 更新時間:2010年06月04日 21:41:30   作者:  
針對我自己本身出現(xiàn)的問題,將高人與我的QQ聊天記錄整理了一份,然后再加上實際的操作.終于讓我大徹大悟.現(xiàn)在與大家狠狠的分享這位高人的成果.
前段時間碰到一位牛B的人物,幫我修正了vsftpd基于PAM認證的問題.今天又碰到N個問題,比如Access denied. 和403錯誤,無法上傳文件等等之類的錯誤.于是,只好請這個高人再次出馬,幫忙再次修正.很感謝這位牛B人物.在利益大于一切的這個X蛋的社會,還能為了咱們這群小菜鳥去分析N個文件..這種精神實在是值得佩服.

針對我自己本身出現(xiàn)的問題,將高人與我的QQ聊天記錄整理了一份,然后再加上實際的操作.終于讓我大徹大悟.現(xiàn)在與大家狠狠的分享這位高人的成果.

用戶上傳文件訪問出現(xiàn)403或者Access denied.

解答:這個主要是權限問題,在用戶vsftpd.conf中加上:anon_umask=022或者anon_umask=133,022指755權限.133指644權限,再將給權限給該文件chmod 644 XX.php或者chmod 644 name

用戶無法上傳文件,出現(xiàn)550或者是553錯誤

可能是用戶組有問題.比如你的網站用www這個用戶來訪問,那么就將vsftpd.conf中的guest_username=XXX改成www

另外貼出來我的vsftpd的配置文件:
復制代碼 代碼如下:

# 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=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# 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
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# The target log file can be vsftpd_log_file or xferlog_file.
# This depends on setting xferlog_std_format parameter
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# 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
#
# 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
#
# Switches between logging into vsftpd_log_file and xferlog_file files.
# NO writes to vsftpd_log_file, YES to xferlog_file
xferlog_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
#
# 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
#
# 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_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (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
# (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
#
# 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
#
# 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=YES
pam_service_name=vsftpd
<strong>user_config_dir=/etc/vsftpd/user_config_dir /*基于PAM認證用到的*/
userlist_enable=YES
tcp_wrappers=YES
guest_enable=YES
guest_username=www /*注意這里.很有可能是因為你的用戶導致你的權限出問題*/
local_root=/home/www
anon_umask=022 /*這里是剛才上面提到的權限問題 */
</strong>

如果你已經是使用了RAM認證的.那么你可以參考下我的單個用戶的配置.文件如下
復制代碼 代碼如下:

<strong>anon_world_readable_only=NO
write_enable=YES
anon_upload_enable=YES
anon_other_write_enable=YES
local_root=/var/public
anon_mkdir_write_enable=YES
</strong>

相關文章

  • Linux文本處理命令sort詳解

    Linux文本處理命令sort詳解

    今天小編就為大家分享一篇關于Linux文本處理命令sort詳解,小編覺得內容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-03-03
  • 學習Centos7軟raid5的掛載

    學習Centos7軟raid5的掛載

    本篇文章給大家通過詳細步驟介紹了Centos7軟raid5的掛載的方法,有需要的讀者們學習下吧。
    2018-02-02
  • Linux使用 iftop 實時監(jiān)控網卡的流量

    Linux使用 iftop 實時監(jiān)控網卡的流量

    iftop可以用來監(jiān)控網卡的實時流量(可以指定網段)、反向解析IP、顯示端口信息等。這篇文章主要介紹了Linux 實時網卡流量監(jiān)控,需要的朋友可以參考下
    2019-11-11
  • Linux靜態(tài)庫與動態(tài)庫實例詳解

    Linux靜態(tài)庫與動態(tài)庫實例詳解

    這篇文章主要介紹了 Linux靜態(tài)庫與動態(tài)庫實例詳解的相關資料,希望通過本文能幫助到大家,讓大家理解掌握這部分內容,需要的朋友可以參考下
    2017-10-10
  • Linux命令 sort、uniq、tr工具詳解

    Linux命令 sort、uniq、tr工具詳解

    這篇文章主要介紹了Linux命令 sort、uniq、tr工具詳解,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-07-07
  • linux系統(tǒng)Ansible自動化運維部署方法

    linux系統(tǒng)Ansible自動化運維部署方法

    在本篇文章里小編給大家整理了關于linux系統(tǒng)Ansible自動化運維部署方法以及知識點總結,需要的朋友們參考下。
    2019-06-06
  • Linux使用VIM編輯器的方法

    Linux使用VIM編輯器的方法

    今天小編就為大家分享一篇關于使用vim編輯器,提高編輯效率的文章,小編覺得內容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2018-09-09
  • Linux中配置雙機SSH信任 操作說明

    Linux中配置雙機SSH信任 操作說明

    本篇文章小編為大家介紹,Linux中配置雙機SSH信任 操作說明。需要的朋友參考下
    2013-04-04
  • Linux下Python腳本自啟動與定時任務詳解

    Linux下Python腳本自啟動與定時任務詳解

    這篇文章主要給大家介紹了關于Linux下Python腳本自啟動與定時任務的相關資料,文中通過示例代碼介紹的非常詳細,對大家學習或者使用python具有一定的參考學習價值,需要的朋友們下面跟著小編來一起學習學習吧。
    2017-08-08
  • Vmvare虛擬機給ubuntu根目錄分區(qū)介紹

    Vmvare虛擬機給ubuntu根目錄分區(qū)介紹

    大家好,本篇文章主要講的是Vmvare虛擬機給ubuntu根目錄分區(qū)介紹,感興趣的同學趕快來看一看吧,對你有幫助的話記得收藏一下,方便下次瀏覽
    2021-12-12

最新評論

大新县| 江华| 无棣县| 德安县| 阳城县| 远安县| 赫章县| 巴林右旗| 资源县| 吉隆县| 河曲县| 遂昌县| 新兴县| 昭苏县| 巴楚县| 体育| 双辽市| 永吉县| 田阳县| 澄迈县| 上犹县| 莱州市| 宣汉县| 泸水县| 蓬溪县| 青田县| 郓城县| 鸡泽县| 南江县| 尤溪县| 七台河市| 宁国市| 汾西县| 巫山县| 衡南县| 通辽市| 兴业县| 苏州市| 承德市| 萨嘎县| 永济市|