installation de pure-ftp sous FreeBSD - Linux et OS Alternatifs
Marsh Posté le 09-06-2002 à 16:01:19
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. 
Marsh Posté le 09-06-2002 à 16:18:23
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 
Marsh Posté le 09-06-2002 à 17:07:18
Oui tu dois ajouter un /etc/rc.local et mettre dedans tous les scripts persos que tu veux demarrer au boot du systeme.
Marsh Posté le 10-06-2002 à 20:28:47
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 ? 
Marsh Posté le 10-06-2002 à 20:45:43
bon j ai reussit a ouvrir des comptes virtuels ... 
 
mais anonymous marche toujours ! comment l empecher de fonctionner ? 
Marsh Posté le 10-06-2002 à 22:15:15
Vire le compte Ftp ou lance le serveur avec l'option -e .
Marsh Posté le 10-06-2002 à 22:24:00
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 ... 
Marsh Posté le 14-06-2002 à 03:24:59
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
var/log/pureftpd.log -l mysql usr/local/etc/pureftpd-mysql.conf
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
 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 | 
Marsh Posté le 09-06-2002 à 15:21:41
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
Message édité par bemixam le 06-09-2002 à 15:23:07