LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2011, 05:11 PM   #1
mkesling
Member
 
Registered: Feb 2010
Posts: 31

Rep: Reputation: 0
How do I enable ftp on redhat 5


i need to ftp from a windows xp pc to my redhat 5 system. Cant login.

I also need to ftp files to hpux and other ftp servers and this doesnt work either.

I'm not a subscriber to the redhat network.

Totally lost.
 
Old 02-23-2011, 05:23 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

Well for starters, don't use RHEL5 without contracted support. Get CentOS 5 if you *gotta* have something RHEL-like. (Trust me, it's 100% RHEL-compatible. We run $80k of commercial "For RHEL only" on CentOS 5 boxen)

First check and see if ftp is even setup to run on your box. RHEL-derivatives use "vsftpd"
Code:
luser@lhost$ chkconfig --list | grep -i vsftpd
vsftpd     0:off  1:off  2:off  3:off  4:off  5:off  6:off
If it's off, turn it on;
Code:
luser@lhost$ sudo chkconfig --level 345 vsftpd on
luser@lhost$ chkconfig --list | grep -i vsftpd
vsftpd     0:off  1:off  2:off  3:on  4:on  5:on  6:off
Make sure the users you want to allow ftp to/from are NOT in ftpusers;
Code:
luser@lhost$ ll /etc/vsftpd/ftpusers
-rw------- 1 root root 125 May 25  2010 /etc/vsftpd/ftpusers
luser@lhost$ sudo cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
Read the man page for ftpusers and vsftpd.
Hit up the vsftpd config file in /etc.

WARNING: FTP is a "clear text" protocol. Which means if someone malicious is on your network, they're going to sit there with WireShark and snatch your (or your user's) passwords right out of the ether.
Consider using SFTP (a sub-system of SSH).

Last edited by xeleema; 02-23-2011 at 05:27 PM.
 
Old 02-24-2011, 04:27 PM   #3
mkesling
Member
 
Registered: Feb 2010
Posts: 31

Original Poster
Rep: Reputation: 0
when i use chkconfig i get command not found
 
Old 02-25-2011, 08:06 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Really? No chkconfig command?

Are you using "Red Hat 5" or "Red Hat Enterprise Linux 5"? (There's a difference)
Not sure which? Run the following and paste the output;
Code:
cat /etc/*release
If it's the latter, find the command and either use the absolute path to the command, or update your $PATH.
Code:
find / -xdev -name chkconfig -exec ls -l {} \; 2>/dev/null

Last edited by xeleema; 02-25-2011 at 08:07 AM.
 
Old 02-25-2011, 08:46 AM   #5
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Being as chkconfig resides in /sbin the OP may not be logged in as root.

Regards,

Fordeck
 
  


Reply

Tags
enable, ftp, redhat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable quotas for FTP users sushantchawla2005 Linux - Server 1 12-31-2009 04:55 AM
How do I enable ftp access to my site? imsam Linux - Newbie 1 12-08-2004 01:04 AM
How do I FTP enable a website? imsam Linux - Newbie 3 11-29-2004 05:05 PM
RedHat 9.0 Firwall setting to enable telnet/ftp sathishc Linux - Networking 1 04-26-2004 01:00 PM
how to enable FTP service? hedaPrakash Linux - Newbie 7 07-17-2003 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration