#1  
Old 3rd May 2009, 14:37
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default problem vsftpd "No /usr/sbin/vsftpd found running; none killed"

Hello
when i tried to restart my vsftpd server i've got this error
* Stopping FTP server: vsftpd
No /usr/sbin/vsftpd found running; none killed.
[ OK ]
* Starting FTP server: vsftpd [ OK ]

and this is what in my vsftpd.conf
Quote:
#Pour configurer vsFTPd à écouter en mode StandAlone
listen = YES

# Pour autoriser les connexions annonymes
anonymous_enable = YES
#Pour ne pas autoriser les users anon à écrir dans le dir FTP
anon_mkdir_write_enable = NO
#Spécifier le dossier FTP des user anon
anon_root = /etc/lftp/
#Interdir aux users anon d'envoyer des fichiers
anon_upload_enable = NO
#Autoriser les users anon de télécharger les fichier du dossier anon_root
anon_world_readable_only = YES
#o_O
ftp_username = ftp
#Pour que les anon ne saisissent pas de mot de passe
no_anon_passwd = NO
#o_O give anonymously uploaded files permissions
anon_umask=022
#Pour question de sécuriter en interdit toute opération d'écriture
write_enable=NO
anon_other_write_enable=NO


ftp_banner = "Bienvenu dans le serveur FTP de ahmed"

#Pour autoriser la connexion des utilisateur locaux
local_enable = YES
#Autoriser les cmd FTP SITE CHMOD pour les local users
chmod_enable = YES
#Pour chrooter les local user dans leurs dossiers perso
chroot_local_user = YES
#o_O
local_umask = 000

#Pour visioner la liste des dir
dirlist_enable = YES

#Téléchargement des fichiers autorisés
download_enable = YES

#Pour avoir un monitoring ( les user connecté )
setproctitle_enable = YES

####################
# Option numérique #
###################

#Spécifie la durée donnée à un client utilisant une connexion passive pour se connecter
accept_timeout = 60

#Spécifie le taux de transfert de données maximal, exprimé en octets par seconde, pour les utilisateurs anonymes
anon_max_rate = 0

#Spécifie la durée maximale exprimée en secondes, donnée à un client utilisant un mode actif pour répondre à une connexion de données.
CONNECT_TIMEOUT = 60

#Spécifie la durée maximale exprimée en secondes, pendant laquelle les transferts de données peuvent s'arrêter.
#Une fois cette durée écoulée, la connexion au client distant est fermée.
data_connection_timeout = 60

# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES

#Spécifie le port sur lequel vsftpd doit être à l'écoute de connexions réseau.
listen_port = 21

#Spécifie le nombre maximal de clients autorisés à se connecter simultanément au serveur lorsqu'il tourne en mode autonome.
#Toute connexion client supplémentaire provoquerait un message d'erreur.
max_clients = 20

#Spécifie le nombre maximal de clients autorisés à se connecter depuis l'adresse IP source.
max_per_ip = 2

##########################
#configurer vsftp pour #
#les connection internet #
##########################

#Activer le mode passive
pasv_enable = YES

#Vérifier que la machine qui a demandé la connexion au serveur est bien la même que celle qui demande
#à recvoir les données
pasv_promicious = No

#Spécifie le port le plus bas possible qui est envoyé au client FTP pour des connexions en mode passif.
pasv_min_port = 40000

#Spécifie le port le plus max possible qui est envoyé au client FTP pour des connexions en mode passif.
pasv_min_port = 40100

#@ ip ou domaine.com avec pasv_addr_resolve = YES
pasv_adress = 192.168.0.2


port_promicious = NO


# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#


# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#

# You may fully customise the login banner string:
ftpd_banner=Welcome to ahmed FTP service.

# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
use_localtime=YES


and when i try to connect to ftp server i got this error : ftp: connect: Connection refused
can someone help me
thank you
__________________
99% of the problemes that are found in linux are located between the keyboard and chair

Last edited by ahmedbj; 4th May 2009 at 00:47.
Reply With Quote
Sponsored Links
  #2  
Old 4th May 2009, 08:20
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Do you find vsftpd listening on port 21 if you check netstat -tap?
What does the log tell (should be /var/log/vsftpd.log or /var/log/xfer.log or similar).

How do you try to connect? ftp, ftps (which port?)
Reply With Quote
  #3  
Old 4th May 2009, 12:48
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default

Quote:
Do you find vsftpd listening on port 21 if you check netstat -tap?
no it's not listening

Quote:
How do you try to connect? ftp, ftps (which port?)
if you mean by ftps ftp over ssl, yes and port it's 20, i think that it does existe in my config file??
__________________
99% of the problemes that are found in linux are located between the keyboard and chair
Reply With Quote
  #4  
Old 5th May 2009, 14:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Which distribution are you using? How exactly did you install vsftpd?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 5th May 2009, 16:13
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

If vsftpd is not listening, this explains the "connection refused" thing. But you should see any startup errors when starting vsftpd, if not on the screen then at least in the log I'd guess.
So either the [OK] behind "starting" in your restart process is misleading or vsftpd is crashed anywhen after a successful start, as it indicated "ok".
Reply With Quote
  #6  
Old 5th May 2009, 17:46
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default

sorry, i had made some error in my vsftpd.conf and now i correct them.
but there is another problem now, is that when i had configured vsftpd with ssl i can't connect with local user neither from my web browser nor the console.
i hade a message : error 530 : non-anonymous user must be used encryption

that's what i added to my vsftpd.conf

Quote:
# Options for SSL
# encrypted connections.

ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES

ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES

rsa_cert_file=/etc/ssl/certs/vsftpd.pem
so how i can encrypted acces to local users ?
thank you
__________________
99% of the problemes that are found in linux are located between the keyboard and chair
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my vsftpd not compeleting start kara_iran Server Operation 5 6th May 2009 21:37
Probleme with vsFTPd ahmedbj Server Operation 6 20th January 2009 13:33
VsFTPd with Quota and MySQL (if possible) markg85 Suggest HOWTO 2 16th August 2007 16:01
vsftpd difficulties teves Installation/Configuration 2 19th October 2006 09:51
VSFTPD & IDENT Lookups again trueshanti Installation/Configuration 5 3rd September 2006 14:36


All times are GMT +2. The time now is 09:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.