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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-27-2003, 03:12 PM
|
#1
|
Member
Registered: Jul 2003
Posts: 34
Rep:
|
building proftpd
hello there
i'm using slackware 9, recent installed
i untarred the proftpd-tarball and i did the
./configure --enable-shadow
wich went without errors
then i did a
make
next thing i needed to do what a check
so i loaded proftpd -c basic.conf
and did
ftp localhost
then i got "connection refused"
i don't know what i did wrong or what to change to get it accepted...
plz some help
thx in advance
( i'm following the guide LinuxQuestions.org > LinuxAnswers > From beginning to end: ProFTPD )
|
|
|
07-27-2003, 07:00 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
did you try using the default config /etc/proftpd.conf .. or is the one you are using the same one?
|
|
|
07-28-2003, 03:58 AM
|
#3
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
wel i haven't checked if its the same
but i did try it yes
|
|
|
07-28-2003, 04:43 AM
|
#4
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
wel i checked my proftpd.log in /var/log/
it says
error opening scoreboard: No such file or directory
so its something with the scoreboard
only i dunno what to do about it
|
|
|
07-28-2003, 04:49 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
http://proftpd.linux.co.uk/localsite...SCOREBOARDFILE
Looks like you should either set it in your conf file (if it's set change it's location to the correct one) OR create it at the specified location in the conf file.
Cool
|
|
|
07-28-2003, 05:59 AM
|
#6
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
wel i already fixed the scoreboard issue before you replied
by making the dir it's supposed to be in, then on startup it gets created
next i erased my log and launched it again then it gave an error beceause the user "ftp" was still in /etc/ftpuser
so i tagged him with #
launched the server again, log gave no error, so i did ftp localhost
but connection still refused
so i checked log again
now out of nothing there was /etc/shutmsg
which i checked for its existance before, anyway i just removed it again
so i killed the server again cleaned my log once more, relaunched the server and tryied to ftp localhost again
still connection refused
all the log says now is
PorFTPD 1.2.9rc1 (dev$ (devel) (built blablabla...) standalone mode STARTUP
so now i'm back here asking what there is yet to be done
|
|
|
07-28-2003, 06:13 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Have you given inetd mode a shot yet?
Also, have you made sure there are no other applications using FTP on your system
rpm -qa | grep ftp
Oh wait, I see slackware now...
pkgtool
And browse the files.
I don't know why you'd mysteriously get a /etc/shutmsg like that, that's why I'm suspecting another FTP program running?
netstat -a
Cool
|
|
|
07-28-2003, 06:19 AM
|
#8
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
wel there are surely no other ftp programs running since its a new fresh install and i've been using ps aux | grep ftp constantly to kill my server and there were no other processes
i haven't tried inetd no
and the /etc/shutmsg
probably got there that late beceause the ftpserver made it when if finally ran without errors ....
so accept from trying with inetd ( but i want to run it standalon ) i don't know what else to try
|
|
|
07-28-2003, 06:38 AM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Can you post up the contents of the conf file you are using? Have you given a shot at any of the others?
Cool
|
|
|
07-28-2003, 06:48 AM
|
#10
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
i changed the the line in the proftpd.conf an inetd.conf and did a
kill -HUP inetdpid
then i relaunched my ftpserver or at least tried ....
i get afther typing ./proftpd -c /etc/proftpd.conf
fatal: Socket operation on non-socket
(Running form command line? Use 'ServerType standalone' in config file ! )
so inetd isn't working at all 
|
|
|
07-28-2003, 06:55 AM
|
#11
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
now that i'm running on inetd i thought of trying again with basic.conf just to try
if it would work, so i lauched the server with basic.conf, then after it i checked the basic.conf and i saw its standalone
but i tried ftp localhost anyway
now surprisingly i get
Connected to localhost
couple a seconds later it says
421 Service not abailable, remote server has closed connection
so i don't know what happend here, i set up inetd for ftpaccess but i load the server with a standalone config
and now it didn't refuse the connection ...
|
|
|
07-28-2003, 07:22 AM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
If you launch proftpd from the command line:
proftpd -c /wherever/something.conf
Then that's standalone mode. If you launch it via inetd, you don't do anything but send a HUP to inetd. However you will also (if you haven't done a make install yet) have to edit the entry in inetd.conf to the path for the proftpd binary otherwise it won't have anything to launch.
The error message above you get has sometimes been a problem caused by an /etc/shutmsg so see if that reappeared and try again.
Cool
|
|
|
07-28-2003, 07:24 AM
|
#13
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
here is the /etc/proftpd.conf
# 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 "GUC ftpserver"
#ServerType standalone
ServerType inetd
DefaultServer on
# Port 21 is the standard FTP port.
Port 9876
# 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 20
# 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>
[COLOR=red]note that the anonymous section wasnt between # i changed that recently to see if it would help...[/COLOR
here is the basic.conf
# 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 9876
# 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>
|
|
|
07-28-2003, 07:26 AM
|
#14
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Change that port to the standard ftp, send a HUP to inetd (if in inetd mode) or to proftpd (if in standalone) and ensure no /etc/shutmsg exists. Then:
ftp localhost
If you don't know, the standard FTP port is 21.
Cool
|
|
|
07-28-2003, 07:35 AM
|
#15
|
Member
Registered: Jul 2003
Posts: 34
Original Poster
Rep:
|
i do know  but i put it on another port beceause my isp blocks port 21 and i opend port 9876 on my router for the ftptraffic and since i'm testing locally i don't see what the port has to do with it, but i'll try it anyways beceause you never know
i'll kill all processes and reload it using
./proftpd -c /etc/proftpd.conf
|
|
|
All times are GMT -5. The time now is 10:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|