[+] proftpd bez pytania o login i has

Konfiguracja serwerów, usług, itp.
hajmon7
Posty: 11
Rejestracja: 23 października 2007, 12:32

[+] proftpd bez pytania o login i hasło

Post autor: hajmon7 »

witam
Czy da się skonfigurować proftpd żeby nie pytał o login i hasło dla anonimowego użytkownika? Chcę zrobić tak że wchodzę na serwer i od razu można ściągać ale cokolwiek nie wpiszę to mi wyskakuje okienko podaj login i hasło.
Moja sekcja dla anonymous wygląda tak:

Kod: Zaznacz cały

<Anonymous ~user>
<Limit LOGIN>
	AllowAll
</Limit>
   User			ftp
   Group			ftp
   UserAlias			anonymous [email]anonymous@anonymous.pl[/email]
   DirFakeUser	on ftp
   DirFakeGroup on ftp
 AnonRequirePassword	off
   MaxClients 2 "Serwer chwilowo przeciazony"
   MaxClientsPerHost 1 "Za duzo polaczen z jednego ip"
   <Directory *>
     <Limit WRITE>
       DenyAll
     </Limit>
   </Directory>
<Directory /var/ftp/upload>
	<Limit READ>
		DenyAll
	</Limit>
	<Limit WRITE>
		AllowAll
	</Limit>
	<Limit STOR>
		AllowAll
	</Limit>
</Directory>
 </Anonymous>
pkwiatkowski
Posty: 19
Rejestracja: 05 października 2007, 13:56
Lokalizacja: Gliwice

Post autor: pkwiatkowski »

A pokaż jeszcze główną konfigurację ;)
hajmon7
Posty: 11
Rejestracja: 23 października 2007, 12:32

Post autor: hajmon7 »

Już zrobiłem.
Zainstalowałem gadmin-proftpd i po konfiguracji w nim nie pyta już o hasło.

Oto cały proftpd.conf może się komuś przyda:

Kod: Zaznacz cały

ServerType standalone
DefaultServer on
Umask 022
ServerName "0.0.0.0"
ServerIdent on "My FTP Server"
ServerAdmin [email]email@example.org[/email]
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
  AllowUser anonymous
  AllowUser ftp
  DenyALL
</Limit>

<Anonymous /var/ftp>
User anonymous
Group ftp
AnonRequirePassword off
MaxClients 2 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit LIST NLST  RETR  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
 AllowAll
</Limit>
<Limit STOR STOU  APPE  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
 DenyAll
</Limit>
</Anonymous>
ODPOWIEDZ