LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I enable ftp on redhat 5 (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-enable-ftp-on-redhat-5-a-864619/)

mkesling 02-23-2011 04:11 PM

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.

xeleema 02-23-2011 04:23 PM

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).

mkesling 02-24-2011 03:27 PM

when i use chkconfig i get command not found

xeleema 02-25-2011 07:06 AM

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

fordeck 02-25-2011 07:46 AM

Being as chkconfig resides in /sbin the OP may not be logged in as root.

Regards,

Fordeck


All times are GMT -5. The time now is 07:21 PM.