View Full Version : ftp server
16th February 2004, 01:48 AM
i got everything working here i want and all updated and the like.
the only thing that i'm stuck on is getting my ftp working
the client works just fine.
what i need to get running is the ftp server...
i have buisnesses needing to ftp me some stuff and i need to have files for them
any help here would be greatly apreciated.
16th February 2004, 05:00 PM
Can you check to see if you have vsftpd or proftpd installed by issuing "rpm -q vsftpd" or "rpm -q proftpd"?
In my opinion, proftpd is easier to set-up and use, so I suggest, if it's not installed, you install it via "yum install proftpd".
After installation, you'll need to edit some simple stuff in /etc/proftpd.conf.
Hope that at least gets you on your feet.
16th February 2004, 07:15 PM
well i used apt-get
apt-get install proftpd
got rid of the vsftpd
i also removed it from the add remove
the vsftp is still in the files listing but i guess it's not in use i dunno.
but i got the proftpd
now i hate to sound stupid but i'm new to the server stuff when it comes to linux
if i had windows i be up and running already since i know windblowz backwards and forwards,(ick what a scary thought)
but enough of that....
anyhow i got as i said b4 my website up and my own forum via apache.
took me a few days but i got it 8)
but i need to /etc/profptd.conf eddit.
since i said i'm new to it, if you can give me insight, ideas or even a example on how to go about edditing that config file i would apreciate it!
(proudly served up via apache v2.x running off Fedora core 1 (yarrow) linux)
16th February 2004, 07:55 PM
Here's some tips to get you up and running fast.
(Edit /etc/proftpd.conf as root)
- Make sure ServerType is set to standalone.
- If you want external users hitting your FTP server which is inside a local area network, add a MasqueradeAddress X.X.X.X line (replacing X.X.X.X with your WAN IP) You can quickly obtain your WAN IP by going to http://www.whatismyip.net
- Make sure Port is set to what you want it to be.
After saving that, you should be able to issue:
su - (become root, don't forget hyphen!)
service proftpd start
Hope that helps!
(if you have problems hitting the ftp server from another location, flush your iptables rules using iptables --flush for now (security warning!))
17th February 2004, 08:30 PM
well i did all that and so far it's a no go :(
but i'm still working on it.
i do apreciate the help you are giving me :-)
18th February 2004, 03:42 AM
Could you be a little more specific and explain what "no go" means? Does the service not start? Can't connection? Try running proftpd as root in a console and note it's output - Anything unusual?
18th February 2004, 06:10 PM
well i think i got it.
i'm not sure.
it is running
here try it
you will find that theres no files showing
i know it working in /var/ftp for a directory
but i want to do is were in the proftpd.conf file i state the directory *ie* /var/ftp/files
plus i want it password protected
i could be wrong for the working directory being /var/ftp but i don't think so.
but hey ftp is working finally 8)
18th February 2004, 11:10 PM
By default, proftpd is set up to be accessed by a real local user, and chroots them to their home directory. Ex: User1 logs in and gets dumped into /home/user1 and chrooted there.
19th February 2004, 02:42 AM
config file. here. updated version.....
# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.6 2003/09/24 10:51:11 dude Exp $
ServerIdent on "FTP Server ready."
AccessGrantMsg "User %u logged in."
# Use this to excude users from the chroot
# Use pam to authenticate by default
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
# Port 21 is the standard FTP port.
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
# Default to show dot files in directory listings
# See Configuration.html for these (here are the default values)
#AllowForeignAddress off # For FXP
# Allow to resume not only the downloads but the uploads too
# 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)
# Set the user and group that the server normally runs at.
# This is where we want to put the pid file
# Normally, we want users to do a few things.
<Limit ALL SITE_CHMOD>
# Define the log formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
# A basic anonymous configuration, with an upload directory.
AccessGrantMsg "Anonymous login ok, restrictions apply."
# # 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 "Sorry, max %m users -- try again later"
# # Put the user into /pub right after login
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftpadm
# DirFakeGroup on ftpadm
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
19th February 2004, 03:26 PM
You need to comment one of those out by putting a pound sign (#) before the line. As you're not starting proftpd from inetd/xinetd, you should put it before this line so it reads...
19th February 2004, 07:31 PM
ok i did that.
all is good dude i'm working,
even did a telnet:
[gto286@localhost gto286]$ telnet localhost 21
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 localhost FTP server (Version 5.60) ready.
so i know it's doing something, ftp is responding.
and to this end, i have been working over the conf file
i commented out.
the rest i left alone.
ok so i got it working. i even tracked down the directory it logs into.
but it comes up a blank page can't see my folders or files
so that's my current problem
19th February 2004, 11:25 PM
ok let's skip all this nonsence.
here's my current config file.
address for ftp.
i just need ya to look at the conf file se if there's anything wrong there.
and there's gotta be away to fix the permissions prob so everyone can see the directories i have there.
it's in /var/ftp
i have /var/ftp/uploads
no one can see the files,or uploads.or pid diretory(s)
when my people type in my ftp addy, i want them to see the folders, files and uploads
20th February 2004, 03:05 AM
Chmod the folder(s) with the appropiate permissions (man chmod).
21st February 2004, 03:25 AM
and how do i exactly do that.?
i know it's sounds stupid but i've done everthing i can figure out to do.
i even re installed vsftp i'm gonna give that a diff port #
if this don't work i'm basicly gonna uninstall all ftp services
go without it,,,,,,
i know that sounds like i'm giving up but i assure you i'm not
this is a challenge and i intend to defeat it, In anyway i can!
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.