URL: https://linuxfr.org/forums/general-general/posts/protfpd-utilisateurs-%C3%A0-la-vol%C3%A9e Title: Protfpd : utilisateurs à la volée Authors: eon2004 Date: 2006年01月11日T22:43:12+01:00 Tags: Score: 0 J'ai un serveur ftp sur ma machine personnelle qui tourne sous proftpd. Pour l'instant j'ai 2 possibilités de connexion: soit en anonyme = lecture seule, soit login/passwd de ma session sous linux = lecture/écriture. Ce que je voudrais c'est donner un login/passwd à quelques amis pour qu'ils puissent déposer des fichiers sur mon ftp sans leur donner mon compte de session. Faut il leur créer un compte sur ma machine ou il y a t-il un moyen plus simple? J'ai beau éplucher la doc, je trouve pas. ps: Pour ceux qui cherchent à automatiser l'envoi d'ip vers une adresse dynamique type dyndns à travers un routeur(genre freebox) laissez tomber ez-ipupdate qui ne trouve que votre adresse locale, utilisez ddclient qui va la récupérer sur une page web. L'ip fixe n'est pas obligatoire pour retrouver votre serveur ;-) J'ai mis mon fichier /etc/proftpd.conf ci dessous # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName erwanlinux ServerType standalone DefaultServer on # Allow FTP resuming. # Remember to set to off if you have an incoming ftp for upload. AllowStoreRestart on # Port 21 is the standard FTP port. Port 21 PassivePorts 7000 7010 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes MaxInstances 10 # Set the user and group under which the server will run. User nobody Group nogroup # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot /home/erwan/ftp # Normally, we want files to be overwriteable. AllowOverwrite on # Bar use of SITE CHMOD by default <Limit SITE_CHMOD> DenyAll # Needed for NIS. PersistentPasswd off #drakwizard_proftpd <Limit LOGIN> Order allow,deny Allow from all Deny from all #drakwizard_proftpd <Anonymous /home/erwan/ftp> <Limit LOGIN> AllowAll RequireValidShell off AnonRequirePassword off User ftp Group ftp UserAlias anonymous ftp MaxClients 10 "Désolé maximum %m connecté" RootLogin off AllowForeignAddress on AllowRetrieveRestart on DirFakeUser off nobody LogFormat auth "%v [%P] %h %t "%r" %s" Extendedlog /var/log/proftpd/ftp.log UseReverseDNS off LogFormat default "%h %l %u %t "%r" %s %b" SystemLog /var/log/proftpd/proftpd.log DisplayConnect /etc/banner-proftpd DirFakeGroup off nobody DeleteAbortedStores off IdentLookups off DeferWelcome on TimesGMT off TransferLog /var/log/proftpd/xferlog AccessGrantMsg " -- Guest access granted for %u --" ServerIdent off LogFormat write "%h %l %u %t "%r" %s %b" AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!"

AltStyle によって変換されたページ (->オリジナル) /