Results 1 to 6 of 6
First of all, hello to all of you.
I am new to Debian and have come across many problems. Currently, I am working on my FTP server which is a ...
- 09-03-2006 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 19
ProFTPD problems
First of all, hello to all of you.
I am new to Debian and have come across many problems. Currently, I am working on my FTP server which is a ProFTPD server.
I have my desktop and my old pc as the server. They are connected to the Internet with a router. I use ssh to access my server for configuration.
I have a user named Jimmy which belongs to the group ftpuser. My config for ProFTPD:
ServerName "mydomainname.com"
ServerType inetd
DefaultServer on
Port 21
Umask 022
RequireValidShell off
User nobody
Group ftpuser
DefaultRoot ~ ftpuser
<Directory ~>
AllowOverwrite on
Umask 022 022
</Directory>
When I use a FTP client to access my FTP server I have the following problems:
1. I get 500 Illegal PORT command error message using active mode (PORT). how can i use active mode?
2. No error messages using passive mode (LIST), however, no matter active mode or passive mode, directory cannot be listed, cannot upload file and download file. how do I fix this?
Actually, what I want is using ftp to manage my home directory. I believe there are problems with my proftpd.conf. I have googled a lot and have read things like configureing the inetd.conf. just don't know what to do now.Last edited by lazyjimmy; 09-03-2006 at 03:24 PM. Reason: typo
- 09-03-2006 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
Hi
Please forgive me my english is very wrong!
"I believe there are problems with my proftpd.conf"
yes ,thats the problem.
the directory tag is only usable in global , anonymous , etc. sections.
you need create it in your proftpd.conf
for example:
ServerName "mydomainname.com"
ServerType inetd
DefaultServer on
Port 21
Umask 022
RequireValidShell off
DefaultRoot ~
User nobody
<Global>
User Jimmy
Group ftpuser
<Directory ~>
AllowOverwrite on
Umask 022 022
</Directory>
</Global>
this config will jail user "ftpuser" into the home directory of ftpuser
I suggest you , read the documentation .
install the proftpd-doc package with apt , and you will find the documentatio in /usr/shared/doc/proftpd-doc
and here is my proftpd.conf
ServerName "Anubys"
ServerType standalone
Port 21
DefaultServer on
ShowSymlinks on
PassivePorts 49152 50152
AllowForeignAddress on
DefaultRoot "/mnt/store/shared_data"
DefaultTransferMode ascii
MaxInstances 10
AllowOverwrite on
MultilineRFC2228 on
ServerIdent on "Tibi's ftp server on host ANUBYS"
IdentLookups on
RootRevoke on
TimeOutIdle 600
TimeOutLogin 300
TimeoutNoTransfer 300
#Umask 0222 0222
<Global /mnt/store/shared_data>
User friend
Group ftpuser
<Directory /mnt/store/shared_data>
<Limit LOGIN>
AllowGroup ftpuser
DenyGroup !ftpuser
AllowUser friend
DenyUser !friend
</Limit>
<Limit ALL>
AllowAll
</Limit>
<Limit DELE>
DenyAll
</Limit>
<Limit SITE_CHMOD>
AllowUser friend
AllowAll
</Limit>
GroupOwner ftpuser
UserOwner tibi
</Directory>
DeleteAbortedStores on
DefaultRoot "/mnt/store/shared_data"
DirFakeGroup on ftpuser
DirFakeUser on ftp
MaxClientsPerHost 3
MaxClientsPerUser 10
AllowStoreRestart on
AccessDenyMsg "A te kungfud nem eros
"
AllowOverwrite on
Umask 0002 0002
</Global>
<Anonymous /mnt/store/shared_data>
User anonymous
Group ftpuser
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
<Limit PORT RETR REST LIST NOOP>
AllowAll
</Limit>
</Directory>
<Limit LOGIN>
AllowGroup ftpuser
DenyGroup !ftpuser
</Limit>
DirFakeGroup on ftpuser
DirFakeUser on ftp
AccessDenyMsg "Sikertelen anonymous eleres. Login:anonymous ,Password:anonymous"
MaxClientsPerHost 1
MaxClientsPerUser 8
RequireValidShell off
AllowStoreRestart off
UserDirRoot on
Umask 0222 0222
</Anonymous>
"Actually, what I want is using ftp to manage my home directory"
If i think right u wana store your home directori on another computer, if its right the right way is Samba or NFS.
I hope i can help
- 09-04-2006 #3Just Joined!
- Join Date
- Sep 2006
- Posts
- 19
Thank you so much for the reply, iwanabeguru. That really helps me to understand more about configuring proftpd. I will refer to your setting and try to get it done.
- 10-06-2006 #4Just Joined!
- Join Date
- Oct 2006
- Posts
- 2
proftpd problems
My proftpd server accepts logins and transfers from any ftp client that I have tried.
But I have an application that attempts to retrieve a file from the server by logging in, changing to a specified directory, listing the files, and if a file(s) shows up in the list it fetches that file and then moves it to a history directory on the ftp server.
This only works about 30% of the time, but before moving the server to proftp it worked 100% of the time.
When it does not work, it reports that there are no files present on the server.
Yet, I can log in with a ftp client and see the files, retrieve them, delete them, etc.
Can anyone give me an idea why this might not be working?
Thanks in advance for your help.
RCS
- 10-06-2006 #5Just Joined!
- Join Date
- Sep 2006
- Posts
- 19
maybe you should post your config here.
- 10-06-2006 #6Just Joined!
- Join Date
- Oct 2006
- Posts
- 2
OK, thanks and you are right!
Here is the proftpd.conf file
------------------------ Paste ------------------------------------------
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
# 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 111
# 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 maximum number of processes per service
# (such as xinetd).
MaxInstances 50
# Set the user and group under which the server will run.
User ftp
Group ftp
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
# <Limit SITE_CHMOD>
# DenyAll
# </Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
# <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>
------------- End of Paste -------------------------------------
I hope you can help me!
Thanks
rcs


Reply With Quote
