Comment creer des comptes users sur PROFTPD ?

Comment creer des comptes users sur PROFTPD ? - Linux et OS Alternatifs

Marsh Posté le 24-01-2002 à 21:36:40    

j'ai installe PROFTPD, j'arrive a me connecter en ftp ou anonymous mais comment on fait pr creer un compte ???

Reply

Marsh Posté le 24-01-2002 à 21:36:40   

Reply

Marsh Posté le 24-01-2002 à 21:42:25    

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 .....


---------------

Reply

Marsh Posté le 24-01-2002 à 21:42:27    

http://www.pureftpd.org/README.Virtual-Users


---------------
C'est en forgeant qu'on devient con comme un forgeron.
Reply

Marsh Posté le 24-01-2002 à 21:59:35    

Lebibi a écrit a écrit :

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 .....  




 
et si c un utilisateur ? genre je me connecte dessus moi, avec palotte, et je veux acceder au ftp avec ce pseudo, je mets koi comme shell ?

Reply

Marsh Posté le 24-01-2002 à 22:14:21    

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)...


---------------

Reply

Marsh Posté le 24-01-2002 à 22:28:56    

tu peux mettre ton proftpd.conf pour voir ?

Reply

Marsh Posté le 24-01-2002 à 23:05:55    

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

Reply

Marsh Posté le 24-01-2002 à 23:12:37    

# 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>


---------------

Reply

Marsh Posté le 24-01-2002 à 23:20:59    

Merci Lebibi  :bounce:  :bounce:  
 
je vais bien l'etudier !!  
 
merci encore  :jap:

Reply

Marsh Posté le 24-01-2002 à 23:30:39    

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


---------------

Reply

Marsh Posté le 24-01-2002 à 23:30:39   

Reply

Marsh Posté le 25-01-2002 à 00:02:16    

: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  ~/
 

Reply

Marsh Posté le 25-01-2002 à 00:06:19    

tu as quoi comme message d'erreur ?
 
ton serveur est bien lancé ?
 
tes users ont des droits en lecture ?


---------------

Reply

Marsh Posté le 25-01-2002 à 00:12:09    

  • mon message d'erreur c :


Login incorrect
Echec de l'identification.

 

  • mon serveur est lance puiske j'arrive a me connecte en anonyme


  • hummm  :sarcastic:  comment je sais si mes users ont des droits en lecture ?

Reply

Marsh Posté le 25-01-2002 à 00:15:22    

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


---------------

Reply

Marsh Posté le 25-01-2002 à 00:17:25    

oui ca a ete fait...  :sarcastic:  
 
arrff ... chui sur c un truc tt con ...
 
tu vois une erreur dans mon proftpd.conf ?

Reply

Marsh Posté le 25-01-2002 à 00:23:24    

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 ?


---------------

Reply

Marsh Posté le 25-01-2002 à 00:27:11    

mem chose en root...  :cry:  :cry:  je desespere !!!!

Reply

Marsh Posté le 25-01-2002 à 00:35:33    

et avec mon fichier de conf ca marche ou pas ?


---------------

Reply

Marsh Posté le 25-01-2002 à 00:36:34    

bah j'ai pas essayer le fichier entier... j'ai juste pris des morceaux... mais je vais essayer tiens...

Reply

Marsh Posté le 25-01-2002 à 00:39:02    

pareille... ca marche po.....  :cry:  :cry:

Reply

Marsh Posté le 25-01-2002 à 00:41:57    

:heink: va te coucher, ca ira mieux demain ;)


---------------

Reply

Marsh Posté le 25-01-2002 à 00:49:29    

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:

Reply

Marsh Posté le 25-01-2002 à 00:53:59    

Bonne nuit, je vais au lit aussi  :hello:


---------------

Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed