C
C
ClaraOswald2016-09-03 13:28:39
linux
ClaraOswald, 2016-09-03 13:28:39

How to restrict user access to his home directory?

How to restrict user(debian) access to his home directory like ISP does?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
U
uvelichitel, 2016-09-03
@ClaraOswald

Depending on the required isolation level, rbash, chmod, chroot are used in ascending order.

A
Adamos, 2016-09-03
@Adamos

You may not need to restrict a user to their directory.
But you need to ensure that different users do not have rights to view each other's directories.
This is done simply by rights.

A
Alex F, 2016-09-08
@delvin-fil

I did this:
I set the rights to all directories, except for the user directory -******---- (where "*" is r, w or x), that is, ** 0 (where "*" is the corresponding number). I copied the necessary programs and libraries to /home/$user/bin and /home/$user/lib, then rewrote the PATH in .bashrc to the appropriate paths in the user directory.
All!

O
Optimus, 2016-09-04
Pyan @marrk2

It is necessary to create a new FTP user and specify not the standard folder (entry point) but its domain, for example /site.ru
If I understand your question correctly. And then he will not have access to other sites.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question