c***@ccs.covici.com
2016-02-29 20:41:25 UTC
Hi. I have a situation where I want to have an ftp server where each
user has his own password but they all wind up in the same directory and
can upload and download to that directory.
So, what I did I used proftpd and added a virtual host and since I only
have one ip address, I added a port command and a defaultroot command
like this
<virtualhost ftp.covici.com>
port 2121
umask 007
defaultroot /home/krn_to_transcribe ftpgroup
</virtualhost>
so, I logged in with a user and it logged in successfully, but when I
tried to even list the directory, it would time out. Firewall rules
look OK, so I wonder what is happening here?
Here is my complete config:
# 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 anonymous access.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit the maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User proftpd
Group proftpd
<global>
RequireValidShell off
AuthPAM off
#AuthPAMConfig ftp
# Port 21 is the standard FTP port.
PassivePorts 49152 49552
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Normally, we want files to be overwriteable.
#<Directory />
AllowOverwrite on
#</Directory>
DefaultRoot ~ !covici
</global>
# A basic anonymous configuration, with no upload directories.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp".
# UserAlias anonymous ftp
# Limit the maximum number of anonymous logins.
# MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot.
# <Limit WRITE>
# DenyAll
# </Limit>
#</Anonymous>
<virtualhost ftp.covici.com>
port 2121
umask 007
defaultroot /home/krn_to_transcribe ftpgroup
</virtualhost>
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
***@ccs.covici.com
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
user has his own password but they all wind up in the same directory and
can upload and download to that directory.
So, what I did I used proftpd and added a virtual host and since I only
have one ip address, I added a port command and a defaultroot command
like this
<virtualhost ftp.covici.com>
port 2121
umask 007
defaultroot /home/krn_to_transcribe ftpgroup
</virtualhost>
so, I logged in with a user and it logged in successfully, but when I
tried to even list the directory, it would time out. Firewall rules
look OK, so I wonder what is happening here?
Here is my complete config:
# 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 anonymous access.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit the maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User proftpd
Group proftpd
<global>
RequireValidShell off
AuthPAM off
#AuthPAMConfig ftp
# Port 21 is the standard FTP port.
PassivePorts 49152 49552
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Normally, we want files to be overwriteable.
#<Directory />
AllowOverwrite on
#</Directory>
DefaultRoot ~ !covici
</global>
# A basic anonymous configuration, with no upload directories.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp".
# UserAlias anonymous ftp
# Limit the maximum number of anonymous logins.
# MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot.
# <Limit WRITE>
# DenyAll
# </Limit>
#</Anonymous>
<virtualhost ftp.covici.com>
port 2121
umask 007
defaultroot /home/krn_to_transcribe ftpgroup
</virtualhost>
Thanks in advance for any suggestions.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
***@ccs.covici.com
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
ProFTPD Users List <proftpd-***@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html