FTP server on Fedora Linux
Archive - Originally posted on "The Horse's Mouth" - 2008-07-06 15:16:46 - Graham EllisUsing vsftpd ...
Turning on manually / for current boot
1. Log is as root
2. cd /etc/init.d
3. ./vsftpd start
[trainee@melksham ~]$ su -
Password:
[root@melksham ~]# cd /etc/init.d
[root@melksham init.d]# ./vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@melksham init.d]#
4. Test from remote machine
earth-wind-and-fire:~ grahamellis$ ftp melksham
Connected to melksham.
220 (vsFTPd 2.0.4)
Name (melksham:grahamellis): trainee
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
restarting automatically on reboot
1. Log is as root
2. chkconfig vsftpd on
(you may wish to check with chkcofing --list as in this example:
[root@melksham ~]# chkconfig --list vsftpd
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@melksham ~]# chkconfig vsftpd on
[root@melksham ~]# chkconfig --list vsftpd
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@melksham ~]#
3. Reboot to test
If you are installing vsftpd yourself
1. Download (.tar.gz)
2. unpack
3. make
4. as root - make install
5. You will probably wish to configure vsftpd to loosen up some of the permissions; the Fedora Core version says in the config file "The default compiled in settings are fairly paranoid. This sample file loosens things up a bit, to make the ftp daemon more usable. Please see vsftpd.conf.5 for all compiled in defaults." ... and they have the following active lines in /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES