I want to create a directory in the web root of my client. I would like to give access to the client only for that directory using a separate FTP account. The main reason behind this is, I am developing the website for him and I want to restrict him to the coding part of website. He will have a directory named contents and there he will upload his files. Those files will be read by my php files kept outside of that directory. This is like limiting the file uploads to specific directory for a FTP user. I am using ISPConfig 3.1 on Ubuntu 18.04
Under Sites > FTP-accounts > {your ftp account > Options there is a "Directory" path, try setting that (I haven't tried, but it might be just what you need).
Actually there is a problem. I have created a directory called contents and created a new FTP user with default directory to that folder. But, newly created user doesn't have permission to that folder. How can I solve it? That folder was created by root user.
Don't create directories or files as root to user directories. Now root has to change owner and group of contents/. Use chown from command line.
Isnt there any option to accept the answer in this forum? Will it be closed automatically or should I select any answer as accepted?
No accept. But there is a thumbs-up Like-button. You can use thread tools to edit title, add solved to the beginning of title.