← Back to team overview

sslug-teknik team mailing list archive

Re: Problemer med proftp

 

On Wed, May 16, 2001 at 03:41:17PM +0200, Gitte Wange wrote:
> Hejsa
> 
> Efter at have fået sendt en config fil fra Jesper Lund, har jeg nu prøvet 
> at sætte min proftp op til at acceptere anonymous connections.
> Men det er ikke lykkes.
> 
> Min conf-fil ser således ud:
> ServerName                      "MMManager.org's FTP server"
> ServerType                      standalone
> DefaultServer                   on
> 
> Port                            21
> Umask                           022
> 
> MaxInstances                    30
> 
> User                            nobody
> Group                           nobody
> LogFormat       personal        "%a¤%t¤%f¤%m¤%b"
> 
> <VirtualHost 212.242.53.118>
>         TimeOutStalled 300
>         SystemLog /var/log/proftpd/proftpd.log
>         ServerIdent on "FTP server ready"
>         WtmpLog off
>         MaxClients 20 "Sorry, the maximum number of allowed users reached. 
> (%m)"
>         MaxClientsPerHost 2 "No more than 2 connections per host."
>         DisplayLogin login.msg
> 
> 
>         #Alm. brugers defualt root - her deres homedir
>         DefaultRoot ~
>         ServerAdmin info@xxxxxxxxxxxxx
>         ShowSymlinks on
>         ExtendedLog /var/log/proftpd/user.log READ,WRITE personal
>         AllowOverWrite on
> 
>         #Adgang for anonymous users
>         <Anonymous /var/ftp/>
>                 MaxClients 10 "Sorry, no more than 10 anonymous users 
> allowed."
>                 ExtendedLog /var/log/proftpd/anonymous.log READ personal
>                 User nobody
>                 Group nobody
>                 UserAlias anonymous nobody
>                 RequireValidShell off
>                 <Limit LOGIN>
>                         Allow All
>                 </Limit>
>         </Anonymous>
> </VirtualHost>
prøv den her istedet

-snip proftp.conf
<Anonymous ~ftp>
User                            ftp
Group                           ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias                       anonymous ftp
RequireValidShell               off
AnonRequirePassword             off

# Limit the maximum number of anonymous logins
#  MaxClients                   10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
#  DisplayLogin                 welcome.msg
#  DisplayFirstChdir            .message

  # Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

</Anonymous>

-snip slut proftp.conf


og sørg for at ftp anonymous og nobody ikke står i /etc/ftpuser , og at ~ftp findes

/Per Jørgensen



References