#1 Le 23/11/2015, à 08:47
- scarabdore
Server PROFTPD non fonctionnel
Bonjour, j'ai installer un serveur proftpd, qui semble opérationnel après installation (lancement du service sans incident apparent)
Seulement le serveur ne fonctionne pas.
Les seuls erreurs visibles sont dans /var/log/ftptpd/proftpd.log
nov. 23 06:40:35 localhost proftpd[31301] localhost: socket() failed in connection initialization:Permission non accordée
Je ne comprend pas cette erreur car lors du démarrage du service :
sudo service proftpd restart
Le service est noté comme étant bien démarré (sans erreur)
Quelqu'un à t'il déjà rencontré cette erreur ?
PS : j'ai suivi certaine piste sur les forums mais sans aucuns succès..
Merci par avance
Hors ligne
#2 Le 23/11/2015, à 19:25
- Banhart
Re : Server PROFTPD non fonctionnel
Salut,
Le service tourne ?
ps -ef|grep proftpd
Le port 21 est t'il en mode LISTEN ?
netstat -tulpn
Tu peux essayer de lancer le service sans passer par initd.
service stop proftpd
et lancer le service en mode debug
proftdp -d 10
Hors ligne
#3 Le 23/11/2015, à 21:19
- scarabdore
Re : Server PROFTPD non fonctionnel
Merci pour votre réponse Banhart
Le service tourne ?
ps -ef|grep proftpd
5000 4015 3538 0 20:59 pts/0 00:00:00 grep proftpd
Le port 21 est t'il en mode LISTEN ?
le netstat -tulpn ne renvoit rien sur le port 21 (pas d'écoute)
Le lancement du service, sans passer par le int.d ne donne rien non plus. C'est identique
et lancer le service en mode debug
/usr/sbin/proftpd -d 10
localhost proftpd[5284]: using PCRE 8.30 2012-02-04
localhost proftpd[5284]: using TCP receive buffer size of 1048576 bytes
localhost proftpd[5284]: using TCP send buffer size of 524288 bytes
localhost proftpd[5284]: unable to bind to Unix domain socket at '/var/run/test.sock': Permission denied
localhost proftpd[5284]: ROOT PRIVS at mod_core.c:358
localhost proftpd[5284]: ROOT PRIVS: unable to seteuid(): Opération non permise
localhost proftpd[5284]: ROOT PRIVS: unable to setegid(): Opération non permise
localhost proftpd[5284]: loading 'mod_ctrls_admin.c'
localhost proftpd[5284]: loading 'mod_tls.c'
localhost proftpd[5284]: mod_tls/2.4.3: using OpenSSL 1.0.1e 11 Feb 2013
localhost proftpd[5284]: loading 'mod_radius.c'
localhost proftpd[5284]: loading 'mod_quotatab.c'
localhost proftpd[5284]: loading 'mod_quotatab_file.c'
localhost proftpd[5284]: loading 'mod_quotatab_radius.c'
localhost proftpd[5284]: loading 'mod_wrap.c'
localhost proftpd[5284]: loading 'mod_rewrite.c'
localhost proftpd[5284]: loading 'mod_load.c'
localhost proftpd[5284]: loading 'mod_ban.c'
localhost proftpd[5284]: loading 'mod_wrap2.c'
localhost proftpd[5284]: loading 'mod_wrap2_file.c'
localhost proftpd[5284]: loading 'mod_dynmasq.c'
localhost proftpd[5284]: loading 'mod_exec.c'
localhost proftpd[5284]: loading 'mod_shaper.c'
localhost proftpd[5284]: loading 'mod_ratio.c'
localhost proftpd[5284]: loading 'mod_site_misc.c'
localhost proftpd[5284]: loading 'mod_sftp.c'
localhost proftpd[5284]: mod_sftp/0.9.8: using OpenSSL 1.0.1e 11 Feb 2013
localhost proftpd[5284]: loading 'mod_sftp_pam.c'
localhost proftpd[5284]: loading 'mod_facl.c'
localhost proftpd[5284]: mod_facl/0.4: registered 'facl' FS
localhost proftpd[5284]: loading 'mod_unique_id.c'
localhost proftpd[5284]: loading 'mod_copy.c'
localhost proftpd[5284]: loading 'mod_deflate.c'
localhost proftpd[5284]: mod_deflate/0.5.5: using zlib 1.2.7
localhost proftpd[5284]: loading 'mod_ifversion.c'
localhost proftpd[5284]: loading 'mod_ifsession.c'
localhost proftpd[5284]: RELINQUISH PRIVS at mod_core.c:380
localhost proftpd[5284]: RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Opération non permise
localhost proftpd[5284]: RELINQUISH PRIVS: unable to setegid(session.gid): Opération non permise
localhost proftpd[5284]: RELINQUISH PRIVS: unable to seteuid(session.uid): Opération non permise
localhost proftpd[5284]: DenyFilter: compiling regex '\*.*/'
localhost proftpd[5284]: <IfModule>: using 'mod_dynmasq.c' section at line 55
localhost proftpd[5284]: retrieved UID 103 for user 'proftpd'
localhost proftpd[5284]: retrieved GID 65534 for group 'nogroup'
localhost proftpd[5284]: ROOT PRIVS at mod_log.c:588
localhost proftpd[5284]: RELINQUISH PRIVS at mod_log.c:593
localhost proftpd[5284]: RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Opération non permise
localhost proftpd[5284]: RELINQUISH PRIVS: unable to setegid(session.gid): Opération non permise
localhost proftpd[5284]: RELINQUISH PRIVS: unable to seteuid(session.uid): Opération non permise
localhost proftpd[5284]: Fatal: SystemLog: unable to redirect logging to '/var/log/proftpd/proftpd.log': Permission non accordée on line 90 of '/etc/proftpd/proftpd.conf'
Beaucoup de permissions non accordées. Je ne comprend pas trop...
Dernière modification par scarabdore (Le 23/11/2015, à 22:16)
Hors ligne
#4 Le 24/11/2015, à 06:40
- scarabdore
Re : Server PROFTPD non fonctionnel
Le problème doit être propre à proFTPd, parce que j'ai essayé d'installer Pure-FTPd et là pas de soucis.
Le serveur fonctionne parfaitement sur le port 21 dès l'installation.
Par contre impossible de me connecter en mode passif sur le serveur. (Refusé)
Il n'y a que le mode actif qui est fonctionnel.
Hors ligne
#5 Le 24/11/2015, à 19:15
- Banhart
Re : Server PROFTPD non fonctionnel
Il faut lancer les commandes avec sudo ou en root.
D'après le
ps -ef|grep proftpd
5000 4015 3538 0 20:59 pts/0 00:00:00 grep proftpd
le service ne tourne pas.
Et un
chown proftpd: /var/log/proftpd.log
Dernière modification par Banhart (Le 24/11/2015, à 19:16)
Hors ligne
#6 Le 25/11/2015, à 05:59
- scarabdore
Re : Server PROFTPD non fonctionnel
Oui en effet le service ne tourne pas. Même en lançant le service en root, cela ne change rien il y a toujours l'erreur d'opération non permise dans le log.
Hors ligne
#7 Le 28/11/2015, à 14:15
- scarabdore
Re : Server PROFTPD non fonctionnel
J'ai finalement abandonné proFTPd pour passer à pure-ftpd.
Ce dernier fonctionne très bien avec les utilisateurs physique (mode passif y compris)
Par contre avec les utilisateurs virtuels, seul le mode actif fonctionne.
Pour ce qui est du mode passif, j'ai une erreur du type permission denied.
Je ne comprend pas, j'ai pourtant bien suivi les tutos et aussi créer le liens symbolique demandé...
Hors ligne