Create virtual users on Ubuntu 16.06


I want to create virtual users that will have dedicated jailed folders(in /var/www/html/users…) with chroot, these users should connect using ftp(vsftpd).

To do this I have followed the steps from approved answer from the link: Only difference is that I have left “listen=NO”

Everything seems to be set up okay, only problem is that when I try to connect with ftp, it gives error “500 OOPS: cannot change directory:”.

I have found here how to solve the problem: According to this solution I have to run command “getsebool -a | grep ftp”, when I run it I get “getsebool: SELinux is disabled” error. When I run the command “getenforce” it returns “Disabled” despite file in /etc/selinux/config looks like this (SELINUX=enforcing):

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# default - equivalent to the old strict and targeted policies
# mls     - Multi-Level Security (for military and educational use)
# src     - Custom policy built from source

# SETLOCALDEFS= Check local definition changes

As a bottom line, my problem is that I can’t enable SELinux.

Any ideas what can be the reason of the problem?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer