LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-11-2004, 06:17 AM   #1
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Rep: Reputation: 15
Proftpd - Slackware 10 - Login not working


I'm running a default instalation of ProFTPd which came pre-installed with my Slackware 10 distro. When I tried connecting to it via GFTP and through the command line it connected with out error, however when logging in, I entered my Linux username and password but I get the error "Invalid Login".

I'm positive that it's the correct username and password, I've tried logging in with 'ftp' and 'anonymous' usernames aswell, and have the same error.

Running Slackware 9.1, I never had this problem. Here is a copy of proftpd.conf:

Code:
# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp" 
# for normal/anonymous operation.

ServerName			"ProFTPD Default Installation"
#ServerType			standalone
ServerType			inetd
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 that the server normally runs at.
User				nobody
Group				nogroup

# This next option is required for NIS or NIS+ to work properly:
PersistentPasswd off

SystemLog			/var/log/proftpd.log
TransferLog			/var/log/xferlog

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

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
  RequireValidShell		off
  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			50

  # 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>

  # An upload directory that allows storing files but not retrieving
  # or creating directories.
#  <Directory incoming/*>
#    <Limit READ>
#      DenyAll
#    </Limit>
#
#    <Limit STOR>
#      AllowAll
#    </Limit>
#  </Directory>

</Anonymous>

Last edited by TBomb; 09-11-2004 at 06:20 AM.
 
Old 09-11-2004, 09:37 AM   #2
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
*bump*
 
Old 09-11-2004, 05:03 PM   #3
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
**bump**
 
Old 09-11-2004, 10:21 PM   #4
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
Are you trying to log in from another linux box?
Check to see if the shell you are using is listed in /etc/shells.
 
Old 09-12-2004, 03:08 AM   #5
thermite_1033
Member
 
Registered: May 2004
Location: Antwerp, Belgium
Distribution: slackware
Posts: 112

Rep: Reputation: 18
open /etc/inetd.conf with a vi or joe
then look for the line

#ftp stream tcp nowait root /usr/sbin/tcpd proftpd

just remove the # , save and exit

killall -HUP (PID of inetd)

or just reboot
 
Old 09-12-2004, 03:29 AM   #6
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
Okay, I'll try that now, thanks. By the way, I'm trying to login to the FTP server both locally (ftp localhost) and via a Windows computer (ftp 10.0.0.6).

Last edited by TBomb; 09-12-2004 at 03:42 AM.
 
Old 09-12-2004, 03:48 AM   #7
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
Nope. editting that line has had no (noticable) effect.
 
Old 09-12-2004, 04:24 AM   #8
thermite_1033
Member
 
Registered: May 2004
Location: Antwerp, Belgium
Distribution: slackware
Posts: 112

Rep: Reputation: 18
did you reboot?? or restarted the inetd daemen?

edit also
/etc/ftpusers =>> remove # of 'ftp' so that the anonymous user can log in with ftp and do the same with any other user that you want, except for root
==>root has to many priveleges to be using ftp

edit: typed it to fast, made some mistakes

Last edited by thermite_1033; 09-12-2004 at 05:33 AM.
 
Old 09-12-2004, 07:44 AM   #9
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
I rebooted, which I assume also means that I restarted the inetd daemon. Also, openning ftpusers showed that I should be removing the user 'ftp' from the list, as at the top of the file it says that "This file describes the names of the users that may _*NOT*_ log into the system via the FTP server."

The user 'ftp' was already uncommented, but to try and follow your suggestion to allow anonymous FTP access I removed it from the list.

Just rebooted, I can now login anonymously! But not with my regular user account (tom).
 
Old 09-12-2004, 07:57 AM   #10
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
Okay, I just tried logging into the server via the 'ftp' user, and as I said in my above post I can login, but I can't upload anything, I just get

550 NOTE.txt: Permission denied
NOTE.txt: Permission denied
Failed [NOTE.txt: Permission denied]

Displayed. (Using AceFTP 3 Freeware on Windows XP)
 
Old 09-12-2004, 10:44 AM   #11
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
*bump*
 
Old 09-12-2004, 03:59 PM   #12
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
*bump*
 
Old 09-12-2004, 05:49 PM   #13
RandomLinuxNewb
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
Try running nmap as root.

Code:
namp localhost
this will show you all the ports that you have open.

Code:
Interesting ports on localhost (127.0.0.1):
(The 1654 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
21/tcp  open  ftp
22/tcp  open  ssh
53/tcp  open  domain
80/tcp  open  http
113/tcp open  auth
873/tcp open  rsync
 
Old 09-13-2004, 02:22 AM   #14
TBomb
Member
 
Registered: May 2004
Location: Great Britain
Distribution: Slackware
Posts: 91

Original Poster
Rep: Reputation: 15
21/tcp FTP
22/tcp ssh
25/tcp smtp
37/tcp time
80/tcp http
113/tcp auth
587/tcp submission
3306/tcp mysql

all 'open'

Last edited by TBomb; 09-13-2004 at 02:25 AM.
 
Old 09-13-2004, 02:34 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you cannot upload, then comment the lines:
Code:
<Limit WRITE>
    DenyAll
  </Limit>
and restart inetd
 
  


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
Can't login to ProFTPd Martin Strand Linux - Networking 8 07-11-2005 09:59 PM
can't login proftpd pipio Linux - General 0 04-19-2004 12:55 PM
Why my proftpd sometimes can't login? itebooks Linux - Software 0 03-29-2004 09:48 PM
proftpd can't login nocturnal Linux - Software 3 12-15-2003 05:33 PM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

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