LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 11-12-2003, 12:58 AM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Proftpd and anonymous logins


First, I can login as a regular user fine. But, if I try to ftp to my computer and login as anonymous, this is what happens:
Code:
[wynd@machine ~]$ ftp localhost 
Connected to localhost.
220 ProFTPD 1.2.8 Server (ProFTPD Default Installation) [machine]
Name (localhost:wynd): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
530 Please login with USER and PASS
ftp: bind: Address already in use
ftp> exit
221 Goodbye.
[wynd@machine ~]$
I have done some searching, and what I've found tells me there is probbaly something listening on port 21 besides the FTP daemon. I checked and there's nothing else. What could be the problem? My config is the default one.
 
Old 11-12-2003, 01:06 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
Did you edit your ftpusers file in /etc accordingly to allow anonymous login?
 
Old 11-12-2003, 08:04 PM   #3
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
I edited that file and commented out the line with "ftp" on it, and it still doesn't work. Does it need to be running through inetd for it to work like that, or will proftpd read it on its own?
 
Old 11-12-2003, 08:05 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
Quote:
Originally posted by Wynd
I edited that file and commented out the line with "ftp" on it, and it still doesn't work. Does it need to be running through inetd for it to work like that, or will proftpd read it on its own?
Running thru inetd will or should work fine. That's how I have mine setup.

How are you trying to ftp, thru command from another machine, a windows machine or thru a client, etc?
 
Old 11-12-2003, 08:19 PM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Right now I am doing 'ftp localhost' from a command prompt. I am trying to run proftpd through inetd, and this is what I have done: changed "standalone" to "inetd" in /etc/proftpd.conf, and uncommented the ftp line in inetd.conf, and tried to run 'inetd' and '/etc/rc.d/rc.inet2' and neither will start the server - 'ps ax | grep inetd' shows nothing! What have I done wrong? I had it set up this way before...
 
Old 11-12-2003, 10:05 PM   #6
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
K, I got it to work, the inetd problem was a syntax error in the config file, and I got anonymous FTP by adding the line "RequireValidShell no" as the first line in the anonymous section in proftpd.conf.

Edit: typos

Last edited by Wynd; 11-12-2003 at 10:10 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd Anonymous Users zaicheke Linux - Networking 1 08-20-2004 10:03 PM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
Proftpd Anonymous login sxp03m Red Hat 0 10-28-2003 06:55 AM
Trouble with Proftpd and anonymous logins on Mandrake 9 carlmenezes Linux - Software 6 02-25-2003 11:29 PM
Proftpd Anonymous login badsvt351 Linux - Networking 2 02-15-2002 05:15 PM


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