[linux] ProFTPd
Jalsovszky Tamas
jalsot na decef.elf.stuba.sk
Pátek Prosinec 8 13:03:32 CET 2000
Tu je moja konfiguracia...
Tomas
proftpd.conf
# 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 "neviemco"
ServerType inetd
ServerIdent off
DeferWelcome off
Port 21
Umask 002
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
#Umask 022
# 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 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
UseReverseDNS off
TransferLog /var/log/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"
<Global>
DisplayLogin /etc/ftp/welcome.msg
DisplayFirstChdir readme
AllowOverwrite yes
IdentLookups off
ExtendedLog /var/log/proftpd/access.log WRITE,READ
ExtendedLog /var/log/proftpd/auth.log AUTH auth
</Global>
ServerAdmin admin na s1.sk
ServerName "neviemco"
MaxLoginAttempts 2
RequireValidShell no
TransferLog /var/log/proftpd/xferlog.s1.sk
MaxClients 10
DefaultServer on
DefaultRoot /export/s1
AllowOverwrite yes
# No quickly do we kick someone out
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
<Directory /export/s1>
<Limit LOGIN>
AllowUser user1
DenyUser user2
</Limit>
</Directory>
<Limit LOGIN>
Order Allow,Deny
Allow from 192.168.1.
Deny from all
</Limit>
On Fri, 8 Dec 2000, lubos klokner wrote:
> [ Jalsovszky Tamas 08.12.2000 wrote: ]
> >
> > Ahojte!
> >
> > Ako nakonfigutrujem $SUBJ, aby dovolil pristup na FTP server len
> > pre danych uzivatelov?
> > Nejak AllowUser nefunguje....
> >
> > Tomas
> >
>
> da sa to riesit aj pridadim uzivatelov do /etc/ftpaccess
> ale tam to funguje opacne, kto je v danom subore,
> nedostane sa na ftp...
>
> IMHO AllowUser sa da pouzit len v <LIMIT></LIMIT>
>
> --
> ---[ lubos [erkac] klokner ]----[ erkac na vault-tec.sk ]---
>
> ---[ web: http://www.vault-tec.sk
> ---[ gpgkey: finger erkac na vault-tec.sk
>
Další informace o konferenci linux