Все это можно-просто создаете демонов-пользователей,далее в конфиге профтпд пишете что какой-то пользователь будет как аноним,а все остальные пользователи работают как обычные с логином и паролем.все очень и очень просто.
вот как пример,мой конфиг профтпд- /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file. To really apply changes reload proftpd after modifications. Includes DSO modulesInclude /etc/proftpd/modules.conf Set off to disable IPv6 support which is annoying on IPv4 only boxes.UseIPv6 on If set on you can experience a longer connection delay in many cases.IdentLookups offServerName DebianServerType standaloneDeferWelcome offMultilineRFC2228 onDefaultServer onShowSymlinks onTimeoutNoTransfer 600TimeoutStalled 600TimeoutIdle 1200DisplayLogin welcome.msgDisplayChdir .message trueListOptions -lDenyFilter 092;*.*/ Use this to jail all users in their homes DefaultRoot ~ Users require a valid shell listed in /etc/shells to login. Use this directive to release that constrain. RequireValidShell off Port 21 is the standard FTP port.Port 21 In some cases you have to specify passive ports range to by-pass firewall limitations. Ephemeral ports can be used for that, but feel free to use a more narrow range. PassivePorts 49152 65534 If your host was NATted, this option is useful in order to allow passive tranfers to work. You have to use your public address and opening the passive ports used on your firewall as well. MasqueradeAddress 1.2.3.4 This is useful for masquerading address with dynamic IPs: refresh any configured MasqueradeAddress directives every 8 hourslt;IfModule mod_dynmasq.cgt; DynMasqRefresh 28800lt;/IfModulegt; To prevent DoS attacks, set the maximum number of child processes to 30. If you need to allow more than 30 concurrent connections at once, simply increase this value. Note that this ONLY works in standalone mode, in inetd mode you should use an inetd server that allows you to limit maximum number of processes per service (such as xinetd)MaxInstances 30 Set the user and group that the server normally runs at.User proftpdGroup nogroup Umask 022 is a good standard umask to prevent new files and dirs (second parm) from being group and world writable.Umask 022 022 Normally, we want files to be overwriteable.AllowOverwrite on Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords: PersistentPasswd off This is required to use both PAM-based authentication and local passwords AuthOrder mod_auth_pam.c* mod_auth_unix.c Be warned: use of this directive impacts CPU average load Uncomment this if you like to see progress and transfer rate with ftpwho in downloads. That is not needed for uploads rates. UseSendFile offTransferLog /var/log/proftpd/xferlogSystemLog /var/log/proftpd/proftpd.loglt;IfModule mod_quotatab.cgt;QuotaEngine offlt;/IfModulegt;lt;IfModule mod_ratio.cgt;Ratios offlt;/IfModulegt; Delay engine reduces impact of the so-called Timing Attack described in http://security.lss.hr/index.php?page=detailsID . It is on by default.lt;IfModule mod_delay.cgt;DelayEngine onlt;/IfModulegt;lt;IfModule mod_ctrls.cgt;ControlsEngine offControlsMaxClients 2ControlsLog /var/log/proftpd/controls.logControlsInterval 5ControlsSocket /var/run/proftpd/proftpd.socklt;/IfModulegt;lt;IfModule mod_ctrls_admin.cgt;AdminControlsEngine offlt;/IfModulegt; Alternative authentication frameworksInclude /etc/proftpd/ldap.confInclude /etc/proftpd/sql.conf This is used for FTPS connectionsInclude /etc/proftpd/tls.conf A basic anonymous
A basic anonymous configuration, no upload directories.lt;Anonymous /home/stephenfrygt;User stephenfryGroup nogroup We want clients to be able to login with anonymous as well as ftpUserAlias anonymous stephenfry Cosmetic changes, all files belongs to ftp user DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off Limit the maximum number of anonymous loginsMaxClients 20 We want 39;welcome.msg39; displayed at login, and 39;.message39; displayed in each newly chdired directory. DisplayLogin welcome.msgDisplayChdir .message Limit WRITE everywhere in the anonymous chroot lt;Directory *gt; lt;Limit WRITEgt; DenyAll lt;/Limitgt; lt;/Directorygt; Uncomment this if you39;re brave. lt;Directory incominggt; Umask 022 is a good standard umask to prevent new files and dirs (second parm) from being group and world writable. Umask 022 022 lt;Limit READ WRITEgt; DenyAll lt;/Limitgt; lt;Limit STORgt; AllowAll lt;/Limitgt; lt;/Directorygt;lt;/Anonymousgt;
я сделал демона под именем stephenfry как Anonymous,при этом,остальные демоны у меня обычные с паролям.чтобы войти в аккаунт с паролем нужно в адресной строке написать логин,пароль и адрес сервера,только и всего
это было бы удобнее . я сделал FTP пользователя без запроса .думаю можно сделать еще пользователя с паролем и давать эту инфу только своим и заходить черезftp://user@myftp.lanftp://user:password@myftp.lanно где в этих ссылках сноска на сервет???
ладно . один вопрос . я это все дело буду ставить позже на FreeBSD но пока еще я на убунте смотрю что к чему .В убунте пользуюсь Gadmin-proftpd там она можно создать юзера и он появляется как юзер системы .Что то похожее есть на LAMP но там помойму группа www-data и тут тоже самое или как?