Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2357 connectés 

 


Dernière réponse
Sujet : installation de pure-ftp sous FreeBSD
ze_cameleon Sinon tu peux faire un petit script pureftpd.sh que tu mets dans ton rep
/usr/local/etc/rc.d/
du style :
pure-ftpd -A -B -H -c 200 -C 3 -E -O stats:/var/log/pureftpd.log -l mysql:/usr/local/etc/pureftpd-mysql.conf
 
Autant tout centraliser sur ton piti bsd :) tu peux meme t'amuser a faire des scripts avec start, restart et stop :)
 
 

bemixam a écrit a écrit :

merci ... ca marche ...  
mais j ai pas de /etc/rc.local
 
je dois l ajouter ou pour que ca demarre tout seul ?
 
silverfuck# ls -l | grep rc.
  6 -rw-r--r--   1 root  wheel      4906 Jan 28 14:13 rc.atm
  2 -rw-r--r--   1 root  wheel       751 May 26 18:39 rc.conf
  2 -rw-r--r--   1 root  wheel       748 Apr 26 00:11 rc.conf.bak
  2 -rw-r--r--   1 root  wheel       763 May  1 22:31 rc.conf~
  6 -rw-r--r--   1 root  wheel      4133 Jan 28 14:13 rc.diskless1
  4 -rw-r--r--   1 root  wheel      2977 Jan 28 14:13 rc.diskless2
 10 -rw-r--r--   1 root  wheel      9450 Jan 28 14:13 rc.firewall
 10 -rw-r--r--   1 root  wheel      8675 Jan 28 14:13 rc.firewall6
  2 -rw-r--r--   1 root  wheel      1039 Jan 28 14:13 rc.i386
  4 -rw-r--r--   1 root  wheel      2708 Jan 28 14:13 rc.isdn
 18 -rw-r--r--   1 root  wheel     17930 Jan 28 14:13 rc.network
 14 -rw-r--r--   1 root  wheel     12323 Jan 28 14:13 rc.network6
  2 -rw-r--r--   1 root  wheel      1967 Jan 28 14:13 rc.pccard
  2 -rwxr-xr-x   1 root  wheel      1891 Jan 28 14:13 rc.resume
  6 -rw-r--r--   1 root  wheel      4830 Jan 28 14:13 rc.serial
  4 -rw-r--r--   1 root  wheel      3108 Jan 28 14:13 rc.shutdown
  2 -rwxr-xr-x   1 root  wheel      1898 Jan 28 14:13 rc.suspend
  4 -rw-r--r--   1 root  wheel      3925 Jan 28 14:13 rc.syscons
  2 -rw-r--r--   1 root  wheel      1630 Jan 28 14:13 rc.sysctl  




Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
ze_cameleon Sinon tu peux faire un petit script pureftpd.sh que tu mets dans ton rep
/usr/local/etc/rc.d/
du style :
pure-ftpd -A -B -H -c 200 -C 3 -E -O stats:/var/log/pureftpd.log -l mysql:/usr/local/etc/pureftpd-mysql.conf
 
Autant tout centraliser sur ton piti bsd :) tu peux meme t'amuser a faire des scripts avec start, restart et stop :)
 
 

bemixam a écrit a écrit :

merci ... ca marche ...  
mais j ai pas de /etc/rc.local
 
je dois l ajouter ou pour que ca demarre tout seul ?
 
silverfuck# ls -l | grep rc.
  6 -rw-r--r--   1 root  wheel      4906 Jan 28 14:13 rc.atm
  2 -rw-r--r--   1 root  wheel       751 May 26 18:39 rc.conf
  2 -rw-r--r--   1 root  wheel       748 Apr 26 00:11 rc.conf.bak
  2 -rw-r--r--   1 root  wheel       763 May  1 22:31 rc.conf~
  6 -rw-r--r--   1 root  wheel      4133 Jan 28 14:13 rc.diskless1
  4 -rw-r--r--   1 root  wheel      2977 Jan 28 14:13 rc.diskless2
 10 -rw-r--r--   1 root  wheel      9450 Jan 28 14:13 rc.firewall
 10 -rw-r--r--   1 root  wheel      8675 Jan 28 14:13 rc.firewall6
  2 -rw-r--r--   1 root  wheel      1039 Jan 28 14:13 rc.i386
  4 -rw-r--r--   1 root  wheel      2708 Jan 28 14:13 rc.isdn
 18 -rw-r--r--   1 root  wheel     17930 Jan 28 14:13 rc.network
 14 -rw-r--r--   1 root  wheel     12323 Jan 28 14:13 rc.network6
  2 -rw-r--r--   1 root  wheel      1967 Jan 28 14:13 rc.pccard
  2 -rwxr-xr-x   1 root  wheel      1891 Jan 28 14:13 rc.resume
  6 -rw-r--r--   1 root  wheel      4830 Jan 28 14:13 rc.serial
  4 -rw-r--r--   1 root  wheel      3108 Jan 28 14:13 rc.shutdown
  2 -rwxr-xr-x   1 root  wheel      1898 Jan 28 14:13 rc.suspend
  4 -rw-r--r--   1 root  wheel      3925 Jan 28 14:13 rc.syscons
  2 -rw-r--r--   1 root  wheel      1630 Jan 28 14:13 rc.sysctl  



