> The FTP server should already be configured to do this...at least it was
> for me.

        Did you do an upgrade, or did you do a clean install?  I have seen
this on two clean installs to two different machines now.  Can anyone
reproduce this problem?  Try to log in to your system via FTP, i.e., see
if you get:


[root@localhost temp]# ftp localhost
Connected to localhost.
220 localhost FTP server (BeroFTPD 1.3.4(1) Sat May 1 16:04:03 CEST 1999)
ready.Name (localhost:dereks): dereks
331 Password required for dereks.
Password:
530 Login incorrect.
Login failed.
ftp> 

        ...I've seen this on two clean installs now of Mandrake 6.1.
Anonymous FTP works fine.

>  I think to add support for this if it doesn't exist would require
> that you add something like to following to /etc/ftpaccess:
> 
> class   all   real,guest,anonymous  *

        Yes, I do have this line in my /etc/ftpaccess.  I am also getting
a strange error message in my /var/log/messages.  Here is what gets
produced by the above example:

Nov 15 18:51:25 localhost ftpd[11856]: USER dereks
Nov 15 18:51:30 localhost ftpd[11856]: PASS password
Nov 15 18:51:30 localhost ftpd[11856]: failed login from root @ localhost
[127.0.0.1], dereks
Nov 15 18:51:30 localhost ftpd[11856]: cmd failure - not logged in
Nov 15 18:51:30 localhost ftpd[11856]: SYST
Nov 15 18:51:31 localhost ftpd[11856]: QUIT
Nov 15 18:51:31 localhost ftpd[11856]: FTP session closed

        ...first of all, why does it say "root @ localhost" when I'm
trying to log in as "dereks"?

        Second, what does the "cmd failure - not logged in" message mean?

        Finally, where it says "PASS password", it's not supposed to be
printing my actual password, is it?  It's not reading p, a, s, s, w, o, r, 

        Please let me know if anyone else can this problem.  Could it be a
problem with my PAM?  I have attached my /etc/ftpaccess file for
reference...

--Derek
# For more details about setting up the ftpaccess file, consult the
# ftpaccess manpage.

# Define a class - with this, you can limit the number of simultaneous
# connections for certain people
class   all   real,guest,anonymous  *

# Limits for classes - if you uncomment this, only 10 people can
# log in simultaneously
#
# limit   all   10   Any              /etc/msgs/msg.dead

# Display "Read the README* files" on every login
readme  README*    login
# Display "Read the README* files" on every cd command
readme  README*    cwd=*

# uncomment this to display /etc/ftpbanner before people can log in:
# WARNING: This will break support for some truly ancient clients.
# banner /etc/ftpbanner

# display ~ftp/welcome.msg after login
message /welcome.msg            login
# display .message in the current directory at every cd command
message .message                cwd=*

# If you want the server admin to receive e-mail whenever an anonymous user
# uploads a file, uncomment this:
#
# incmail [EMAIL PROTECTED]
# mailfrom [EMAIL PROTECTED] [This is what we'll use in the From: field]
# mailserver mail.yourdomain.com
# On some systems, you might have to specify the IP of the mail server
# rather than the hostname; on most systems, both variants should work.

# Permit on-the-fly compress/tar for everyone
compress        yes             all
tar             yes             all

# Set up logfiles
log commands real
log transfers anonymous,real inbound,outbound

# shutdown message
shutdown /etc/shutmsg

# Address of ftp-admin:
# email ftpadmin@localhost

Reply via email to