Cherche client & serveur ftp

Bonjour à tous,
après quelques essais j’ai réussi à installer ma debian sarge 3.1 en dual boot avec Win…(vous écrirez la fin moi j’ai pas le courage).
Tout roule et les drivers nvidia opensource sont aussi efficace que ceux du constructeurs.
enpassant je remercie celui qui m’avait conseiller de les installers.

Bon voilà ma question, je cherche un bon client et un bon serveur FTP. si quelqu’un en connait un qu’il me fasse signe !! ( je suis sous sarge 3.1 et kde)
merci à tous @ bientôt.

J’ai installer proftpd qui est le plus connu des serveurs ftp, l’activité sur celui-ci est importante et je n’ai jamais rencontré aucun problème. Pour le client ftp, tu en as plein de disponible mais j’utilise Gftp qui ne me pose aucun problème.

Voila, j’espere avoir répondu à ta question.

salut, est-ce qu’ils sont installable par l’apt-get ?

oui

merci (impeccable le support multi-utilisateurs :slightly_smiling: )

luciole:~# apt-cache search proftp
gforge-ftp-proftpd - Collaborative development tool - FTP management (using ProFTPd)
webmin-proftpd - Proftpd module for webmin
ftpd - FTP server
gproftpd - GTK+ configuration tool for proftpd
proftpd - Versatile, virtual-hosting FTP daemon
proftpd-common - Versatile, virtual-hosting FTP daemon
proftpd-doc - Versatile, virtual-hosting FTP daemon (Documentation)
proftpd-ldap - Versatile, virtual-hosting FTP daemon (with LDAP support)
proftpd-mysql - Versatile, virtual-hosting FTP daemon (with SQL support)
proftpd-pgsql - Versatile, virtual-hosting FTP daemon (with SQL support)
luciole:~#

pour ce qui est des clients:

je test et je vous tiens au courant , merci @ +

bonjour,
alors, ça donne quoi ? aprés quelques semaines d’usages je pense …
je me tâte entre proftpd et pure-ftp …
merci .

pour le client je prend filezilla, je trouve que c’est bien :

[quote]nom du paquet : filezilla3_FileZilla3-1_i386.deb
ah si je sais :
google.fr/search?hl=fr&q=fil … ogle&meta=[/quote]

salut,
j’ai basculé vers pure-ftpd qui est plus facile à configurer pour les virtualusers.
mais je me connecte avec flashfxp depuis un client windows etpour linux je préfère aussi filezilla qui accepte les connexion sftp avec ssh 1 et 2

bonjour,
finalement, j’ai installé proftpd, comme c’est un paquet debian, pour simplifier un peu lol . Je rencontre un petit probleme cependant, j’ai opté pour la configuration inetd et non standalone, bon, mais dans le tuto que je suis, on demande de
le lancer en standalone:[size=150]Proftpd[/size] pour faire le test . Quel est la commande pour le lancer manuellement, quand bon me
semble ?
sachant que j’ai fait pour le moment :

debian:/mnt/ftp# proftpd localhost.localdomain - fatal: Socket operation on non-socket localhost.localdomain - (Running from command line? Use `ServerType standalone' in config file!) debian:/mnt/ftp# /usr/sbin/proftpd localhost.localdomain - fatal: Socket operation on non-socket localhost.localdomain - (Running from command line? Use `ServerType standalone' in config file!) debian:/mnt/ftp# ls -al total 7 drwxrwxrwx 7 root root 1024 2006-05-29 09:46 . drwxr-xr-x 3 root root 1024 2006-05-29 09:45 .. drwxrwxrwx 2 root root 1024 2006-05-29 09:46 audios drwxrwxrwx 2 root root 1024 2006-05-29 09:46 documents drwxrwxrwx 2 root root 1024 2006-05-29 09:46 images drwxrwxrwx 2 root root 1024 2006-05-29 09:46 programmes drwxrwxrwx 2 root root 1024 2006-05-29 09:46 videos debian:/mnt/ftp#
Et, est-ce que je ne doit pas changer des droits, user, groupe, pour les repertoires de ftp ?

