LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2003, 09:14 PM   #1
guc
Member
 
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
Cool Check This Out


hellow there i have been working on a proftpd config

if worked out most of the probs

but i got an error:

Fatal. </Directory>: directive not allowed in <Limit> context

i dunno whats up with that i also do not get the limit thing very well...


here is my config, tell me about it, what is not good, how is it better te approach, etc...

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


#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 WRITE DELE READ RMD LIST>denyall</Limit>
</Directory>

<Directory /mnt/hdd/ftp/upload/>
<Limit>IgnoreHidden</Limit>
<Limit DELE READ RMD>denyall</Limit>
AllowStoreRestart
</Directory>

<Directory /mnt/hdd/ftp/download/>
<Limit WRITE DELE MKD RMD>denyall</Limit>
<Limit>IgnoreHidden</Limit>
AllowRetrieveRestart
</Directory>
 
Old 07-29-2003, 12:24 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well one thing i see that is wrong is your ignorehidden
it should be added something like:
<Limit ALL SITE_CHMOD>
IgnoreHidden on
</Limit>
and i am not sure if it is case sensitive, but denyall may have to be typed DenyAll
 
Old 07-29-2003, 07:06 AM   #3
guc
Member
 
Registered: Jul 2003
Posts: 34

Original Poster
Rep: Reputation: 15
hmm what does ALL SITE_CHMOD mean ?



and i did what you told me to do and it still gives the same error, anyone else any idea ?????

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


#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 WRITE DELE READ RMD LIST>DenyAll</Limit>
</Directory>

<Directory /mnt/hdd/ftp/upload/>
<Limit ALL SITE_CHMOD> IgnoreHidden on</Limit>
<Limit DELE READ RMD>DenyAll</Limit>
AllowStoreRestart
</Directory>

<Directory /mnt/hdd/ftp/download/>
<Limit WRITE DELE MKD RMD>DenyAll</Limit>
<Limit ALL SITE_CHMOD> IgnoreHidden on</Limit>
AllowRetrieveRestart
</Directory>

-------------------------------------------------
Is it possible you may only write one <Limit ></Limit> per <Directory></Directory> ?? If so how do i solve my restrictions i do now with 2 "limits"


thx in advance

GUC
 
Old 07-30-2003, 04:44 AM   #4
guc
Member
 
Registered: Jul 2003
Posts: 34

Original Poster
Rep: Reputation: 15
i'm still stuck can't anybody help ?
 
  


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
Partition check, check double check Vincentius Linux - General 0 12-25-2004 06:47 AM
Media Check= FAIL - MDSUMs Check out tgrier Linux - Newbie 6 11-26-2004 11:07 PM
ATI's drivers -- How do I check... (check.sh) onthos Linux - Hardware 3 08-20-2004 06:05 PM
gcc-3.3.1 make -k check - make [check] Error 2 BarryM45 Linux From Scratch 1 02-05-2004 09:44 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM


All times are GMT -5. The time now is 12:39 PM.

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