LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-30-2014, 05:41 AM   #1
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Rep: Reputation: Disabled
Slackware 14.1 server vsFTPd : Can't to connect


Hi,

I activated and configured FTP server vsftpd on Slackware 14.1, I can't to connect on it.
I don't use firewall.

Test server :
Code:
# ncftp -u install localhost
NcFTP 3.2.5 (Jan 17, 2011) by Mike Gleason (http://www.NcFTP.com/contact/).
Connecting to 127.0.0.1...                                                                                                                   
(vsFTPd 3.0.2)
Logging in...                                                                                                                                
Password requested by 127.0.0.1 for user "install".

    Please specify the password.

Password: ******

Login successful.
Logged in to localhost.                                                                                                                      
ncftp / > ls
Passive mode refused.
List failed.

Log on FTP client, FileZilla :
Code:
Status: Resolving address of ****
Status:	Connecting to *.*.*.*:21...
Status:	Connection established, waiting for welcome message...
Response:	220 (vsFTPd 3.0.2)
Command:	USER install
Response:	331 Please specify the password.
Command:	PASS ******
Response:	230 Login successful.
Command:	OPTS UTF8 ON
Response:	200 Always in UTF8 mode.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	500 OOPS: priv_sock_get_int
Command:	PORT 192,168,2,10,199,168
Error:	Disconnected from server: ECONNABORTED - Connection aborted
Error:	Failed to retrieve directory listing
Any ideas/suggestions ?
Thanks
 
Old 04-30-2014, 05:46 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,552

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Mind to post your configurations?
 
Old 04-30-2014, 05:49 AM   #3
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
/etc/vsftpd.conf
Code:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
chroot_local_user=YES
ls_recurse_enable=YES
listen=NO
userlist_enable=YES
userlist_deny=NO
check_shell=NO
userlist_file=/etc/vsftpd.user_list
allow_writeable_chroot=YES
/etc/vsftpd.user_list
Code:
install

Last edited by Shkel; 04-30-2014 at 05:59 AM.
 
Old 04-30-2014, 06:04 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,552

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
try remove this line
Code:
userlist_enable=YES
 
Old 04-30-2014, 07:23 AM   #5
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
try remove this line
Code:
userlist_enable=YES
Same problem, not working.

Last edited by Shkel; 04-30-2014 at 07:26 AM.
 
Old 04-30-2014, 08:00 AM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
try adding
Code:
pasv_enable=YES
between the configuration options
 
Old 04-30-2014, 08:22 AM   #7
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
try adding
Code:
pasv_enable=YES
between the configuration options
I added it, not working again.
 
Old 04-30-2014, 08:30 AM   #8
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by Shkel View Post
I added it, not working again.
well, but the logs are exactly the ones you posted in the first message?
what does the server log (in /var/log) says?
as you are using chroots and check_shell=NO, which is the shell of the user you are testing?
have you tested it without chroots?

Last edited by ponce; 04-30-2014 at 08:32 AM.
 
Old 04-30-2014, 09:40 AM   #9
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
well, but the logs are exactly the ones you posted in the first message?
Yes I do.

Quote:
what does the server log (in /var/log) says?
It is empty.

Quote:
as you are using chroots and check_shell=NO, which is the shell of the user you are testing?
have you tested it without chroots?
I'm using with an user without shell (bin/false).

I go to try reinstall Slackware, I think that the installation is not good healthy.
 
Old 04-30-2014, 09:43 AM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,552

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I would try with a minimalist configuration first rather than blaming Slackware installation
One step at a time
 
Old 04-30-2014, 09:52 AM   #11
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
I would try with a minimalist configuration first rather than blaming Slackware installation
One step at a time
Don't worry willysr, it is a testing installation.
I just wanted to find the solution without too much hassle

Last edited by Shkel; 04-30-2014 at 01:00 PM.
 
Old 04-30-2014, 09:56 AM   #12
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
remember to do a full install, as it's the only one supported.
 
Old 04-30-2014, 11:50 AM   #13
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,602

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by willysr View Post
I would try with a minimalist configuration first rather than blaming Slackware installation
One step at a time
The user is missing a bit of a context here. Actually he's one of my students, and he's been trying to configure vsftpd on an installation he performed a couple months ago. He's done much work on it, and he may occasionally have shot his own foot. My own advice to him was to try a clean installation, since some of the test results were weird.
 
Old 04-30-2014, 02:55 PM   #14
Shkel
LQ Newbie
 
Registered: Apr 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
It works fine with a clean installation

Last edited by Shkel; 04-30-2014 at 02:57 PM.
 
1 members found this post helpful.
Old 04-30-2014, 04:23 PM   #15
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,602

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Congrats! Now mark this thread as [SOLVED].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to FTP server running vsftpd eswafford Linux - Software 1 07-19-2007 08:56 AM
users cant connect to vsftpd server SBN Linux - Networking 1 01-25-2007 08:43 PM
ubuntu client to connect to vsftpd server icga Linux - Software 7 02-08-2006 07:22 PM
vsftpd server: can connect locally, not remotely propz Linux - Networking 2 10-24-2005 12:59 AM
could not connect my vsftpd server exper Linux - Networking 2 07-26-2003 02:54 AM


All times are GMT -5. The time now is 11:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration