LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-18-2003, 06:08 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
proftpd Help


Amazingly, I set this thing up, and I can log in on the ftp machine by typing in:

ftp localhost


So that works. But I have a few questions.
1) if my ipaddress is 66.222.XXX.XXX, what would I type into a browser window on a remote computer to access the FTP?

I tried
ftp://localhost.66.222.XXX.XXX/

But it doesn't work. So what would I have to type?

2) How do I add users, and where are their passwords located?

3) I know I put the files to FTP somewhere in /var. But I don't know which folder?

I'm running the ftp on slack 9.1

-Thanks in advance
 
Old 10-18-2003, 06:38 PM   #2
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 207
Blog Entries: 1

Rep: Reputation: 38
For the IP, just leave "localhost" out of it. The "ftp" prefix tells a browser to use the FTP protocol. If you're using an FTP client program, just "connect 66.222.XXX.XXX" should do the trick.

Add users via the Mandrake Control Center; they'll be users for your entire Linux system, not just for FTP.

You can create subdirectories under /var/ftp and put your files there. When I installed proftpd, it automatically created a /var/ftp/pub directory; that would be a good place to put files to be downloaded by your users. I created /var/ftp/incoming and modified the proftpd.conf file to prohibit listing of the directory, and also prohibit downloading from it. This makes it extremely difficult if not impossible for anyone to use my server as a warez repository. I can see what's in "incoming" and if it's something I want to make available to the world at large, I move it over to "pub" and set the file permissions on it.

Security on an FTP server is critical. While proftpd does not have the EXEC command (which would allow anyone to execute any command on your system), it's still possible for people to do evil things with it. I'd make the permissions on the "pub" directory 555 (no write permission except for the root user) and those on "incoming" 333 (no read permission except for root)...

You didn't ask, but you'll need to open TCP ports 20 and 21 at your router, to let the outside world get through to your server, just as you had to open 80-83 to let Apache users get in...

Last edited by JimKyle; 10-18-2003 at 06:41 PM.
 
Old 10-18-2003, 06:41 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
ok first...go to this HOWTO written by MasterC and you should be able to get some of your answers from there...
as of the address, it will simply be ftp://IPADDRESS, do not include localhost...if you want to log in directly without prompt of a password then you will type :
ftp://USERNAME:PASSWORD@IPADDRESS:PORT
 
Old 10-18-2003, 06:51 PM   #4
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Thanks, you two

I'll see if I can get it up. Cross your fingers

Last edited by flamesrock; 10-18-2003 at 06:53 PM.
 
Old 10-18-2003, 07:07 PM   #5
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Alright...something strange.

I can log in as the lan address ftp://192.168.1.25

but not the actual ip

ftp://66.222.XXX.XXX

which results in a timeout.

Of course, this is on a seperate computer, connected to the internet through the same lan. Any ideas?

EDIT::

Ports 80 - 83, 403 - 403 and 20 - 21 and forwarded, along with some other high numbers.

Last edited by flamesrock; 10-18-2003 at 07:08 PM.
 
Old 10-18-2003, 08:05 PM   #6
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
Ok -- another weird thing..

Since I'm an administrator at a message board, we get to see IP's. Mine said 66.XXX.XXX.XXX

Anyways, I just checked the ip of both computers on the lan using ipchicken and some other services, and they end up with the exact same address - 142.XXX.XXX.XXX

Entering the ftp://142 address in the other lan computer still results in a timeout error. Whats this supposed to mean? Is it my router?
 
Old 10-18-2003, 11:04 PM   #7
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 207
Blog Entries: 1

Rep: Reputation: 38
For any other machine on your LAN, use the 192.168.1.25 address. For a machine that's not on the LAN but has an internet connection, use the same IP address that works with your web server. This may be the 66.x.x.x, or the 142.x.x.x one; if you're on PPPoE or DHCP service from your ISP, the external IP address may vary at any time...
 
  


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
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 12:06 PM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 10:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 11:27 AM
proftpd help strider17 Linux - Newbie 2 02-08-2004 12:44 PM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 07:56 PM


All times are GMT -5. The time now is 02:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration