iGz
17-08-2008, 14:17
Hi,
I`ve searched many sites, but without success :( So if you could help... I`m totally newbie in linux (My first serious contact was when i bought this router :) )
I`m running WL-500gPv2 with Oleg`s fw 1.9.2.7-10. But after I start up proftpd and try to connect as anonymous users, it ends up with Error 530 - Unable to set anonymous privileges and in syslog i have this :
ftp: Directory /tmp/harddisk/ftp/ is not accessible.
This is my proftpd.conf :
ServerName "Skynet ProFTP server"
ServerType standalone
DefaultServer on
SystemLog /tmp/harddisk/logs/ftp
Port 21
Umask 022
MaxClientsPerHost 2
MaxInstances 4
TimeoutStalled 300
TimeoutSession 300
UseReverseDNS off
PassivePorts 49100 49105
<Global>
DefaultRoot ~
RootLogin off
RequireValidShell off
AllowStoreRestart off
AllowRetrieveRestart on
TransferRate RETR 60:8192
TransferRate APPE,STOR 150:16256
</Global>
<Limit SITE_CHMOD>
DenyAll
</Limit>
# Set the user and group under which the server will run.
User nobody
Group nobody
AllowOverwrite off
<Anonymous /tmp/harddisk/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
AnonRequirePassword off
RequireValidShell off
MaxClients 4 "Sorry, maximum 4 tahaci. Skus neskor..."
AllowOverwrite off
PathAllowFilter "^[-A-Za-z0-9._+]*$"
PathDenyFilter "(^|/)[-.]"
AllowFilter "^[a-zA-Z0-9 .,/_+\-]*$"
<Limit ALL>
DenyAll
</Limit>
<Limit DIRS READ>
AllowAll
</Limit>
<Directory upload>
HideFiles \*$
Umask 022 022
<Limit ALL>
DenyAll
</Limit>
<Limit CWD MKD XCWD XMKD>
AllowAll
</Limit>
<Limit STOR STOU>
AllowAll
</Limit>
</Directory>
</Anonymous>
And here is permisions for ftp directory :
drwxrwxr-x 3 ftp ftp 4096 Aug 17 10:13 ftp
So i think my permissions are correct (or not ?)
Here is part of my passwd file >
nobody:x:99:99:nobody:/:/sbin/nologin
ftp:x:1000:999:ftp:/tmp/harddisk/ftp:/sbin/nologin
And part of group file >
nobody:x:99:
ftp:x:999:ftp
ftp user was added throuth adduser command and group file was edited manualy by me.
I don`t know where i`m making mistake, so if you have few minutes for check my settings out... :)
Thank you folks.
I`ve searched many sites, but without success :( So if you could help... I`m totally newbie in linux (My first serious contact was when i bought this router :) )
I`m running WL-500gPv2 with Oleg`s fw 1.9.2.7-10. But after I start up proftpd and try to connect as anonymous users, it ends up with Error 530 - Unable to set anonymous privileges and in syslog i have this :
ftp: Directory /tmp/harddisk/ftp/ is not accessible.
This is my proftpd.conf :
ServerName "Skynet ProFTP server"
ServerType standalone
DefaultServer on
SystemLog /tmp/harddisk/logs/ftp
Port 21
Umask 022
MaxClientsPerHost 2
MaxInstances 4
TimeoutStalled 300
TimeoutSession 300
UseReverseDNS off
PassivePorts 49100 49105
<Global>
DefaultRoot ~
RootLogin off
RequireValidShell off
AllowStoreRestart off
AllowRetrieveRestart on
TransferRate RETR 60:8192
TransferRate APPE,STOR 150:16256
</Global>
<Limit SITE_CHMOD>
DenyAll
</Limit>
# Set the user and group under which the server will run.
User nobody
Group nobody
AllowOverwrite off
<Anonymous /tmp/harddisk/ftp>
User ftp
Group ftp
UserAlias anonymous ftp
AnonRequirePassword off
RequireValidShell off
MaxClients 4 "Sorry, maximum 4 tahaci. Skus neskor..."
AllowOverwrite off
PathAllowFilter "^[-A-Za-z0-9._+]*$"
PathDenyFilter "(^|/)[-.]"
AllowFilter "^[a-zA-Z0-9 .,/_+\-]*$"
<Limit ALL>
DenyAll
</Limit>
<Limit DIRS READ>
AllowAll
</Limit>
<Directory upload>
HideFiles \*$
Umask 022 022
<Limit ALL>
DenyAll
</Limit>
<Limit CWD MKD XCWD XMKD>
AllowAll
</Limit>
<Limit STOR STOU>
AllowAll
</Limit>
</Directory>
</Anonymous>
And here is permisions for ftp directory :
drwxrwxr-x 3 ftp ftp 4096 Aug 17 10:13 ftp
So i think my permissions are correct (or not ?)
Here is part of my passwd file >
nobody:x:99:99:nobody:/:/sbin/nologin
ftp:x:1000:999:ftp:/tmp/harddisk/ftp:/sbin/nologin
And part of group file >
nobody:x:99:
ftp:x:999:ftp
ftp user was added throuth adduser command and group file was edited manualy by me.
I don`t know where i`m making mistake, so if you have few minutes for check my settings out... :)
Thank you folks.