I have configured multiple virtual hosts in Apache. I am creating users with useradd <username>
. I want to assign the directory of the virtual host to a specific user in vsftpd. For example, when the user log in with an FTP client, the only access he need to have is to the folder where the content of their virtual host is locate; for example: the home directory for user john will be /var/www/example.com/
and you will not have access to any other.
我还希望限制对root用户的ssh访问,并为ftp用户提供端口21。端口21已打开。
我怎样才能做到这一点?