Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for a way to configure the ftp setting in my Redhat EL 5.4 (64bit) server in order to transfer some files from my client machine. I have search all over the net but couldn't find any good resources. I'm really new to Redhat and requesting a proper guidance.

Thanks.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Try something like this:

# yum install vsftpd
# nano /etc/vsftpd/vsftpd.conf
  chroot_local_user=YES
# chkconfig vsftpd on
# service vsftpd start
# nano /etc/sysconfig/iptables
   -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT
# service iptables restart
share|improve this answer
    
Hi, where do I add the chroot_local_ser=YES in the vsftpd.conf. I didn't see this line on that file... –  MMRUSer Apr 8 '10 at 8:03
    
If you want to chroot your users (jail them to their homedir) you just add "chroot_local_user=YES" somewhere in the vsftpd.conf file. –  rkthkr Apr 8 '10 at 8:26
    
Plus I'm getting an error 530 Permission denied –  MMRUSer Apr 8 '10 at 8:26
    
Set: anonymous_enable=NO in vsftpd.conf –  rkthkr Apr 8 '10 at 8:45
    
Did it but not working, works only for normal users –  MMRUSer Apr 8 '10 at 8:54
show 5 more comments

Not exactly an answer, but I would recommend using SFTP instead of FTP. It's easier to setup given the fact that every box comes with the OpenSSH server and client. It's also more secure and SSHFS is nice bonus, although I don't know if RHEL has support for it.

share|improve this answer
1  
You could also use scp for simple file transfers. –  Richard Holloway Apr 8 '10 at 9:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.