bemixam j ai abandonne l idee de le configurer avec le fichier de conf ...
et je le configure direct en le lancant enligne de commande ...
 
mais ca marche ...
axey Vire le compte Ftp ou lance le serveur avec l'option -e .
bemixam bon j ai reussit a ouvrir des comptes virtuels ...
 
mais anonymous marche toujours ! comment l empecher de fonctionner ?
bemixam euh .. pour la conf ca se passe comment ? ....
j ai bidouille le fichier /usr/local/etc/pure-ftpd.conf.sample
 
relance le serveur
 
certains parametres on bien change ( comme le nombre de connection maximum ) mais d autres n ont pas ete appliquees ( comme l interdiction de se loguer en anonymous )
 
d autre part j ai essaye d ajouter des comptes virtuels ...
mais j ai pas du faire ce qu il fallait car ca ne fonctionne pas encore ...
 
qqun s y connait un peu plus que moi ?
 
pour appliquer les changements ... est on oblige de relancer le serveur ?
bemixam ok merci.
axey Oui tu dois ajouter un /etc/rc.local et mettre dedans tous les scripts persos que tu veux demarrer au boot du systeme.
bemixam merci ... ca marche ...  
mais j ai pas de /etc/rc.local
 
je dois l ajouter ou pour que ca demarre tout seul ?
 
silverfuck# ls -l | grep rc.
  6 -rw-r--r--   1 root  wheel      4906 Jan 28 14:13 rc.atm
  2 -rw-r--r--   1 root  wheel       751 May 26 18:39 rc.conf
  2 -rw-r--r--   1 root  wheel       748 Apr 26 00:11 rc.conf.bak
  2 -rw-r--r--   1 root  wheel       763 May  1 22:31 rc.conf~
  6 -rw-r--r--   1 root  wheel      4133 Jan 28 14:13 rc.diskless1
  4 -rw-r--r--   1 root  wheel      2977 Jan 28 14:13 rc.diskless2
 10 -rw-r--r--   1 root  wheel      9450 Jan 28 14:13 rc.firewall
 10 -rw-r--r--   1 root  wheel      8675 Jan 28 14:13 rc.firewall6
  2 -rw-r--r--   1 root  wheel      1039 Jan 28 14:13 rc.i386
  4 -rw-r--r--   1 root  wheel      2708 Jan 28 14:13 rc.isdn
 18 -rw-r--r--   1 root  wheel     17930 Jan 28 14:13 rc.network
 14 -rw-r--r--   1 root  wheel     12323 Jan 28 14:13 rc.network6
  2 -rw-r--r--   1 root  wheel      1967 Jan 28 14:13 rc.pccard
  2 -rwxr-xr-x   1 root  wheel      1891 Jan 28 14:13 rc.resume
  6 -rw-r--r--   1 root  wheel      4830 Jan 28 14:13 rc.serial
  4 -rw-r--r--   1 root  wheel      3108 Jan 28 14:13 rc.shutdown
  2 -rwxr-xr-x   1 root  wheel      1898 Jan 28 14:13 rc.suspend
  4 -rw-r--r--   1 root  wheel      3925 Jan 28 14:13 rc.syscons
  2 -rw-r--r--   1 root  wheel      1630 Jan 28 14:13 rc.sysctl
axey Tu retires ce que tu as qui commence par 'ftp' dans ton inetd.conf . Tu relances inetd :
 
killall -HUP inetd
 
Tu ajoutes dans /etc/rc.local :
 
/usr/local/sbin/pure-ftpd -B
 
Vala.
bemixam voila ...
 
cd /usr/ports/ftp/pure-ftpd && make install && make clean
 
et maintenant comment fait on pour substituer l ancien serveur avec le nouveau que je viens d installer ?
 
car dans /etc/inetd.conf je ne vois pas de ligne pour pure-ftp ...
 
j ai juste ca :
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)