reconfigures le en standalone:
dpkg-reconfigure proftpd

aprés, pour le tester:
invoke-rc.d proftpd start

merci MattOTop, mais , donc on ne peut pas le lancer autrement qu’en standalone ? pourquoi ?

si si, ce n’est pas ce que j’ai dit.
Simplement, je ne sais pas le lancer ni l’arrèter en inetd.
Donc, ta question etant: comment peut on le tester, je te propose juste la solution que je connais. Mais si tu sais l’arrèter quand il est en inetd…

bon ok, je vais faire comme ça en attendant, pour les droits et appartenance des répertoires de /mnt/ftp, c’est bon, ça doit être en root ?

ça dépend du nom sous lequel tourne ton proftpd.
Pour ce qui est des droits d’accés, AMA, ils sont trop ouverts, il va falloir resserrer.
Pour la manière dont proftpd gère les droits, là, je ne sais pas trop.
Tu devrais laisser ton rep ftp vide, et créer ton arborescence avec un usetr proftpd ayant des droits d’administration, pour que ce soit proftpd qui gère bien les droits sur les repertoires.
Enfin c’est comme ça que je ferais.

Oui …
Avant de le tester en standalone, comme je googlisais un peu, je suis tombé sur un exemple de config pour lancer proftpd en mode indetd, que je voudrais adapter, mais avant, quelques résultats de commande qui pourrait parler à quelqu’un lol :

jcode@debian:/etc/init.d$ /usr/sbin/proftpd
localhost.localdomain - PRIVS_ROOT: unable to seteuid(): Operation not permitted
localhost.localdomain - PRIVS_ROOT: unable to setegid(): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
localhost.localdomain - mod_delay/0.4: error opening DelayTable '/var/run/proftpd/proftpd.delay': Operation not permitted
localhost.localdomain - unable to set daemon groups: Operation not permitted
localhost.localdomain - unable to set uid to 1001, current uid: 1000
jcode@debian:/etc/init.d$ who
jcode    :0           May 29 08:31
jcode    pts/0        May 29 08:58 (:0.0)
jcode@debian:/etc/init.d$ who am i
jcode    pts/0        May 29 08:58 (:0.0)
jcode@debian:/etc/init.d$ whoami
jcode
jcode@debian:/etc/init.d$ su adminftp
Password:
jcode@debian:/etc/init.d$ whoami
jcode

Explications : je me suis dit que je ne pouvais peut-être pas le lancer en root, ni sous l’user habituel …
j’ai ajouté 2 users, adminftp, et userftp, avec leurs passwd resperctifs.
Je me dis que c’est sous adminftp que je dois lancer proftpd… mais j’y arrive pas …
Je me dis aussi que les répertoires ftp doivent apartenir à adminftp non ?
Voilà l’exemple de config que j’ai trouvé, pour inetd, mais on y parle de xinetd, que je n’ai pas …

Faut il que je crée un repertoire xinetd ?
Ou faut-il que j’insère le code dans proftpd.conf ? et que je lance proftp par service inetd restart pour relancer et /usr/sbin/proftpd ?

Tu mélanges tout !
Tel que tu fais tes ls, ça laisse entendre que tu n’es pas en xinetd, mais en inetd… Tu pourras passer en inetd, mais plus tard. Si tu es passé en standalone, de toutes façons, tu ne t’en préoccupe pas.

Si tu as installé en standalone, c’est le script dans /etc/init.d qui choisit l’user sous lequel se lance le demon, c’est pas toi qui choisit.
je te rappelle de faire tes arrets/redemarrage avec invoke-rc.d, ou en lançant le script dans /etc/init.d

Résouds donc tes problêmes un par un:
as tu un fonctionnement “standalone” qui fonctionne avec zero configuration, déjà ?

Ensuite, tu regarderas sous quel user ça tourne, et tu gèreras les droits.
Mais commences juste par faire marcher ton proftpd, avant de te lancer dans de la config fine.

