| |||||
| Dernière réponse | |
|---|---|
| Sujet : Comment creer des comptes users sur PROFTPD ? | |
| lebibi | Bonne nuit, je vais au lit aussi :hello: |
| Aperçu |
|---|
| Vue Rapide de la discussion |
|---|
| lebibi | Bonne nuit, je vais au lit aussi :hello: |
| PaLoTTe | ouais c ce ke je vais faire, comme on dit " la nuit porte conseil..." :jap: :jap: merci Lebibi, t'as ete cool :) Bonne nuit :hello: |
| lebibi | :heink: va te coucher, ca ira mieux demain ;) |
| PaLoTTe | pareille... ca marche po..... :cry: :cry: |
| PaLoTTe | bah j'ai pas essayer le fichier entier... j'ai juste pris des morceaux... mais je vais essayer tiens... |
| lebibi | et avec mon fichier de conf ca marche ou pas ? |
| PaLoTTe | mem chose en root... :cry: :cry: je desespere !!!! |
| lebibi | bah je ne vois pas trop (je suis naze en plus)
est ce que ca merde avec tous tes users ? tu as essayé en root ? |
| PaLoTTe | oui ca a ete fait... :sarcastic: arrff ... chui sur c un truc tt con ... tu vois une erreur dans mon proftpd.conf ? |
| lebibi | est ce que tu as relancé ton serveur ftp apres avoir modifié le fichier de config ? pour qu'il puisse prendre en compte les modifs /etc/rc.d/init.d/proftpd restart |
| PaLoTTe |
|
| lebibi | tu as quoi comme message d'erreur ?
ton serveur est bien lancé ? tes users ont des droits en lecture ? |
| PaLoTTe | :cry: :cry: ca marche po... j'ai l'impression d'etre un gros nul !! :cry: j'ai creer un user essai : useradd -s /dev/null -g ftp essai et je n'arrrive pas a me connecter avec lui ... re-v'la le proftpd.conf (modifié) : # 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 "PaLoTTe FTP LINUX SeRvEr" ServerType standalone DefaultServer on # Port 21 is the standard FTP port. Port 21 # 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 # 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 <Limit LOGIN> Order deny,allow Deny from 127.0.0.1 Allow from all </Limit> MaxClientsPerHost 1 "allez zouhhhhh !" # Message d'acceuil avant le login DisplayConnect /var/ftp/welcome.msg defaultRoot ~/ # Set the user and group that the server normally runs at. User nobody Group nobody # Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory> # Needed for NIS. PersistentPasswd off # A basic anonymous configuration, no upload directories. <Anonymous /var/ftp/pub> User ftp Group ftp # # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp # # # Limit the maximum number of anonymous logins MaxClients 1 "Désolé, seulement 1 connexion Anonyme authorisé, essayez plus tard" RequireValidShell off AnonRequirePassword off # # We want 'welcome.msg' displayed at login, and '.message' displayed # # in each newly chdired directory. # DisplayLogin welcome.msg # DisplayFirstChdir .message AccessGrantMsg "YOYO %u !!" <Limit LOGIN> Order deny,allow Deny from none Allow from all </Limit> # Limit WRITE everywhere in the anonymous chroot # <Limit WRITE> # DenyAll # </Limit> # </Anonymous> # Default root can be used to put users in a chroot environment. # As an example if you have a user foo and you want to put foo in /home/foo # chroot environment you would do this: # # DefaultRoot ~/ |
| lebibi | il n'y a rien de particulier
juste peut etre cette partie : # Racine deplacee DefaultRoot ~/ Comme ca, chaque user qui se loge en ftp arrive dans son home bien sur tu peux le modifier et mettre un rep commun avec un rep upload et download |
| PaLoTTe | Merci Lebibi :bounce: :bounce: je vais bien l'etudier !! merci encore :jap: |
| lebibi | # 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 "Bibi's FTP Sever" ServerType standalone DefaultServer on ServerIdent on "Donald --> FTP Server" # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 #Logs LogFormat default "%a - - [%{%e/%b/%Y:%H:%M:%S}t] %m %F %s %b" ExtendedLog /var/log/ftp.log all # 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 2 # Limitation de la bande passante # RateReadBPS 9000 # #RateReadFreeBytes 5120 # #RateReadHardBPS on # <Limit LOGIN> Order deny,allow Deny from 127.0.0.1 Allow from all </Limit> MaxClientsPerHost 1 "Sorry, only one client is authorized from this host" # Message d'acceuil avant le login DisplayConnect /usr/local/etc/welcome.msg # Racine deplacee DefaultRoot ~/ # Implantation d'un time out pour les connections TimeoutStalled 300 # Set the user and group that the server normally runs at. User nobody Group nobody # Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory> # A basic anonymous configuration, no upload directories. <Anonymous ~ftp> User ftp Group ftp # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp AuthAliasOnly off RequireValidShell off # Limit the maximum number of anonymous logins MaxClients 3 "Sorry, max %m users -- try again later" MaxClientsPerHost 1 "Sorry, only one client is authorized from this host" # Cache le repertoire private # HideUser private # HideGroup private # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message AccessGrantMsg "Acces anonyme accorde a %u." <Limit LOGIN> Order deny,allow Deny from none Allow from all </Limit> # Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> # Repertoire pour uploader <Directory /var/ftp/upload> <Limit RMD DELE MKD> DenyAll </Limit> <Limit STOR CWD READ> AllowAll </Limit> </Directory> </Anonymous> |
| PaLoTTe | j'en ai marre !!! :cry: :cry: :cry: :cry: ca marche pas !!!!!! :cry: :cry: aidez moi sioupé !!!!!!!!! j'comprends rien !!!!!!!!!! :cry: :cry: :cry: voila mon proftpd.conf : # 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 "PaLoTTe FTP LINUX SeRvEr" ServerType standalone DefaultServer on # Port 21 is the standard FTP port. Port 21 # 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 # 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 nobody Group nobody # Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory> # Needed for NIS. PersistentPasswd off # A basic anonymous configuration, no upload directories. <Anonymous /var/ftp/pub> User ftp Group ftp # # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp # # # Limit the maximum number of anonymous logins MaxClients 1 RequireValidShell off AnonRequirePassword off # # # 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> <Limit LOGIN> Allow palotte </Limit> # Default root can be used to put users in a chroot environment. # As an example if you have a user foo and you want to put foo in /home/foo # chroot environment you would do this: # # DefaultRoot /home/foo foo |
| PaLoTTe | tu peux mettre ton proftpd.conf pour voir ? |
| lebibi | tu met le shell que tu veux
moi ce que je fais c'est que les users qui n'accede qu'en FTP je ne leur met pas de shell, question de securité (au cas ou)... |
| PaLoTTe |
|
| axey | http://www.pureftpd.org/README.Virtual-Users |
| lebibi | tu utilises/cré des comptes de user normal (tu ne leur met pas de shell genre bash si il n'accede que par ftp)
adduser ..... |
| PaLoTTe | j'ai installe PROFTPD, j'arrive a me connecter en ftp ou anonymous mais comment on fait pr creer un compte ??? |




