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.
|
|
|
03-01-2003, 01:04 PM
|
#16
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
If you want, you can post up your /var/log/proftpd.log file so we can see what's going on and try to help...
Cool
|
|
|
03-02-2003, 04:07 AM
|
#17
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
well I think to long but never mind :] :
Dec 30 22:38:58 localhost proftpd[1620] localhost: ProFTPD 1.2.5 (built Sun Jun 9 17:24:50 PDT 2002) standalone mode STARTUP
Dec 30 22:39:12 localhost proftpd[1623] localhost (cl176-220.ktv.lt[213.226.176.220]): FTP session opened.
Dec 30 22:39:12 localhost proftpd[1623] localhost (cl176-220.ktv.lt[213.226.176.220]): no such user 'ftp'
Dec 30 22:39:12 localhost proftpd[1623] localhost (cl176-220.ktv.lt[213.226.176.220]): USER ftp: no such user found from cl176-220.ktv.lt [213.226.176.220] to 213.226.176.220:21
Dec 30 22:39:12 localhost proftpd[1623] localhost (cl176-220.ktv.lt[213.226.176.220]): FTP session closed.
Dec 30 22:44:41 localhost proftpd[134] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Dec 30 22:44:41 localhost proftpd[134] localhost: Check the ServerType directive to ensure you are configured correctly.
Dec 30 22:53:15 localhost proftpd[138] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Dec 30 22:53:15 localhost proftpd[138] localhost: Check the ServerType directive to ensure you are configured correctly.
Dec 30 22:53:23 localhost proftpd[140] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Dec 30 22:53:23 localhost proftpd[140] localhost: Check the ServerType directive to ensure you are configured correctly.
Dec 30 22:53:27 localhost proftpd[143] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
That is the most important cause everything else is repeating...
|
|
|
03-02-2003, 04:18 AM
|
#18
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
So after you created user ftp what happened?
|
|
|
03-02-2003, 04:19 AM
|
#19
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
Dudes here is my config... Who understands correct it plz
==============
ServerName "My personal server"
ServerType standalone
# Port 21 is the standard FTP port.
Port 21
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
MaxInstances 5
# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Our "basic" anonymous configuration, including a single
# upload directory ("uploads")
<Anonymous ~ftp>
# Allow logins if they are disabled above.
<Limit LOGIN>
AllowAll
</Limit>
# Maximum clients with message
MaxClients 5 "Sorry, max %m users are allowed -- try again later"
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# 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 uploads/*>
<Limit READ>
DenyAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
# Hide all files owned by user 'root'
HideUser root
</Anonymous>
#EOF
==============
But when I start proftpd, I get:
500 Sorry, no server available to handle request on cl176-220.ktv.lt.
ftp>
???
|
|
|
03-02-2003, 04:20 AM
|
#20
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
U see I had it before:
ftp:*:1001:0::/home/ftp:
|
|
|
03-02-2003, 04:35 AM
|
#21
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Check your /etc/ftpusers file, make sure you have included a # in front of a user ftp if one exists. In other words, comment out the ftp user if there is one in there.
|
|
|
03-02-2003, 04:35 AM
|
#22
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Are you on Slack or what?
|
|
|
03-02-2003, 04:46 AM
|
#23
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
damn, I've go it work, but then I have read CrashedAgain tips and server doesn't works again...uhhh
Chad, I am on Slack offcourse.
When I will fix the problem I will inform U Chad and if you want you can connect to my box
|
|
|
03-02-2003, 04:52 AM
|
#24
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Thanks. I don't see anything immediately wrong with your conf file, and if you have the user added, and owning the directory that you want your users to connect to... I don't see a defaultRoot.
Try making a default root, and then owning that directory to user/group ftp like so:
DefaultRoot ~
(Place that just under the standalone entry)
And then, look at your user "ftp" and see where the home directory lives for him. Then:
chown -R ftp:ftp /path/to/ftp/home (probably /home/ftp since that's default)
Cool
|
|
|
03-02-2003, 04:55 AM
|
#25
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
Ok here is what I have got...:
when I do ftp localhost I get:
[root@ ~/tmp/proftpd-1.2.7]# ftp localhost
Connected to localhost.
220 ProFTPD 1.2.7 Server (My personal server) [localhost]
Name (localhost:root): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
230-Hello, you are on My personal FTP server! Enjoy!
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp>
When I do ftp "My IP":
[root@ ~/tmp/proftpd-1.2.7]# ftp 213.226.176.220
Connected to 213.226.176.220.
500 Sorry, no server available to handle request on cl176-220.ktv.lt.
ftp>
|
|
|
03-02-2003, 05:00 AM
|
#26
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
sorry such big amount of stupid questions I am in a hurry
|
|
|
03-02-2003, 05:02 AM
|
#27
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Hmmm... I just got the same thing.
Very odd indeed. Just for fun, try switching server type to inetd:
#ServerType standalone
ServerType inetd
And adding (or modifying actually) this line to /etc/inetd.conf:
# File Transfer Protocol (FTP) server:
ftp stream tcp nowait root /usr/sbin/tcpd proftpd
If it doesn't already exist as such.
Then, follow the directions at the top of /etc/inetd.conf and type:
Code:
# If you make changes to this file, either reboot your machine or send the
# inetd a HUP signal:
# Do a "ps x" as root and look up the pid of inetd. Then do a
# "kill -HUP <pid of inetd>".
# The inetd will re-read this file whenever it gets that signal.
#
Cool
|
|
|
03-02-2003, 05:04 AM
|
#28
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Quote:
Originally posted by nautilus_1987
Ok here is what I have got...:
when I do ftp localhost I get:
[root@ ~/tmp/proftpd-1.2.7]# ftp localhost
Connected to localhost.
220 ProFTPD 1.2.7 Server (My personal server) [localhost]
Name (localhost:root): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
230-Hello, you are on My personal FTP server! Enjoy!
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp>
When I do ftp "My IP":
[root@ ~/tmp/proftpd-1.2.7]# ftp 213.226.176.220
Connected to 213.226.176.220.
500 Sorry, no server available to handle request on cl176-220.ktv.lt.
ftp>
|
This one just keeps screaming at me "port forwarding" however if you are using your actual IP I'm guessing you don't have a need to use port forwarding. But, look into any IPTables you've got setup. If you are using firewalker for your firewall script, make sure you aren't blocking port 21 traffic (from anywhere, not just iptables).
Cool
|
|
|
03-02-2003, 05:07 AM
|
#29
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
all firewalls are shut down...
Oh I have a question how can I enable logging in ProFTPd?
(U see I have put my config in /etc/proftpd.conf so I shrinked the default config)
|
|
|
03-02-2003, 05:10 AM
|
#30
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
by the way do I have to make:
ftp stream tcp nowait root /usr/sbin/tcpd proftpd OR
ftp stream tcp nowait root /usr/sbin/proftpd proftpd
|
|
|
All times are GMT -5. The time now is 06:19 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
|
|