okay, but si on lit la citation que j’ai faite, intitulée : 2°) Configuration en mode inetd :
et qui finit par cette ligne : service xinetd restart
je n’ai pas l’impression de mélanger, juste de suivre à la lettre ce qui est écrit lol.
Je pourrais aussi suivre à la lettre ce que tu m’a conseillé, de le configurer en mode standalone, mais pour le moment je ne le fait pas pour plusieurs raisons :

  • [quote=“usinagaz”]Avant de le tester en standalone, comme je googlisais un peu, je suis tombé sur un exemple de config pour lancer proftpd en mode indetd[/quote], ainsi, je persevère en inetd, sans désespérer de trouver un bon tuto qui explique comment faire.

  • On nous laisse le choix entre : inetd ou standalone, bien; moi j’ai choisi inetd (manque de bol mais bon… il est dit nul part que ce mode est réservé aux personnes confirmées). Comme j’aime pas qu’on me propose le choix entre m’arracher les cheveux et bien m’amuser, en me disant que c’est pareil, que dans tous les cas je vais bien m’amuser, ce que fait la config de proftpd en me laissant le choix sans autres explications, je cherche à savoir pourquoi inetd ça veut pas, avant de me rabattre sur une autre solution, de facilité …

  • Et je me dis que, puisque inetd ne coule pas de source, je vais m’y atteler, avec votre aide enfin …

Là je me demande juste pourquoi je n’ai pas de repertoire xinetd.d, de meta-daemon xinetd, alors qu’il en est question; bon, si je tente d’adapter, je vois une similitude entre ce qui est dit dans le tuto :
/etc/xinetd.d/proftpd (que je n’ai pas) et /etc/inetd/proftpd (que j’ai), et je suppose qu’il faut que je colle le code :

[quote]service ftp
{
disable = no
flags = REUSE
socket_type = stream
instances = 10
wait = no
protocol = tcp
user = root
server = /usr/local/sbin/in.proftpd
}
[/quote] dans mon fichier proftpd, ce que je fais, ça donne :

#!/bin/sh 

# Start the proftpd FTP daemon.

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/proftpd
NAME=proftpd

# Defaults
RUN="no"
OPTIONS=""
# j'ajoute le code ici : 
service ftp
{
disable = no
flags = REUSE
socket_type = stream
instances = 10
wait = no
protocol = tcp
user = root
server = /usr/local/sbin/in.proftpd
} 

PIDFILE=`grep -i 'pidfile' /etc/proftpd.conf | sed -e 's/pidfile[\t ]\+//i'`
if [ "x$PIDFILE" = "x" ];
then
	PIDFILE=/var/run/proftpd.pid
fi

# Read config (will override defaults)
[ -r /etc/default/proftpd ] && . /etc/default/proftpd

trap "" 1
trap "" 15

test -f $DAEMON || exit 0

#
# Servertype could be inetd|standalone|none.
# In all cases check against inetd and xinetd support.
#
if ! egrep -qi "^[[:space:]]*ServerType.*standalone" /etc/proftpd.conf
then
    if [ $(dpkg-divert --list xinetd|wc -l) -eq 1 ] 
    then
	if egrep -qi "server[[:space:]]*=[[:space:]]*/usr/sbin/proftpd" /etc/xinetd.conf -o \
	   egrep -qi "server[[:space:]]*=[[:space:]]*/usr/sbin/proftpd" /etc/xinetd.d/* 2>/dev/null
	then
    		RUN="no"
    		INETD="yes"
	else
		if ! egrep -qi "^[[:space:]]*ServerType.*inetd" /etc/proftpd.conf
		then
    			RUN="yes"
			INETD="no"
		else
			RUN="no"
			INETD="no"
		fi
	fi
    else
    	if egrep -qi "^ftp.*/usr/sbin/proftpd" /etc/inetd.conf 2>/dev/null
    	then
    		RUN="no"
    		INETD="yes"
    	else
		if ! egrep -qi "^[[:space:]]*ServerType.*inetd" /etc/proftpd.conf
		then
    			RUN="yes"
			INETD="no"
		else
			RUN="no"
			INETD="no"
		fi
    	fi
    fi
