Tuesday, April 13, 2010

How to configure FTP on RedHat Advanced Server

1. Install vsftpd package - (i used vsftpd-2.0.5-10.el5.x86_64.rpm )

2. How to get vsftpd started /stoped
[root@vis1 tmp]# /etc/init.d/vsftpd start
[root@vis1 tmp]# /etc/init.d/vsftpd stop
[root@vis1 tmp]# /etc/init.d/vsftpd restart

3. configure VSFTPD to start at boot
[root@vis1 tmp]# chkconfig vsftpd on

4. Testing the Status of VSFTPD
[root@vis1 rpm_pack]# netstat -a | grep ftp
tcp 0 0 *:ftp *:* LISTEN
If VSFTPD wasn't running, there would be no output at all.

5. How to enable a user like root to log on using ftp
edit the files by removing a user from these 2 files (root)
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list

No comments:

Post a Comment