Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Click here to view code image
matthew@seymour:~$ sudo service vsftpd status


You can also use a shorter version just for finding the status of the FTP
daemon, as follows:


Click here to view code image
matthew@seymour:~$ status vsftpd


Administrator permissions are not required to use the status command, so
you do not need to use sudo.


Configuring the Very Secure FTP Server


Note that despite its name, the Very Secure FTP server does not enable use of
encrypted usernames or passwords.


Its main configuration file is vsftpd.conf, which resides under the /etc
directory. The server has a number of features and default policies, but you
can override them by changing the installed configuration file.


By default, anonymous logins are disabled. Users are not allowed to
download or upload files, create new directories, or delete or rename files.
The configuration file installed by Ubuntu allows local users (that is, users
with login and shell accounts) to log in and then access their /home
directory. This configuration presents potential security risks because
usernames and passwords are passed without encryption over a network. The
best policy is to deny your users access to the server from their user accounts.
To change these and other settings, edit the well-commented config file at
/etc/vsftp.conf. For example, to change these two settings, edit the
following lines:


Click here to view code image


Allow anonymous FTP? (Disabled by default)


anonymous_enable=NO



Uncomment this to allow local users to log in.


local_enable=YES


If you want to allow anonymous use of your FTP server, change NO to YES in
the first couplet. We suggest commenting out the local_enable line by
placing a # at the beginning if you are going to run an anonymous FTP server.
The default settings here work great if you are allowing only one user FTP
access on the back end of a web server, for example, which is becoming a
common use for FTP—at least until we can convince the world to move to

Free download pdf