I’ve followed this tutorial to make apache virtual hosts.
What I want is to restrict user access to the domain path [ /var/www/domain.com/public_html ].
e.g: user “none” can only operate on this folder { /var/www/devmuath.com/public_html }
I’m still new on Ubuntu, so please give step by step instructions.
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sorry for being late!
I tried to log in to the server from the user who has the problem and here is the log.
What’s in the error log? Run this right after you attempt a restart of sshd:
This is a good tutorial on how to do that: https://www.tecmint.com/restrict-sftp-user-home-directories-using-chroot/
Make sure to disable SSH login just like the tutorial shows. Otherwise it’s easy to circumvent the restrictions.