LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2011, 06:20 AM   #1
gaurav pant
Member
 
Registered: Mar 2008
Location: pantnagar/almora,uttaranchal
Posts: 39

Rep: Reputation: 15
Question FTP- user login prompt not displayed


hi friends,
I am using fedora 13. While doing ftp to this box i m getting following.
C:\xxx>ftp 192.168.1.2
Connected to 192.168.1.2.


and after some time connection gets close but is is not giving any login prompt.Please help me to sort out this problem.
please find my my vsftpd.conf file as follows.

anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
chroot_list_enable=YES
chroot_local_user=YES
background=YES
listen=YES
ls_recurse_enable=YES



Thnaks in advance.
 
Old 12-29-2011, 01:27 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi gaurav pant,

Did you get any error message when the connection times out. Did you try to telnet Fedora machine from Windows machine on port 21. You can use the following command for it:

Code:
telnet ip_address_of_ftp_server 21
Did you check selinux status on your Fedora machine? You can check it using the following command:

Code:
sestatus
Let us know the output of the above two commands and we can take it from there.
 
Old 12-29-2011, 03:33 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

try raising timeout with the settings, if it would help (values are in seconds, so adjust for your needs):
Code:
idle_session_timeout=600
data_connection_timeout=120
this way you will know that after 10min (600) of idling you will be disconnected or if you are not able to connect in 2min (120sec)
 
Old 12-29-2011, 03:37 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I can't recall exactly how Windows FTP works but did you try:
C:\xxx>ftp <your username on the ftp server>@192.168.1.2
That may force it to ask for your password. Otherwise I wonder if it's trying to pass your Windows username across which may either be different or not be communicated correctly.
 
Old 01-02-2012, 08:54 AM   #5
gaurav pant
Member
 
Registered: Mar 2008
Location: pantnagar/almora,uttaranchal
Posts: 39

Original Poster
Rep: Reputation: 15
hi All,

Thanks for your quick response..

When I tried to do telnet using port 21 , it has directed to me a blank screen.But I was unable to type any command there ie there is blinking prompt but typing anything gets replaced by blank characters.

SELinux status for my machine is:disabled

[root@Virus ~]# sestatus
SELinux status: disabled


@T3RM1NVT0R I have tried to do following and output was as below.

C:\>ftp -v 192.168.1.2
Connection closed by remote host.

C:\>ftp 192.168.1.2
Connected to 192.168.1.2.
Connection closed by remote host. (after 2-3 minute)

C:\>ftp oracle@192.168.1.2
Unknown host oracle@192.168.1.2. (I think this is taking oracle@192.168.1.2 as hostname or IP)
 
Old 01-02-2012, 08:57 AM   #6
gaurav pant
Member
 
Registered: Mar 2008
Location: pantnagar/almora,uttaranchal
Posts: 39

Original Poster
Rep: Reputation: 15
One thing I also want to tell you that I am using bridge networking using Virtual Box. I am able to connect my Fedora13 (Host OS) from my guest OS (Windows XP) using SSH. Also I am able to connect linux machine using Perl script SSH2 module.But I want to FTP using perl script. It error out. Then I checked whether I can FTP simply through DOS, I was unable to do.Then I have posted it here..Please help me to do FTP through DOS, my all problems will automatically get resolved.

Last edited by gaurav pant; 01-02-2012 at 09:00 AM.
 
Old 01-02-2012, 09:18 AM   #7
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

So you have Fedora installed on your physical machine and you have installed Windows XP as guest on the same machine using Virtual Box. So basically your Windows Machine is a virtual machine and you are trying to FTP your Fedora machine from your Windows machine. Is that correct?

Here is the things we can check. Are you able to FTP your fedora machine from itself? What happens if you trying accessing FTP server from browser?

Tell us the IP address of both client and the server.
 
Old 01-08-2012, 10:08 AM   #8
gaurav pant
Member
 
Registered: Mar 2008
Location: pantnagar/almora,uttaranchal
Posts: 39

Original Poster
Rep: Reputation: 15
hi friends,

Thanks a lot for all of your help.Finally I got the solution.

@T3RM1NVT0R- you are right. Windows XP is my guest (virtual OS) and Fedora is host and I am trying to ftp Fedora OS from Windows XP.

The problem is that Fedora firewall is blocking 21 port.I have enabled FTP port there(System->Administration->Firewall).

After doing it I was getting FTP user prompt but still not able to authenticate even after giving correct password.

C:\Documents and Settings\Gaurav Pant>ftp 192.168.1.2
Connected to 192.168.1.2.
220 (vsFTPd 2.3.4)
User (192.168.1.2none)): oracle
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
Aborting any active data connections...



after this I have made change to my /etc/vsftpd/vsftpd.conf
#anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
#chroot_list_enable=YES
#chroot_local_user=YES
background=YES
listen=YES
ls_recurse_enable=YES
write_enable=YES
pam_service_name=vsftpd
userlist_enable=YES


i have commented below two lines.

#chroot_list_enable=YES
#chroot_local_user=YES


because I was getting below error when I have uncommented these two lines.

C:\Documents and Settings\Gaurav Pant>ftp 192.168.1.2
Connected to 192.168.1.2.
220 (vsFTPd 2.3.4)
User (192.168.1.2none)): oracle
331 Please specify the password.
Password:
500 OOPS: could not read chroot() list file:/etc/vsftpd/chroot_list
500 OOPS: priv_sock_get_result
Connection closed by remote host.


So finally we have solution.Thanks to all to help me.
 
  


Reply



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
FTP Server not showing login prompt jgentes Debian 2 01-19-2009 03:20 PM
Proftpd 1.3.0 under ubuntu : "530 Login incorrect" displayed on ftp client Hanzo Linux - Networking 3 07-24-2008 08:02 PM
user login prompt yusufs Linux - Newbie 4 03-11-2008 05:30 AM
Prompt user for information immediately after login? bpottle Linux - Software 1 05-31-2006 09:59 AM
add user prompt for password on login redir Linux - Newbie 2 02-28-2005 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration