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

關(guān)于linux服務(wù)器下vsftpd的一些問題

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

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

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

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

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

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

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

# 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認(rèn)證用到的*/
userlist_enable=YES
tcp_wrappers=YES
guest_enable=YES
guest_username=www /*注意這里.很有可能是因?yàn)槟愕挠脩魧?dǎo)致你的權(quán)限出問題*/
local_root=/home/www
anon_umask=022 /*這里是剛才上面提到的權(quán)限問題 */
</strong>

如果你已經(jīng)是使用了RAM認(rèn)證的.那么你可以參考下我的單個(gè)用戶的配置.文件如下
復(fù)制代碼 代碼如下:

<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>

相關(guān)文章

  • Linux文本處理命令sort詳解

    Linux文本處理命令sort詳解

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

    學(xué)習(xí)Centos7軟raid5的掛載

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

    Linux使用 iftop 實(shí)時(shí)監(jiān)控網(wǎng)卡的流量

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

    Linux靜態(tài)庫(kù)與動(dòng)態(tài)庫(kù)實(shí)例詳解

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

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

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

    linux系統(tǒng)Ansible自動(dòng)化運(yùn)維部署方法

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

    Linux使用VIM編輯器的方法

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

    Linux中配置雙機(jī)SSH信任 操作說明

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

    Linux下Python腳本自啟動(dòng)與定時(shí)任務(wù)詳解

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

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

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

最新評(píng)論

肇州县| 介休市| 鄱阳县| 西贡区| 长春市| 中超| 名山县| 金华市| 新化县| 蓝田县| 康马县| 泸定县| 东兰县| 定陶县| 阿巴嘎旗| 兰西县| 廊坊市| 精河县| 广水市| 滨州市| 白银市| 宜川县| 汝阳县| 治多县| 梅州市| 连云港市| 读书| 南岸区| 山东| 如皋市| 中宁县| 扎兰屯市| 和田县| 黄浦区| 色达县| 克东县| 腾冲县| 大石桥市| 淄博市| 洛扎县| 绥滨县|