L
L
littleguga2015-07-12 04:01:40
System administration
littleguga, 2015-07-12 04:01:40

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

2 answer(s)
3
3vi1_0n3, 2015-07-12
@littleguga

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.

A
Azazel PW, 2015-07-12
@azazelpw

How did you create the user?
Most likely you have added him to the admin group and it is not surprising that he has rights.
File ownership is changed with
chown File permissions
are changed with
chmod

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question