Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need FTP help running Red Hat Enterprise

Status
Not open for further replies.

emcc

Programmer
Oct 12, 2001
124
US
I'm trying to help someone else with an ftp problem and first I have to say that I'm not a regular linux user so I'm probably going to sound a little clumsy explaining the problem.

We are trying to set up this linux machine so others can access it remotely. When trying to ftp in (from a Windows 2K machine) the user connects which shows the ftp service is running but when they try to enter their user name and password they get the message:

530 Must perform authentication before identifying USER
Login failed

Can anyone point us in the right direction to resolve this?
 
You need to factor the following issues:

1) FIREWALL - Is the linux box (or any other linux box between FTP server and client) running as a firewall running IPTABLES? If so, please ensure that module ip_contrack_ftp (or something like that, maybe name inexact) is loaded. Otherwise a great number of things go wrong with FTP

2) WHICH FTP? - We could use the detail of which FTP server is running

3) How is the user supposed to be authenticated? Are you trying to LDAP or PAM (local users?)??? If PAM, be sure to include the relevant module from your FTP server install into /etc/pam.d so that the PAM authentication can be used. Otherwise you'll get errors like your's above.

4) Can you log into the FTP server from the same machine? This is a good test to avoid issues with #1 above.

More info always better.

 
Thanks for these tips. I have one other question. We aren't using this box as a server (at least we didn't think we were)-it's just being used as a stand alone machine that we test on and need to move files to and from remotely. My question is - are the server-type features inherent in Red Hat Enterprise (or even Linux in general)? This may be a dumb question but I don't know much about it!
 
A lot of server-services are common to most distros. Normally some of them are installed, but not automatically started.

Typical included servers are:
ftp, mail, telnet, ssh, rlogin, time, samba, nfs, apache, ...

Often the name of the server is postfixed with a 'd' like 'daemon' - because they run in background.

A pre-setup is often found in '/etc/inetd.conf' - where the services are turned off, but can easily be turned on.
Start there.

(man inetd.conf)

seeking a job as java-programmer in Berlin:
 
Your ftp server will allow two types of users. One is "anonymous" which uses an e-mail address as the password. The public accessable directory is usually /var/ftp/pub. The other type is the system user. These users have a username and password setup on the linux box. Optionally, they can be chrooted (jailed) to their own home directory (/home/joe). The home directory gets created when you add a new user. You may take the default home directory or choose any directory on your system. Additionally, you can choose the type of login shell including "nologin" and the group this user will belong to. By default user joe will belong to group joe. To answer your last question, linux calls everything a server, including the X server which allows for you to have a GUI such as gnome or KDE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top