当前位置: 技术问答>linux和unix
在线等 !proftp的上传问题
来源: 互联网 发布时间:2015-04-02
本文导语: 下面是我的proftp.conf配置文件 我为什么不能上传文件到每个用户的public_html目录下? 请指教! # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a singl...
下面是我的proftp.conf配置文件
我为什么不能上传文件到每个用户的public_html目录下?
请指教!
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Ftp Default Server"
#ServerIdent on "FTP Server ready."
#ServerAdmin root@localhost
#Set the mode proftpd runs in
ServerType standalone
# Set the default server
DefaultServer on
#AccessGrantMsg "User %u logged in."
#Set the file to display on login
DisplayLogin .ftpmotd
#Set the file to display on quit
DisplayQuit .ftpgoaway
#Don't show welcome message until user has authenticated
DeferWelcome on
#Sets default chroot directory
DefaultRoot ~/public_html
# Use this to excude users from the chroot
DefaultChdir /
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off
# Sets the idle connection timeout,Setting TimeoutIdle to 0 disables the idle timer completely
TimeoutIdle 120
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Default to show dot files in directory listings
#LsDefaultOptions "-a"
#Limits the connections per client machine
MaxClientsPerHost 100
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# This is where we want to put the pid file
ScoreboardPath /var/run
# Set the user and group that the server normally runs at.
User ftp
Group ftp
AllowOverwrite yes
AllowAll
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
#allow login from all ip address
Order Deny,Allow
Allow from all
# Limit the maximum number of anonymous logins
MaxClients 100 "Sorry, max %m users -- try again later"
# Logging options
TransferLog /var/spool/syslog/proftpd/xferlog.legacy
# Some logging formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"
# A basic anonymous configuration, no upload directories.
User ftp
Group ftp
UserAlias anonymous ftp
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
AccessGrantMsg "Anonymous login ok, restrictions apply."
# Put the user into / right after login
DefaultChdir /
DisplayLogin /.ftpmotd
DisplayQuit /.ftpgoaway
DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
# An upload directory that allows storing files but not retrieving
# or creating directories.
AllowOverwrite yes
DenyAll
AllowAll
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Loggin for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
我为什么不能上传文件到每个用户的public_html目录下?
请指教!
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Ftp Default Server"
#ServerIdent on "FTP Server ready."
#ServerAdmin root@localhost
#Set the mode proftpd runs in
ServerType standalone
# Set the default server
DefaultServer on
#AccessGrantMsg "User %u logged in."
#Set the file to display on login
DisplayLogin .ftpmotd
#Set the file to display on quit
DisplayQuit .ftpgoaway
#Don't show welcome message until user has authenticated
DeferWelcome on
#Sets default chroot directory
DefaultRoot ~/public_html
# Use this to excude users from the chroot
DefaultChdir /
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off
# Sets the idle connection timeout,Setting TimeoutIdle to 0 disables the idle timer completely
TimeoutIdle 120
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Default to show dot files in directory listings
#LsDefaultOptions "-a"
#Limits the connections per client machine
MaxClientsPerHost 100
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# This is where we want to put the pid file
ScoreboardPath /var/run
# Set the user and group that the server normally runs at.
User ftp
Group ftp
AllowOverwrite yes
AllowAll
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
#allow login from all ip address
Order Deny,Allow
Allow from all
# Limit the maximum number of anonymous logins
MaxClients 100 "Sorry, max %m users -- try again later"
# Logging options
TransferLog /var/spool/syslog/proftpd/xferlog.legacy
# Some logging formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"
# A basic anonymous configuration, no upload directories.
User ftp
Group ftp
UserAlias anonymous ftp
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
AccessGrantMsg "Anonymous login ok, restrictions apply."
# Put the user into / right after login
DefaultChdir /
DisplayLogin /.ftpmotd
DisplayQuit /.ftpgoaway
DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
# An upload directory that allows storing files but not retrieving
# or creating directories.
AllowOverwrite yes
DenyAll
AllowAll
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Loggin for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
|
DenyAll
这个不就说明 permission denied 的原因了吗?
|
先说说你的用户能不能登陆?