Salut les gars,
j'ai voulu changer le port de proftpd , mais cela n'a pas marcher,
ducoup j'ai voulu repasser au port 21 mais cela ne refonctionne pas... avant ca fonctionnais,
pourtant dans mon sudo nano /etc/proftpd/proftpd.conf
j'ai bien Port 21
de plus, mon port 21 est bien ouvert ,
une idée ? :?: merci
lsof -i :21
Merci pourta réponse,
cette commande ne me retourne rien en console , et ca ne marche pas plus?
Aprés avoir changer de port tu as bien relancé le service proftpd ?
Cette commande permet (paramétrée comme telle) de savoir quel service écoute sur le port 21. Quand quelque chose écoute, tu auras une sortie proche de ça :
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
vsftpd 12466 root 3u IPv6 330555901 0t0 TCP *:ftp (LISTEN)
Regardes dans tes logs, tu devrais avoir un message t'indiquant ce qui bloque proftpd au redémarrage.
Merci pour vos réponse les gars, oui j'ai bien reload, même reboot le serveur
quand je
sudo /etc/init.d/proftpd reload
dans /var/logs/proftpd.logs
2016-06-29 09:40:10,066 raspberrypi proftpd[626] raspberrypi: received SIGHUP -- master server reparsing configuration file
2016-06-29 09:42:05,875 raspberrypi proftpd[626] raspberrypi: ProFTPD killed (signal 15)
2016-06-29 09:42:05,876 raspberrypi proftpd[626] raspberrypi: ProFTPD 1.3.5 standalone mode SHUTDOWN
2016-06-29 09:42:06,260 raspberrypi proftpd[1094] raspberrypi: ProFTPD 1.3.5 (stable) (built Tue May 19 2015 22:21:58 UTC) standalone mode STARTUP
j'ai trouvé ça
2016-06-25 17:12:26,497 raspberrypi proftpd[968] raspberrypi: Failed binding to ::, port 21: Adresse déjà utilisée
2016-06-25 17:12:26,497 raspberrypi proftpd[968] raspberrypi: Check the ServerType directive to ensure you are configured correctly
2016-06-25 17:12:26,498 raspberrypi proftpd[968] raspberrypi: Check to see if inetd/xinetd, or another proftpd instance, is already using ::, port 21
2016-06-25 17:12:26,498 raspberrypi proftpd[968] raspberrypi: Unable to start proftpd; check logs for more details
sudo -i
lsof -i :21 # ça dit quoi ?
ps aux | grep proftpd # ça dit quoi ?
sudo service proftpd stop # seulement si le ps a parlé
sudo service proftpd start
ps aux | grep proftpd # ça dit quoi ?
lsof -i :21 # ça dit quoi ?
Et regardes à nouveau tes logs
merci pour ta réponse,
après le lsof :
proftpd 2035 proftpd 0u IPv6 17867 0t0 TCP *:ftp (LISTEN)
après le ps aux grep proftpd :
proftpd 2035 0.0 0.3 13912 3672 ? Ss juin29 0:01 proftpd: (accepting connections)
root 4292 0.0 0.2 4300 2016 pts/1 S+ 08:31 0:00 grep proftpd
je stop start, puis ps aux greg proftpd
proftpd 4358 0.0 0.3 13912 3672 ? Ss 08:31 0:00 proftpd: (accepting connections)
root 4363 0.0 0.2 4300 2016 pts/1 S+ 08:31 0:00 grep proftpd
puis
proftpd 4358 proftpd 0u IPv6 45687 0t0 TCP *:ftp (LISTEN)
merci pour ton aide, je débute :/
mon /var/log/proftpd.log
2016-06-29 11:00:58,933 raspberrypi proftpd[1533] raspberrypi: Unable to start proftpd; check logs for more details
2016-06-29 11:01:11,925 raspberrypi proftpd[1289] raspberrypi: received SIGHUP -- master server reparsing configuration file
2016-06-29 14:28:05,920 raspberrypi proftpd[1289] raspberrypi: ProFTPD killed (signal 15)
2016-06-29 14:28:05,922 raspberrypi proftpd[1289] raspberrypi: ProFTPD 1.3.5 standalone mode SHUTDOWN
2016-06-29 14:28:20,236 raspberrypi proftpd[2035] raspberrypi: ProFTPD 1.3.5 (stable) (built Tue May 19 2015 22:21:58 UTC) standalone mode STARTUP
2016-06-30 08:31:26,335 raspberrypi proftpd[2035] raspberrypi: ProFTPD killed (signal 15)
2016-06-30 08:31:26,338 raspberrypi proftpd[2035] raspberrypi: ProFTPD 1.3.5 standalone mode SHUTDOWN
2016-06-30 08:31:30,119 raspberrypi proftpd[4358] raspberrypi: ProFTPD 1.3.5 (stable) (built Tue May 19 2015 22:21:58 UTC) standalone mode STARTUP
up
Tu devrais avoir des logs propres à proftpd dans /var/log
. Regardes également si tu peux paramétrer la verbosité des logs dans sa conf.