Red Hat Linux Reference Guide

Linux Introduction

VI-EDITOR

Process Management

Linux Installation

Disk Partitions & File System Management

Logical Volume Management - LVM

User & Group Administration

Package Management

Network File System - NFS

Domain Naming System - DNS

Apache HTTP Web Server

KickStart Installations

FTP server

BOOT PROCESS

Dynamic Host Configuration Protocol - DHCP

Job Scheduling

File Links

Swap Management

Log Management

Performance Management

Linux Troubleshooting

Linux Summary

Start Preparation Smartly

We have the collection to start prepartion smartly.

Start Assessment

Red Hat Linux Reference Guide

  DevOps Tech Hub

116 Followers

FTP Summary


kloudways spots:

  • FTP stand for File Transfer Protocol.
  • FTP does not require to login directly into the remote host
  • FTP transfer data without encryption
  • vsftpd is the only stand-alone FTP distributed With RHEL 6
  • vsftpd stand for Very Secure FTP Daemon
  • vsftpd is secure, fast and stable version of FTP
  • vsftpd efficiently handle large numbers of connection securely
  • You should use SFTP instead of FTP while transferring data over public network like Internet

FTP Server Options (/etc/vsftpd/vsftpd.conf):

  • anonymous_enable
    • When enabled, anonymous users are allowed to log in.
    • The usernames anonymous and ftp are accepted.
    • The default value is YES.
  • cmds_allowed 
    • Specifies a comma-delimited list of FTP commands allowed by the server. All other commands are rejected.
    • There is no default value for this directive.
  • ftpd_banner 
    • When enabled, the string specified within this directive is displayed when a connection is established to the server. This option can be overridden by thebanner_file directive.
    • By default vsftpd displays its standard banner.
  • local_enable
    • When enabled, local users are allowed to log into the system.
    • The default value is NO.
  • userlist_deny 
    • When used in conjunction with the userlist_enable directive and set to NO, all local users are denied access unless the username is listed in the file specified by the userlist_file directive. Because access is denied before the client is asked for a password, setting this directive to NO prevents local users from submitting unencrypted passwords over the network.
    • The default value is YES.
  • userlist_enable
    • When enabled, the users listed in the file specified by the userlist_file directive are denied access. Because access is denied before the client is asked for a password, users are prevented from submitting unencrypted passwords over the network.
    • The default value is NO, however under Red Hat Enterprise Linux the value is set to YES.
  • userlist_file
    • Specifies the file referenced by vsftpd when the userlist_enable directive is enabled.
    • The default value is /etc/vsftpd/user_list.
  • anon_mkdir_write_enable
    • When enabled in conjunction with the write_enable directive, anonymous users are allowed to create new directories within a parent directory which has write permissions.
    • The default value is NO.
  • anon_root 
    • Specifies the directory vsftpd changes to after an anonymous user logs in.
    • There is no default value for this directive.
  • anon_upload_enable 
    • When enabled in conjunction with the write_enable directive, anonymous users are allowed to upload files within a parent directory which has write permissions.
    • The default value is NO.
  • anon_world_readable_only 
    • When enabled, anonymous users are only allowed to download world-readable files.
    • The default value is YES.
  • ftp_username 
    • Specifies the local user account (listed in /etc/passwd) used for the anonymous FTP user. The home directory specified in /etc/passwd for the user is the root directory of the anonymous FTP user.
    • The default value is ftp.
  • no_anon_password
    • When enabled, the anonymous user is not asked for a password.
    • The default value is NO.
  • chmod_enable
    • When enabled, the FTP command SITE CHMOD is allowed for local users. This command allows the users to change the permissions on files.
    • The default value is YES.
  • chroot_list_enable 
    • When enabled, the local users listed in the file specified in the chroot_list_file directive are placed in a chroot jail upon log in.
    • If enabled in conjunction with the chroot_local_user directive, the local users listed in the file specified in the chroot_list_file directive are not placed in a chroot jail upon log in.
    • The default value is NO.
  • chroot_list_file 
    • Specifies the file containing a list of local users referenced when the chroot_list_enable directive is set to YES.
    • The default value is /etc/vsftpd.chroot_list.
  • chroot_local_user 
    • When enabled, local users are change-rooted to their home directories after logging in.
    • The default value is NO.

FTP Client Options:

!                             This command toggles back and forth between the operating system and ftp.
? Access the Help screen.
append Append text to a local file.
ascii Switch to ASCII transfer mode
bell Turns bell mode on or off.
Binary Switches to binary transfer mode.
bye Exits from FTP.
cd Changes directory.
close Exits from FTP.
delete Deletes a file.
debug Sets debugging on or off.
dir Lists files if connected
disconnect Exits from FTP.
Get Grabs file from the computer to which you are connected.
hash Sets hash mark printing on or off.
lcd Displays local directory if typed alone or if path typed after lcd will change local directory.
ls Lists files of the remotely connected computer.
mdelete Multiple delete.
mdir Lists contents of multiple remote directories.
mget Get multiple files.
mkdir Make directory.
mls Lists contents of multiple remote directories.
mput Sent multiple files
open Opens address.
prompt Enables or disables the prompt.
put Send one file
pwd Print working directory
quit Exits from FTP.
rmdir Removes a directory on the remote computer.
send Send single file.
status Shows status of currently enabled and disabled options
trace Toggles packet tracing.
Type Set file transfer type.
user Send new user information.
verbose                 Sets verbose on or off.



Previous Next