Linux - SoftwareThis 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.
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.
Running Slackware 9 and ProFTP 1.2.9 installed from source.
I've gotten this far,
(Apache, PHP, MySQL, SSH, etc. from source)
I just can't get ProFTP working no matter what I do. I've been working on it off and on for the past 2 weeks so it's time to post.
Compiled and installed ProFTP from source, only 2 things I added were --prefix=/www/proftpd and the proftpd.conf file should be located in /etc
When I change directories to /www/proftpd/sbin and ./proftpd it returns me to a comand prompt, but ps -A | more shows that no proftpd is running which is confirmed by the fact that I can't connect to it via ftp.
I've been over my proftpd.conf file and have gone back to the original with no results. Any suggestions?
if your config file is good and workable I might suggest trying to start proftpd like this...
from terminal do a 'cd /etc/rc.d/init.d/' and then type './proftpd start' to start the application and use './proftpd stop' to shut the software down,, never fails for me..
I don't have /etc/rc.d/init.d/ on my slackware distro, but I do have /etc/rc.d/
Nothing in /etc/rc.d/ has proftpd
Tried /www/proftpd/sbin/
./proftpd start
nothing.
I'll keep working and possibly re-compiling and installing. If you have any more ideas, please post. Also, if I un-install it, do I just 'rm -R proftpd' and delete the proftpd.conf file in /etc ???
I checked my /var/log/syslog and found these from everytime I've tried to start it.
Feb 1 05:00:44 battlechest proftpd[32166]:xxx.com - Failed binding to 0.0.0.0, port 21: Address already in use
Feb 1 05:00:44 battlechest proftpd[32166]: xxx.com - Check the ServerType directive to ensure you are configured correctly.
I checked my /var/log/syslog and found these from everytime I've tried to start it
Same here, I didn't know such a file existed so I got curious and found the same error messages you did.
As a side note when I was trying to run samba (and failed) this appeared :
Code:
Feb 4 16:11:39 webserver nmbd[699]: process_browse_packet:
Discarding datagram from IP 192.168.1.20.
Source name WEBSERVER<20> is one of our names !
I actually think I may have figured out the Samba thing, but I'm experiencing the same issue you are with ProFTPd
I'm also seeing this:
Code:
Feb 5 02:29:46 webserver inetd[417]: /usr/sbin/in.identd: exit status 0x1
Feb 5 02:29:46 webserver inetd[12747]: execv /usr/sbin/in.identd: No such file
or directory
Which I am not sure about
Last edited by fireman949; 02-06-2004 at 02:20 PM.
'netstat -an' showed that something was running on port 21 before I started ProFTPd which explains why it wouldn't run.
A closer examination of inetd.conf showed that it was trying to start an earlier installation ( Default from when I installed the Slackware Distro )
I commented this out and was able to get ProFTPd to run.
Code:
#ftp stream tcp nowait root /www/proftpd proftpd
Now I am experiencing a problem with connecting. 'ps -A | grep proftpd' shows it running but when I try to connect via 'ftp localhost' from the command line or from another machine on my lan I get this message:
Code:
500 Sorry, no server available to handle your request
Apr 1 19:02:25 sun proftpd[3802]: sun.xxxx.be - Failed binding to 0.0.0.0, port 21: Address already in use
Apr 1 19:02:25 sun proftpd[3802]: sun.xxxx.be - Check the ServerType directive to ensure you are configured correctly.
The problem was due to the fact that inetd was listening of port 21, which is precisely the port use by proftp.
Here is the content of my the proftpd.conf file:
[root@sun etc]# more /etc/proftpd.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 inetd
DefaultServer on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart 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 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>
# Needed for NIS.
PersistentPasswd off
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
Include /etc/proftpd-anonymous.conf
My problem came from Servertype which was Standalone and which should have been inetd (as I use inetd and do not run proftpd as daemon)
Finally, my proftpd-xinetd file looks like this:
[root@sun etc]# more /etc/xinetd.d/proftpd-xinetd
# default: off
# description: proftpd server, xinetd version. \
# Don't run the standalone version if you run \
# this!
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}
I have also deleted the FTP file from that directory.
Now you just have to adapt proftpd.conf file in order to grant / deny access to users.
I have spent evenings during 2 weeks trying to solve this. Hope this will also work fine for you with those indications.
I'm trying to get a dedicated server to do it's thing, but I'm experiencing the same problems too. And this is from a homemade configuration file too. I was starting to think it was the file being all whack, but it's very simple and clean, being less than a page long. I gotta fix this! If any proftpd genius is generous enough to share his brains for a moment, it would be greatly appreciated
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.