Answer the question
In order to leave comments, you need to log in
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
Depending on the required isolation level, rbash, chmod, chroot are used in ascending order.
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.
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!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question