Pages : 1
#1 Le 31/07/2006, à 18:43
- Spiky104
Proftpd > Ajouter un utilisateur
Bonjour à tous, je souhaiterais ajouter un utilisateur FTP sous Proftpd. Voici le fichier conf:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Ubuntu"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Uncomment this if you would use TLS module:
#TLSEngine on
# Uncomment this if you would use quota module:
#Quotas on
# Uncomment this if you would use ratio module:
#Ratios on
# Port 21 is the standard FTP port.
Port 21
# 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 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
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
#DelayEngine off
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 10
# 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
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
# Uncomment this if you're brave.
# <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
</Anonymous>
Comment dois-je faire pour ajouter un utilisateur avec Mot de passe?
#2 Le 31/07/2006, à 19:12
- dexinou
Re : Proftpd > Ajouter un utilisateur
En ce qui me concerne j'utilise pure-ftp-mysql, ajout d'utilisateur (virtuels et physique) à la pelle ajouté à la base de donnée, configuration fine, sécurisé avec TLS, possibilité de le compilé avec le support du français, mode passif et actif et pour couronner le tout c'est une bombe.
Dernière modification par dexinou (Le 01/08/2006, à 11:36)
Ubuntu 9.10 64bits ext4 ® Core 2 Duo
Unix..... il y a moins bien mais c'est plus cher.
Si t'as pas compris la réponse, pose mieux ta question.
Tutoriaux Linux, apache, pure-ftpd, bind, mysql, qmail...
Hors ligne
#3 Le 31/07/2006, à 22:52
- chapi
Re : Proftpd > Ajouter un utilisateur
Bonsoir,
sauf configuration spéciale, proftpd utilise les comptes du système.
Il te suffit de créer un utilisateur avec la commande useradd par exemple et l'utiliser ensuite pour t'authentifier sur proftpd. Le répertoire par défaut sera le dossier personnel de l'utilisateur.
Hors ligne
#4 Le 01/08/2006, à 08:17
- Spiky104
Re : Proftpd > Ajouter un utilisateur
Merci pour ces réonses, et quand je fais un useradd comment j'attribue un mot de passe à l'user?
#5 Le 01/08/2006, à 09:17
- Spiky104
Re : Proftpd > Ajouter un utilisateur
C'est bon j'ai trouvé
Merci ^^
#6 Le 01/08/2006, à 09:26
- chapi
Re : Proftpd > Ajouter un utilisateur
Pour avoir des informations sur le fonctionnement d'une commande tu peux faire :
commande --help ou commande -h (certain programmes ne reconaissent pas ces options)
ou alors ce qui donne le plus de renseignements :
man commande
Si tu n'aimes pas voir la page de manuel (man) dans une console, tu peux chercher le man avec ton moteur de rechercher préféré. Plusieurs sites regroupent des man en version html (et parfois même en français).
Je pourrai te donner la réponse concernant useradd, mais comme dit le dicton : si tu donnes un poison à un homme, il mangera un jour, si tu lui apprend à pêcher, il mangera toute sa vie.
Hum... enfin voilà quoi, dit nous quand tu auras trouvé.
Dernière modification par chapi (Le 01/08/2006, à 09:27)
Hors ligne
#7 Le 01/08/2006, à 09:26
- chapi
Re : Proftpd > Ajouter un utilisateur
Tu as été plus rapide que moi
Hors ligne
#8 Le 01/08/2006, à 17:10
- jnizzoli
Re : Proftpd > Ajouter un utilisateur
Bonjour,
Sinon pour éviter de créer des utilisateurs locals, tu peux aussi créer des utilisateus virtuels.
Tout est expliqué dans le lien suivant :
http://www.prendreuncafe.com/blog/2005/ … s-virtuels
Bonne fin de journée
Hors ligne
Pages : 1