Professional Documents
Culture Documents
host1-ftp:x:14:50:FTP User:/var/host1-ftp:
You also need to create the corresponding
home directory, /var/host1-ftp in this
example, and set its permissions to give
FTP SERVICES users restricted access.
mkdir /var/host1-ftp
chmod 755 /var/host1-ftp
FTP SERVICES
In addition, you need to make sure that the
root user owns the directory, not the new
FTP users.
FTP SERVICES This gives control of the directory only to
the root user, not to any user that logs in.
chown root.root /var/host1-ftp
The Very Secure FTP Server
The Very Secure FTP Server (vsftpd) is
small, fast, easy, and secure.
It is designed to -
FTP SERVICES Avoid the overhead of large FTP server
applications like ProFTPD
Maintaining a very high level of security.
Handle a very large workload, managing
high traffic levels
Running vsftpd
The Very Secure FTP Server’s daemon is
named vsftpd.
FTP SERVICES
It is designed to be run as a standalone
server, which can be started and stopped
using the /etc/rc.d/init.d/vsftpd server script.
Configuring vsftpd
You configure vsftpd using one
configuration file, vsftpd.conf.
It is installed in the /etc or /etc
reference/etc/vsftpd directory.
To run vsftpd as a standalone server, you set
FTP SERVICES the listen option to YES.
Thus, it continually listen on its assigned
port for requests.
You can specify the port it listens on with
the listen_port option.
listen=YES
Enabling Login Access:
Here, anonymous FTP is enabled by
assigning the YES value to the
anonymous_enable option.
The local_enable option allows local users
FTP SERVICES on your system to use the FTP server.
# Allow anonymous FTP?
anonymous_enable=YES
# Uncomment this to allow local
# users to log in.
local_enable=YES
Local User Permissions:
If you want to allow local users to create,
rename, and delete files and directories on
FTP SERVICES their account, you have to enable write
access with the write_enable option.
write_enable=YES
Configuration Options for vsftpd.conf
FTP SERVICES
Configuration Options for vsftpd.conf ...(Cont.)
FTP SERVICES
Anonymous User Permissions
You can also allow anonymous users to
upload and delete files, as well as create or
remove directories.
FTP SERVICES Uploading by anonymous users is enabled
with the anon_upload_enable option.
To let anonymous users also rename or
delete their files, you set the
anon_other_write_enable option.
Tolet them create directories, you set the
anon_mkdir_write_enable option.
FTP SERVICES anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES