LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2003, 12:16 PM   #1
GEEXTER
LQ Newbie
 
Registered: Nov 2002
Posts: 15

Rep: Reputation: 0
Password Authentication works for TELNET... but not FTP


I am able to telnet to my redhat 7.2 server and the password for my user is authenticated and I'm allowed access.

But... when I FTP to the same server I get the following:

Resolving host name 10.80.20.40...
Connecting to (10.80.20.40).
Connected to (TLVGE01) -> IP: 10.80.20.40 PORT: 21.
Socket connected waiting for login sequence.
220 TLVGE01 FTP server (Version wu-2.6.1-18) ready.
USER quikplay
331 Password required for quikplay.
PASS (hidden)
530 Login incorrect.


Why would the user password work for telnet but not for FTP?

Is this a common problem?
 
Old 07-25-2003, 09:28 PM   #2
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
can you ftp in as some other user?
wow, this is an intresting problem
 
Old 07-26-2003, 12:26 AM   #3
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Is the user listed in the /etc/ftpusers file?

Users listed in that file are disabled from using the ftp server.

Also another possibility -- are you using PAM?

There are, or should be, pam configuration files in /etc/pam.d
for both telnet and ftp.

And thirdly, DO NOT use telnet and ftp. You should have set up SSH and be using slogin and sftp.

Last edited by Corin; 07-26-2003 at 12:28 AM.
 
Old 07-30-2003, 12:04 PM   #4
GEEXTER
LQ Newbie
 
Registered: Nov 2002
Posts: 15

Original Poster
Rep: Reputation: 0
< can you ftp in as some other user? >

Nope.


< Is the user listed in the /etc/ftpusers file? >

No... the user is not listed in ftpusers.


< Also another possibility -- are you using PAM? >

Nah... we're not using PAM.


Any other suggestions? Anyone?
 
Old 07-30-2003, 01:14 PM   #5
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
Check your TCP wrappers. Also consider using sftp as Corin suggested.
 
Old 07-30-2003, 04:50 PM   #6
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Good point.

TCP Wrappers control comes in the form of

/etc/hosts.allow and /etc/hosts.deny.

You should have any entry

ALL:ALL in /etc/hosts.deny and then add the hosts which which
you want to allow access to services to /etc/hosts.allow

The file below is allows access to localhost plus everything
on the local network 192.168.1


#*****************************************************************************#
#
# file: /etc/hosts.allow
#
#*---------------------------------------------------------------------------*#
#
ALL: 127.0.0.1 192.168.1.0/255.255.255.0
gdm: 127.0.0.1 192.168.1.0/255.255.255.0
portmap: 127.0.0.1 192.168.1.0/255.255.255.0
sendmail: 127.0.0.1 192.168.1.0/255.255.255.0
#
#*****************************************************************************#

Change as appropriate for your network and or list of hosts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Authentication Application rajsun Programming 2 03-04-2005 12:15 AM
ssh with password authentication Nyarlathotep Linux - Security 4 10-06-2003 12:13 PM
email password authentication flynnt Linux - Security 1 09-11-2003 02:09 PM
email password authentication flynnt Linux - Networking 0 09-11-2003 01:02 AM
Password Authentication Server Tunarle Linux - Networking 1 07-27-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:47 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