Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I need some help getting my anonymous ftp server working.
This is a Slackware 8.1 system. It's a minimal install of slack, basically just the kernel, bash, some networking utils, development tools, and that's all.
I already installed and setup ssh. Next step is to get an anonymous ftp server working.
Well, I downloaded ProFTPD 1.2.5. I compiled and installed it. I read all the instructions, and everything seems correct in my setup.
well, from another system, when I ftp to the proftpd server and login as user "anonymous" or "ftp", I get an error:
Quote:
530 Login incorrect.
Login failed.
Any ideas what the problem is? Thanks for helping.
Thanks. But I don't want to add another anonymous user. I just want the clients to be able to login as user "anonymous" with no password requirement and get access to a chroot jail that I setup.
I found this on a site, might help, try to compare it to your own config file:
# 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 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 that the server normally runs at.
User nobody
Group nogroup
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
<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>
First thing we are going to do is configure the server for our new site so we need to change the line with:
ServerName "ProFTPD Default Installation"
to whatever you want displayed as the server name, this is what is displayed as people login to your site. For this example I am going to use Red Hat Software. So it now looks like:
ServerName "Red Hat Software FTP server"
Next we want to look at the ServerType, you'll need to decide if you want this to run all the time(i.e. Like, sendmail, named etc) or as an inetd daemon, which means the server will start and stop when connections come and go. I prefer to run it from inetd, so I change the entry to look like:
ServerType inetd
Note: If you run this from inetd you must edit /etc/inetd.conf to have an entry like:
For a standalone you don't need to worry about this. You don't have to change anything for the Port or Umask options unless you want to do so. I leave the User as nobody, and change the group to nobody. So those lines look like:
User nobody
Group nobody
Now you'll need to decide about the files, I don't like having files overwriteable, so I change this line to:
Originally posted by glock19 Thanks. But I don't want to add another anonymous user. I just want the clients to be able to login as user "anonymous" with no password requirement and get access to a chroot jail that I setup.
You _must_ have a real user on your system that is going to be used by ftpd to manage anonymous logins. this is usually the account 'ftp' read the ftpaccess manpage for directions on allowing uploads and chroot'ing anon users, and loads of other good stuff you can do.
[user@space user]$ ftp 192.168.168.8
Connected to 192.168.168.8.
220 ProFTPD 1.2.5 Server (ProFTPD Default Installation) [slack81.comp.com]
500 AUTH not understood.
500 AUTH not understood.
KERBEROS_V4 rejected as an authentication type
Name (192.168.168.8:user): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
530 Login incorrect.
Login failed.
ftp>
Um, I assume that proftpd uses the /etc/ftpaccess file to configure the server. So... can you post the contents of that file. there are some things that must be there in order to allow logins in the first place, and what is the home dir of the user ftp, and is it publicly accessable?
The kerberos error looks interesting. Do you think that you could fix that? It might have something to do with your problem also, though I'm not sure about that...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.