fi

start()
{
    if start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
        --exec $DAEMON -- $OPTIONS ; then
        echo "$NAME."
    else
        echo "."
    fi
}

signal()
{
    if [ "$1" = "stop" ]; then
	SIGNAL="TERM"
    else
	if [ "$1" = "reload" ]; then
	    SIGNAL="HUP"
	else
	    echo "ERR: wrong parameter given to signal()"
	fi
    fi
    if start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"; then
        echo "$NAME."
    else
	SIGNAL="KILL"
	if start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"; then
		echo "$NAME."
	else
        	echo "."
	fi
    fi
    if [ "$SIGNAL" = "KILL" ]; then
	    rm -f "$PIDFILE"
    fi
}

case "$1" in
    start)
	if [ "x$RUN" = "xyes" ] ; then
	    echo -n "Starting ProFTPD ftp daemon: "
	    start
	else
	    if [ "x$INETD" = "xyes" ] ; then
		echo "ProFTPd is started from inetd/xinetd."
	    else 
	    	echo "ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration."
	    fi
	fi
	;;

    force-start)
	if [ "x$INETD" = "xyes" ] ; then
	    echo "Warning: ProFTPd is started from inetd/xinetd (trying to start anyway)."
	fi
	echo -n "Starting ProFTPD ftp daemon: "
	start
	;;	
    
    stop)
	if [ "x$RUN" = "xyes" ] ; then
	    echo -n "Stopping ProFTPD ftp daemon: "
	    signal stop
	else
	    if [ "x$INETD" = "xyes" ] ; then
		echo "ProFTPd is started from inetd/xinetd."
	    else 
	    	echo "ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration."
	    fi
	fi
	;;

    force-stop)
	if [ "x$INETD" = "xyes" ] ; then
	    echo "Warning: ProFTPd is started from inetd/xinetd (trying to kill anyway)."
	fi
	echo -n "Stopping ProFTPD ftp daemon: "
	signal stop
	;;

    reload)
	echo -n "Reloading $NAME configuration..."
	signal reload
	echo " done."
	;;

    force-reload|restart)
	if [ "x$RUN" = "xyes" ] ; then
	    echo -n "Restarting ProFTPD ftp daemon."
	    signal stop
	    echo -n "."
	    sleep 2
	    echo -n "."
	    start
	    echo " done."
	else
	    if [ "x$INETD" = "xyes" ] ; then
		echo "ProFTPd is started from inetd."
	    else 
	    	echo "ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration."
	    fi
	fi
	;;

    *)
	echo "Usage: /etc/init.d/$NAME {start|force-start|stop|force-stop|reload|restart|force-reload}"
	exit 1
	;;
esac

exit 0

et j’essai : # service initd restart bash: service: command not found
ben voyons …

debian:/etc/init.d# /etc/init.d/proftpd restart /etc/init.d/proftpd: line 13: service: command not found disable: Operation failed: client-error-not-found /etc/init.d/proftpd: line 16: flags: command not found /etc/init.d/proftpd: line 17: socket_type: command not found /etc/init.d/proftpd: line 18: instances: command not found /etc/init.d/proftpd: line 19: wait: `=': not a pid or valid job spec /etc/init.d/proftpd: line 19: wait: `no': not a pid or valid job spec /etc/init.d/proftpd: line 20: protocol: command not found /etc/init.d/proftpd: line 21: user: command not found /etc/init.d/proftpd: line 22: server: command not found ProFTPd is started from inetd. .............. jcode@debian:/etc/init.d$ /etc/init.d/inetd restart Restarting internet superserver: inetd/etc/init.d/inetd: line 53: start-stop-daemon: command not found /etc/init.d/inetd: line 55: start-stop-daemon: command not found .