Answer the question
In order to leave comments, you need to log in
How to deny access to other directories?
Good day. I apologize for such a "noob question", but unfortunately I could not google it.
There is a vps, ubuntu with lamp, created an admin user, changed its root directory to /var/www.
I log in as admin via putty, initially opens /var/www, but if I change the directory, for example, cd /etc, then he calmly changes it. How to disable output above the /www directory?
Thanks in advance for your reply!
Answer the question
In order to leave comments, you need to log in
If you want it to be unable to go anywhere, then you need to use chroot. So, no one usually forbids users to go to / etc, sometimes it is even useful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question