Temporary FTP access to directory

Posted March 23, 2015 7.8k views
Linux Basics

Hello all,

I’m trying to give a developer temporary ftp access to a directory.

I normally ftp via ssh, though trying to keep things simple I thought only giving them access to the theme directory regular FTP would be sufficient.

I set up the user -> adduser demo

Changed their home directory to the theme directory -> usermod -m -d /path/to/theme/directory/ demo

Setup FTP following this tutorial ->

When I try and connect via Filezilla I get the message -> Error: Connection timed out
Error: Could not connect to server

Just wondering if I’m missing anything.

Thanks in advance.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Ok, now I have the port open and the user in the correct group I am getting the error “500 OOPS: vsftpd: refusing to run with writable root inside chroot()”

I’ve followed a couple of tutorials and questions and did the following
sudo chown root:root /var/www/html
sudo chmod 755 /var/www/html
sudo service vsftpd restart

I was still getting the error so try giving the temp user ownership of the directory that need work on without any luck

Thanks in advance,

  • This is because of a security check inside vsftp.

    Add the following to your config and reload the vsftpd service.