Wednesday, May 4, 2016

RHEL7 - Installing vsftpd



$ su -
Password:
Last login: Fri Apr 29 01:11:17 EDT 2016 on pts/0
[root@sam ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset                                                 : disabled)
   Active: active (running) since Mon 2016-04-25 22:53:07 EDT; 3 days ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 17504 (httpd)
   Status: "Total requests: 1; Current requests/sec: 0; Current traffic:   0 B/s                                                 ec"
   CGroup: /system.slice/httpd.service
           ├─17504 /usr/sbin/httpd -DFOREGROUND
           ├─17509 /usr/sbin/httpd -DFOREGROUND
           ├─17510 /usr/sbin/httpd -DFOREGROUND
           ├─17511 /usr/sbin/httpd -DFOREGROUND
           ├─17512 /usr/sbin/httpd -DFOREGROUND
           ├─17513 /usr/sbin/httpd -DFOREGROUND
           └─18036 /usr/sbin/httpd -DFOREGROUND

Apr 25 22:53:07 sam.expanor.local systemd[1]: Starting The Apache HTTP Server...
Apr 25 22:53:07 sam.expanor.local systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@sam ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: active (running) since Sat 2016-04-09 20:59:45 EDT; 2 weeks 5 days ago
 Main PID: 674 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─674 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Apr 09 20:59:44 sam.expanor.local systemd[1]: Starting firewalld - dynamic firewall daemon...
Apr 09 20:59:45 sam.expanor.local systemd[1]: Started firewalld - dynamic firewall daemon.
[root@sam ~]# systemctl stop firewalld
[root@sam ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

Apr 09 20:59:44 sam.expanor.local systemd[1]: Starting firewalld - dynamic firewall daemon...
Apr 09 20:59:45 sam.expanor.local systemd[1]: Started firewalld - dynamic firewall daemon.
Apr 29 10:29:20 sam.expanor.local systemd[1]: Stopping firewalld - dynamic firewall daemon...
Apr 29 10:29:22 sam.expanor.local systemd[1]: Stopped firewalld - dynamic firewall daemon.
[root@sam ~]# pwd
/root
[root@sam ~]# cd /var/www/html/
[root@sam html]# ls
ks  RHEL7.2
[root@sam html]# pwd
/var/www/html
[root@sam html]# cat >index.html
This is a test web page
[root@sam html]# yum search ftp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
======================================================= N/S matched: ftp ========================================================
ftp.x86_64 : The standard UNIX FTP (File Transfer Protocol) client
tftp.x86_64 : The client for the Trivial File Transfer Protocol (TFTP)
tftp-server.x86_64 : The server for the Trivial File Transfer Protocol (TFTP)
vsftpd.x86_64 : Very Secure Ftp Daemon
curl.x86_64 : A utility for getting files from remote servers (FTP, HTTP, and others)
lftp.i686 : A sophisticated file transfer program
lftp.x86_64 : A sophisticated file transfer program
wget.x86_64 : A utility for retrieving files using the HTTP or FTP protocols

  Name and summary matches only, use "search all" for everything.
[root@sam html]# yum install vsftpd
Loaded plugins: fastestmirror, langpacks
CentOS7.2                                                                                                 | 4.1 kB  00:00:00
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-10.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                     Arch                        Version                            Repository                      Size
=================================================================================================================================
Installing:
 vsftpd                      x86_64                      3.0.2-10.el7                       CentOS7.2                      167 k

Transaction Summary
=================================================================================================================================
Install  1 Package

Total download size: 167 k
Installed size: 347 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : vsftpd-3.0.2-10.el7.x86_64                                                                                    1/1
  Verifying  : vsftpd-3.0.2-10.el7.x86_64                                                                                    1/1

Installed:
  vsftpd.x86_64 0:3.0.2-10.el7

Complete!
[root@sam html]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[root@sam html]# systemctl start vsftpd
[root@sam html]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2016-04-29 10:31:55 EDT; 2s ago
  Process: 27527 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 27529 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─27529 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Apr 29 10:31:54 sam.expanor.local systemd[1]: Starting Vsftpd ftp daemon...
Apr 29 10:31:55 sam.expanor.local systemd[1]: Started Vsftpd ftp daemon.
[root@sam html]# pwd
/var/www/html
[root@sam html]# cd /var/ftp/pub/
[root@sam pub]# pwd
/var/ftp/pub
[root@sam pub]# cp /root/anaconda-ks.cfg ./ks.cfg
[root@sam pub]# ls -l
total 4
-rw-------. 1 root root 1917 Apr 29 10:32 ks.cfg
[root@sam pub]# chmod 755 ks.cfg
[root@sam pub]# pwd
/var/ftp/pub
[root@sam pub]# cd /var/www/html/
[root@sam html]# ls
index.html  ks  RHEL7.2
[root@sam html]#

No comments:

Post a Comment