LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2003, 07:34 AM   #1
guc
Member
 
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
Question proftpd config challenge


Be the winner of the challenge by be´ng the first person to reply with the REAL SOLUTION and not just the first reply.

Here the thing:

keep getting the error: Fatal: </Directory>: directive not allowed in <Limit> context


CONFIG:
---------------------------------------------------------------------------------

#Serverinfo:

ServerName "GUC's personal ftpserver on ProFtpD"
ServerType standalone
DefaultRoot /mnt/hdd


#Explinations about the following settings can be found at #http://www.proftpd.org/doc/directive.../by-name.html:

DefaultServer on
DeferWelcome on
ServerIdent off
DeleteAbortedStores on
HiddenStor on
CDPath /mnt/hdd/
DisplayConnect /etc/ftpmessages/.connect
DisplayLogin /etc/ftpmessages/.login
DisplayQuit /etc/ftpmessages/.quit
MaxClientsPerUser 5
MaxConnectionRate 3
MaxLoginAttempts 3


Port to listen to:
Port 9876


# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022


# To prevent DoS attacks, set the maximum number = 30

MaxInstances 20


# The user and usergroup that the server runs at:

User nobody
Group nogroup


#Loglocations:

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog



# DIRECTORY SETTINGS

<Directory /mnt/hdd/private/>
<Limit DenyGroup>ftpusers</Limit>
</Directory>


<Directory /mnt/hdd/lost+found/>
<Limit DenyGroup>ftpusers</Limit>
<Limit ALL>DenyAll</Limit>
</Directory>


<Directory /mnt/hdd/ftp/upload/>
<Limit ALL SITE_CHMOD>IgnoreHidden on</Limit>
AllowStoreRestart

<Limit ALL>DenyAll</Limit>
<Limit DIRS>AllowAll</Limit>
<Limit MKD STOR XMKD RNTO>AllowAll</Limit>
</Directory>


<Directory /mnt/hdd/ftp/download/>
<Limit ALL SITE_CHMOD>IgnoreHidden on</Limit>
AllowRetrieveRestart

<Limit ALL>DenyAll</Limit>
<Limit READ>AllowAll</Limit>
<Limit DIRS>AllowAll</Limit>
<Limit RNFR>DenyAll</Limit>
</Directory>


-----------------------------------------------------------------------------------

Looks quite flawless isn't it ? But why won't it work ?!?!?!

 
Old 07-30-2003, 09:40 AM   #2
guc
Member
 
Registered: Jul 2003
Posts: 34

Original Poster
Rep: Reputation: 15
Thumbs up

hmm guess i win myself

strangly enough <limi> and </limit> are to be put on different lines

this is how it is running atm:

---------------------------------------------

#Serverinfo:

ServerName "GUC's personal ftpserver on ProFtpD"
ServerType standalone
DefaultRoot /mnt/hdd


#Explinations about the following settings can be found at http://www.proftpd.org/doc/directive...d/by-name.html :

DefaultServer on
DeferWelcome on
ServerIdent off
DeleteAbortedStores on
HiddenStor on
CDPath /mnt/hdd/
DisplayConnect /etc/ftpmessages/.connect
DisplayLogin /etc/ftpmessages/.login
DisplayQuit /etc/ftpmessages/.quit
MaxClientsPerUser 5
MaxConnectionRate 3
MaxLoginAttempts 3


Port to listen to:
Port 9876


# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022


# To prevent DoS attacks, set the maximum number = 30

MaxInstances 20


# The user and usergroup that the server runs at:

User nobody
Group nogroup


#Loglocations:

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog



# DIRECTORY SETTINGS

<Directory /mnt/hdd/private/>
<Limit ALL>
DenyGroup ftpusers
</Limit>
</Directory>


<Directory /mnt/hdd/lost+found/>
<Limit ALL>
DenyGroup ftpusers
</Limit>
<Limit ALL>
DenyAll
</Limit>
</Directory>


<Directory /mnt/hdd/ftp/upload/>
<Limit READ DIRS>
IgnoreHidden on
</Limit>
AllowStoreRestart on

<Limit ALL>
DenyAll
</Limit>
<Limit DIRS>
AllowAll
</Limit>
<Limit MKD STOR XMKD RNTO>
AllowAll
</Limit>
</Directory>


<Directory /mnt/hdd/ftp/download/>
<Limit READ DIRS>
IgnoreHidden on
</Limit>
AllowRetrieveRestart on

<Limit ALL>
DenyAll
</Limit>
<Limit READ>
AllowAll
</Limit>
<Limit DIRS>
AllowAll
</Limit>
<Limit RNFR>
DenyAll
</Limit>
</Directory>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Config Proftpd saudoi Solaris / OpenSolaris 15 11-12-2005 01:03 AM
Help with ProFTPd config WNxSquee Linux - Software 5 01-06-2004 07:36 AM
help with proftpd config mconnors Linux - General 5 09-26-2003 04:16 PM
help w/ proftpd config Nefarious Linux - Software 3 04-15-2003 09:50 PM
proftpd config mrozkan Linux - General 3 01-27-2002 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration