> > > I feel like a one-legged man in an ass-kicking contest...
> > > I am trying to simply set up ftp so I can upload files to my server
> > > remotely. Where does the /home/ftp directory come from? In any
> > > documentation I look at it says how to edit things in that
> > > directory.....and that RedHat installs the ftp server upon installing
> > > the OS itself. But I can't find docs that explain what program installs
> > > the /home/ftp directory to begin with?!
> > OK
> > install the rpm wu-ftpd-2.6.0-3
> > That will give you the ftpd and all the files /etc/ftp* (eg ftpaccess)
> > Unless you really need to I wouldn't run anonymous ftp so you don't need
> > ~ftp.
> > Make sure that the ftpd line is uncommented in /etc/inetd.conf - if it
> > isn't then uncomment it and do a killall -HUP inetd
> > Now you should be able to ftp to your machine and use a normal user.
> > If you want anonymous ftp then make damn sure you read all the stuff on
> > www.wu-ftp.org page.
> > Iain
> Cool. Thanks for the info, particularly regarding the /home/ftp
> directory. Strangely, I downloaded a different version of wu and it
> installed without error?!
> I can now connect to the ftp server (either remotely or locally), but
> still can't log in (locally nor remotely) as a real user. The result
> looks like this:
> --------------------------------
> $ftp 192.168.1.4
> Connected to 192.168.1.4
> 220 mazur FTP server (Version wu-2.6.1(1)...)ready.
> Name (192.168.1.4:mazur):myusername
> 331 Password required for myusername.
> Password:
> 530 Login incorrect.
> Login failed.
> ftp>
> ---------------------------------
> I am using the same username and password I use to log into the
> computer....into Linux itself. I understand /etc/ftpaccess shouldn't
> have anything to do with this. FYI, I CAN telnet both locally and
> remotely.
> I can't think of anything more to check than the FTP* files. Any
> thoughts?
Quite a common gotcha is the shell variable.
So you have a user with login myusername in the password file.
This user MUST have a valid shell. If you just added a standard user
from useradd then that will be /bin/bash which is OK so ignore my
ramblings.
If you have some other shell set in the passwd file then you may have to
put it into /etc/shells for ftp to allow it (there is a few ftpd will
allow by defaul, but can't rememberat the mo).
The other thing is your password. This cannot be blank.
If you can telnet to the machine with that username and passwd pair then
check that you HAVE NOT put yourself into /etc/ftpusers. This file denys
ftp access to any in it.
Also what the others have said about wu-ftp having problems is very
true. You may well want to try another ftpd distibution.
Iain
Quote:> Rob
> (RH6.1, wu-2.6.1, also running apache,tomcat,mysql)