LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.1 server vsFTPd : Can't to connect (https://www.linuxquestions.org/questions/slackware-14/slackware-14-1-server-vsftpd-cant-to-connect-4175503429/)

Shkel 04-30-2014 05:41 AM

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 ;)

willysr 04-30-2014 05:46 AM

Mind to post your configurations?

Shkel 04-30-2014 05:49 AM

/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

willysr 04-30-2014 06:04 AM

try remove this line
Code:

userlist_enable=YES

Shkel 04-30-2014 07:23 AM

Quote:

Originally Posted by willysr (Post 5161780)
try remove this line
Code:

userlist_enable=YES

Same problem, not working.

ponce 04-30-2014 08:00 AM

try adding
Code:

pasv_enable=YES
between the configuration options

Shkel 04-30-2014 08:22 AM

Quote:

Originally Posted by ponce (Post 5161834)
try adding
Code:

pasv_enable=YES
between the configuration options

I added it, not working again.

ponce 04-30-2014 08:30 AM

Quote:

Originally Posted by Shkel (Post 5161843)
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?

Shkel 04-30-2014 09:40 AM

Quote:

Originally Posted by ponce (Post 5161852)
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.

willysr 04-30-2014 09:43 AM

I would try with a minimalist configuration first rather than blaming Slackware installation
One step at a time

Shkel 04-30-2014 09:52 AM

Quote:

Originally Posted by willysr (Post 5161906)
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 ;)

ponce 04-30-2014 09:56 AM

remember to do a full install, as it's the only one supported.

kikinovak 04-30-2014 11:50 AM

Quote:

Originally Posted by willysr (Post 5161906)
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.

Shkel 04-30-2014 02:55 PM

It works fine with a clean installation ;)

kikinovak 04-30-2014 04:23 PM

Congrats! Now mark this thread as [SOLVED].

Shkel 05-01-2014 02:45 AM

Done.


All times are GMT -5. The time now is 10:24 PM.