LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-14-2003, 08:35 PM   #1
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
proftp


Hi all

Everytime I try to login to my ftp server I get:
root@linux:~# ftp deooge.com
Connected to deooge.com.
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [linux.deooge.com]
Name (deooge.com:root): joey
331 Password required for joey.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
I know that the password is correct. Why is it doing this and how can I fix it?????

Last edited by Joey.Dale; 12-14-2003 at 09:50 PM.
 
Old 12-15-2003, 03:24 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
I think that by default you cant login as root. Can you login as a user?
 
Old 12-15-2003, 04:30 AM   #3
SkiTz0.BiLL-BoB
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: SuSE 11.2
Posts: 7

Rep: Reputation: 0
i dont think he is logging in as root, looks like the user 'joey' to me...

If its simply a case that it is displaying login failed although it hasnt actually failed then i really couldnt even hazard a guess as to why.... but i can suggest a fix... in the config file, you coudl try these lines.. (global config)...


AccessGrantMsg "Access Granted, Hello"
AccessDenyMsg "Access Denied, Incorrect Username/Password Combination"

 
Old 12-15-2003, 04:33 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Oops. Right you are
 
Old 12-15-2003, 05:11 AM   #5
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
I can't even login as ftp (there is no password) and I get the same thing
 
Old 12-15-2003, 05:18 AM   #6
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well to login as FTP you need an anonymouns section in your proftpd.conf file... can you post your config? /etc/proftpd.conf probably...
 
Old 12-15-2003, 05:35 AM   #7
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# Limit the maximum number of anonymous logins
MaxClients 10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
 
Old 12-15-2003, 05:36 AM   #8
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
I've got to go to school, I'll be back at about 3:30 Eastern
 
Old 12-15-2003, 05:41 AM   #9
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Cool... Does the user account FTP exist? Are you actually running the standalone or starting it from inetd? is there anything of interest in the log?

You might want to get logging to a file like /var/log/proftpd.log, add these lines to your config before the anonymous section. I use 'level' warn, but debug would be better for now... (you might need to 'touch /var/log/proftpd.log')


SyslogLevel debug
SystemLog /var/log/proftpd.log


Last edited by fatgod; 12-15-2003 at 05:53 AM.
 
Old 12-15-2003, 02:14 PM   #10
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
1. yes
2. standalone
3. no
 
Old 12-15-2003, 02:28 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Can you login as an anonymous user? Take a look at:
http://proftpd.linux.co.uk/localsite...nked/x691.html
 
Old 12-15-2003, 02:50 PM   #12
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
No, I get the same thing
 
Old 12-15-2003, 02:55 PM   #13
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
I had this problem once because by default proftpd doesn't allow users without a valid shell to make connections. Does your user "joey" have a valid shell? If it doesn't, add this to your conf file:

Code:
RequireValidShell off
Not sure if this is the problem, but this is what worked for me. Hopefully the same can be said for you.
 
Old 12-15-2003, 03:06 PM   #14
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Original Poster
Rep: Reputation: 30
That worked, Thank you
 
Old 12-15-2003, 03:20 PM   #15
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
No problem. It's nice to hear that I was able to help out.
 
  


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
proftp onelung02 Slackware 5 05-15-2005 05:42 PM
ProFTP againstms Linux - Networking 3 11-20-2004 04:38 AM
proftp ScottCamp Linux - Newbie 3 11-02-2004 07:58 AM
ProFtp bnumark Linux - Software 5 06-28-2003 03:36 PM
proftp spate Linux - Software 2 01-09-2003 03:17 PM


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