J'essaie de mettre en place un serveur FTP sur une machine Centos mais lors de démarrage de service vsftp le système m'affiche l'erreur suivante :
Job for vsftpd.service failed. See 'systemctl status vsftpd.service' and 'journalctl -xn' for details.
Voila le fichier de configuration vsftpd.conf:
[root@localhost vsftpd]# vi vsftpd.conf
# Port d'écoute
listen_port=21
# Bannière de bienvenue
ftpd_banner=Bienvenue sur mon serveur VSFTPD !
# Fichier de configuration de PAM
pam_service_name=vsftpd
# Mode "standalone"
listen=YES
# Pas de connexion anonyme
anonymous_enable=NO
# Les utilisateurs système sont autorisés
local_enable=YES
# Fichier des utilisateurs
userlist_file=/etc/vsftpd/user_list
# Chargement de la liste userlist_file
userlist_enable=YES
# Il est indiqué ici que cette liste est celle des identifiants refusés, par ceux autorisés
userlist_deny=NO
# Un utilisateur virtuel pourra télécharger un fichier même s'il n'est pas lisible par tous
anon_world_readable_only=NO
# Refus des commandes influant sur le système de fichier (STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE)
write_enable=NO
# Refus des droits d'écriture pour les anonymes (et donc utilisateurs virtuels) par défaut
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
# Activation des utilisateurs virtuels et mappage sur le compte local ftp
guest_enable=YES
guest_username=ftp
# chroot des utilisateurs
chroot_local_user=NO
# Nombre maximum de connexions simultanées
max_clients=50
# Nombre maximum de connexions venant de la même IP
max_per_ip=4
# Dossier de configuration spécifique des utilisateurs
user_config_dir=/etc/vsftpd/vsftpd_user_conf
Quelqu'un aurait il une idée pour remédier à ce problème !?
Merci d'avance.
Salut,
Oui et voilà le retour des commande qu'on me demande d'exécuter :
1. #systemctl status vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled)
Active: failed (Result: exit-code) since Tue 2014-12-02 09:19:15 WET; 5min ago
Process: 24991 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2)
Main PID: 11501 (code=killed, signal=TERM)
Dec 02 09:19:15 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Dec 02 09:19:15 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Dec 02 09:19:15 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Dec 02 09:19:15 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
2.journalctl -xn
-- Logs begin at Mon 2014-12-01 12:57:46 WET, end at Tue 2014-12-02 09:25:02 WET. --
Dec 02 09:19:15 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Created slice user-0.slice.
-- Subject: Unit user-0.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit user-0.slice has finished starting up.
-- The start-up result is done.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Starting Session 148 of user root.
-- Subject: Unit session-148.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit session-148.scope has begun starting up.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Started Session 148 of user root.
-- Subject: Unit session-148.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit session-148.scope has finished starting up.
-- The start-up result is done.
Dec 02 09:20:01 localhost.localdomain CROND[25007]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 02 09:20:01 localhost.localdomain systemd[1]: Failed to mark scope session-148.scope as abandoned : Stale file handle
Dec 02 09:25:02 localhost.localdomain dbus-daemon[656]: dbus[656]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 02 09:25:02 localhost.localdomain dbus[656]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 02 09:25:02 localhost.localdomain dbus-daemon[656]: dbus[656]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Dec 02 09:25:02 localhost.localdomain dbus[656]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Modifié par omarou le 2/12/2014 à 10:32
Oui et voilà le retour des commande qu'on me demande d'exécuter :
1. #systemctl status vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled)
Active: failed (Result: exit-code) since Tue 2014-12-02 09:19:15 WET; 5min ago
Process: 24991 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2)
Main PID: 11501 (code=killed, signal=TERM)
Dec 02 09:19:15 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Dec 02 09:19:15 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Dec 02 09:19:15 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Dec 02 09:19:15 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
2.journalctl -xn
-- Logs begin at Mon 2014-12-01 12:57:46 WET, end at Tue 2014-12-02 09:25:02 WET. --
Dec 02 09:19:15 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Created slice user-0.slice.
-- Subject: Unit user-0.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit user-0.slice has finished starting up.
-- The start-up result is done.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Starting Session 148 of user root.
-- Subject: Unit session-148.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit session-148.scope has begun starting up.
Dec 02 09:20:01 localhost.localdomain systemd[1]: Started Session 148 of user root.
-- Subject: Unit session-148.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit session-148.scope has finished starting up.
-- The start-up result is done.
Dec 02 09:20:01 localhost.localdomain CROND[25007]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 02 09:20:01 localhost.localdomain systemd[1]: Failed to mark scope session-148.scope as abandoned : Stale file handle
Dec 02 09:25:02 localhost.localdomain dbus-daemon[656]: dbus[656]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 02 09:25:02 localhost.localdomain dbus[656]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 02 09:25:02 localhost.localdomain dbus-daemon[656]: dbus[656]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Dec 02 09:25:02 localhost.localdomain dbus[656]: [system] Successfully activated service 'org.freedesktop.PackageKit'
2 déc. 2014 à 10:30
-- Unit user-0.slice has finished starting up.