alitrix |
12-13-2003 03:58 AM |
Problems with proftpd
Hi,
I'm having problems with Proftpd.
It isn't doing what I've configured in the config file.
Part of the conf file
Code:
TransferRate APPE,STOR 8
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
<Directory /mnt/extra/uploadZ>
<Limit DELE,RETR,STOR>
DenyAll
</Limit>
</Directory>
Startup debug:
Code:
root@AliTriX:/home/dbzgt# proftpd -d 10
- parsing '/usr/local/etc/proftpd.conf' configuration
- FS: using system open()
- FS: using system read()
- dispatching auth request "getpwnam" to module mod_auth_file
- dispatching auth request "getpwnam" to module mod_auth_unix
- dispatching auth request "getgrnam" to module mod_auth_file
- dispatching auth request "getgrnam" to module mod_auth_unix
- FS: using system read()
- <Directory />: adding section for resolved path '/'
- <Directory /mnt/extra/uploadZ>: adding section for resolved path '/mnt/extra/uploadZ'
- FS: using system read()
- FS: using system close()
localhost -
localhost - Config for AliTriX's FTP Server:
localhost - ~ftp/
localhost - Limit
localhost - DenyAll
localhost - UserName
localhost - GroupName
localhost - UserAlias
localhost - MaxClients
localhost - DisplayLogin
localhost - DisplayFirstChdir
localhost - TransferRate
localhost - Umask
localhost - /
localhost - /mnt/extra/uploadZ
localhost - Limit
localhost - DenyAll
localhost - AllowOverwrite
localhost - TransferRate
localhost - Umask
localhost - AllowOverwrite
localhost - TransferRate
localhost - Umask
localhost - DefaultServer
localhost - TransferRate
localhost - Umask
localhost - UserID
localhost - UserName
localhost - GroupID
localhost - GroupName
localhost - DefaultRoot
localhost - dispatching auth request "getgroups" to module mod_auth_file
localhost - dispatching auth request "getgroups" to module mod_auth_unix
localhost - SETUP PRIVS at main.c:2704
localhost - ROOT PRIVS at main.c:1956
localhost - RELINQUISH PRIVS at main.c:1962
root@AliTriX:/home/dbzgt#
Oke, let me explain the sitiuation. There is a user called `upload` and it has FTP access and the HOME dir of that user is `/mnt/extra/uploadZ`. So when the user logins into the FTP server, he goes directly to that dir.
I want them only to UPLOAD and NOT MORE, so downloading files isn't allowed.
The DefaultRoot commands works fine, cause the user can't go anywhere except it own home-dir.
But the Limit aren't working and neither the TransferRate.
Somebody maybe knows why?
(Btw, I even tryed to put the Limit in the tag - `Diretory /`, didn't work either)
Greetz,
AliTriX
|