Linux – Setting up FTP server on ubuntu so user XXXX has only acess to /var/www/

ftplinuxUbuntu

I tried using vsftpd but the result was that my user had access to the whole filesystem.

I created a group www, changed /var/www to belong to that group and then added the new user 'ftpuser' to this group.

But when I logged the user had access to everything in the filesystem.

Is there a good and simple ftp server for linux that you guys recommend? I need to be able to easily manage permissions, like which user access which directories.

Thanks,

-Sergio

Best Answer

You need to make sure you configure VSFTPd to chroot that user. Look at the chroot_local_user setting. That way they will only have access to their folder.