Putin is a war criminal and a son of a bitch!


 

Tady je rychlý návod na rozběhnutí ftp serveru na Centos.

Jak moc je špatný nápad mít FTP v internetu si můžete předčíst na wiki.

yum install vsftpd ftp
Konfigurace vim /etc/vsftpd/vsftpd.conf (můžete nechat zatím být..)

Nutné je vypnout SELinux:
vim /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

service vsftpd start
adduser burtik
passwd burtik


[root@example ~]# ftp localhost
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
220 (vsFTPd 2.2.2)
Name (localhost:root): burtik
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,120,149).
150 Here comes the directory listing.
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor1
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor2
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor3
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor4
-rw-rw-r--    1 500      500             0 Nov 27 13:30 soubor5
226 Directory send OK.
ftp> exit
221 Goodbye.
[root@example ~]#