|
Dostęp do ftp jako anonymus
lex23 - 16-07-2009 06:28
Mam serwer postawiony z dwoma użytkownikami. Teraz chcę zrobić aby dostęp do moich folderów był możliwy po wpisaniu ,,annonymous''. jak to zrobić Mój konfig:
ServerType standalone DefaultServer on Umask 022 ServerName "nazwamoja" ServerIdent on "servftp" ServerAdmin ja kolega 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 User nobody Group nobody DirFakeUser off nobody DirFakeGroup off nobody DefaultTransferMode binary AllowForeignAddress off AllowRetrieveRestart on AllowStoreRestart on DeleteAbortedStores off TransferRate RETR 30 TransferRate STOR 40 TransferRate STOU 40 TransferRate APPE 40 SystemLog /var/log/secure RequireValidShell off #gp_random_username_length 6 #gp_random_password_length 6 #gp_randomize_case lower #gp_useradd_homedir_path /var/ftp #gp_html_path /var/www/html/ftp.htm #gp_welcome_name welcome.msg <IfModule mod_tls.c> TLSEngine off TLSRequired off TLSVerifyClient off TLSProtocol TLSv1 TLSLog /var/log/proftpd_tls.log TLSRSACertificateFile /etc/gproftpd/gproftpd.pem </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 kolega AllowUser ja DenyALL </Limit>
<Anonymous /var/folder> User kolega Group kolega AnonRequirePassword on MaxClients 3 "The server is full, hosting %m users" DisplayLogin welcome.msg <Limit LOGIN> Allow from all Deny from all </Limit> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> <Directory /var/folder/download> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> </Directory> <Directory /var/folder/upload> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> </Directory> </Anonymous>
<Anonymous /var/folder> User ja Group ja AnonRequirePassword on MaxClients 3 "The server is full, hosting %m users" DisplayLogin welcome.msg <Limit LOGIN> Allow from all Deny from all </Limit> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> <Directory /var/folder/download> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> </Directory> <Directory /var/folder/upload> AllowOverwrite on <Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP > AllowAll </Limit> <Limit NOTHING > DenyAll </Limit> </Directory> </Anonymous>
WilK - 16-07-2009 08:37
Przykład ze strony proftpd
# Our "basic" anonymous configuration, including a single # upload directory ("uploads") <Anonymous ~ftp>
# Allow logins if they are disabled above. <Limit LOGIN> AllowAll </Limit>
# Maximum clients with message MaxClients 5 "Sorry, max %m users -- try again later"
User ftp Group ftp # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp
# Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit>
# An upload directory that allows storing files but not retrieving # or creating directories. <Directory uploads/*> <Limit READ> DenyAll </Limit>
<Limit STOR> AllowAll </Limit> </Directory> </Anonymous>
zanotowane.pldoc.pisz.plpdf.pisz.plminister.pev.pl
|