How to Install and Configure  VSFTPD on OpenSUSE 13.1

To Install and Configure VSFTPD on OpenSUSE 13.1

vsftpd , expanded as Very Secure File Transport Protocol Daemon, is a secure and fast FTP server for Unix/Linux systems. The installation and configuration of vsftpd may sound a bit hard, but it is so simple and this article will help you with that.

Installing vsftpd

Begin the process by installing the vsftpd package as follows.

linuxhelp1:~ # zypper install vsftpd
Retrieving repository ' openSUSE-13.1-Update-Non-Oss'  metadata ...........[error]
Repository ' openSUSE-13.1-Update-Non-Oss'  is invalid.
[|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Disabling repository ' openSUSE-13.1-Update-Non-Oss' .
Loading repository data...
Warning: Repository ' openSUSE-13.1-Update'  appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
.
.
.
Continue? [y/n/? shows all options] (y): y
Retrieving package vsftpd-3.0.2-10.20.1.x86_64
                                           (1/1), 146.0 KiB (332.3 KiB unpacked)
Retrieving: vsftpd-3.0.2-10.20.1.x86_64.rpm ..................[done (4.6 KiB/s)]
(1/1) Installing: vsftpd-3.0.2-10.20.1 ...................................[done]

Once done, start the vsftpd service, and enable it to start automatically on every reboot. Run the following two commands for the same purpose.

linuxhelp1:~ # systemctl start vsftpd

linuxhelp1:~ # systemctl enable vsftpd
ln -s ' /usr/lib/systemd/system/vsftpd.service'  ' /etc/systemd/system/multi-user.target.wants/vsftpd.service' 


The installation part is over, now you need to configure vsftpd. Run the following command to create a group for the FTP users.

Linuxhelp1:~ # groupadd ftp-user1
Linuxhelp1:~ #useradd -g ftp-users1 -d /srv/ftp/ user2
Linuxhelp1:~ # passwd user2
Change the owner permoission 
Linuxhelp1:~ #chmod 750 /srv/ftp/

Once it is done, start the configuration process. Open the .conf file by invoking the following command.

linuxhelp1:~ # vim /etc/vsftpd.conf

Make the changes as shown below.

[...]
# Uncomment and  Set YES to enable write.
write_enable=YES
[...]
# Uncomment and Set banner name for your website
ftpd_banner=Welcome to Unixmen FTP Server.
[...]
# Uncomment
ls_recurse_enable=YES
[...]
# Uncomment and set YES to allow local users to log in.
local_enable=YES
[...]
# To disable anonymous access, set NO.
anonymous_enable=NO
[...]
# Uncomment to enable ascii download and upload.
ascii_upload_enable=YES
ascii_download_enable=YES
[...]
## Add at the end of this  file ##
use_localtime=YES

linuxhelp1:~ # systemctl restart vsftpd


Once it is done, you can switch-over to your browser and provide your machine' s IP. Here the machine IP is ftp:192.168.7.216 . The Login Page appears on your screen.

Enter your Login details.

You can access all your files inside this.

With this, the complete installation and configuration of VSFTPD on OpenSUSE 13.1 is over.


FAQ
Q
I've put settings in /etc/vsftpd.conf, but they are not taking
effect!?
A
This is affecting some RedHat users - some RedHat versions put the config
file in /etc/vsftpd/vsftpd.conf.
Q
Does vsftpd support bandwidth limiting?
A
Yes. See vsftpd.conf.5 man page and investigate settings such as
"anon_max_rate" and "local_max_rate".
Q
Does vsftpd support different settings for different users?
A
es - in a very powerful way. Look at the setting "user_config_dir" in the
manual page.
Q
Can I restrict users to their home directories?
A
yes. You are probably after the setting:
# chroot_local_user=YES
Q
How to disable the access for local users?
A
In "/etc/vsftpd.conf" set No in this line Uncomment and set YES to allow local users to log in. local_enable=YES