Question
Restrict the new user
Hi;
I want to restrict my new created user. Only the /home/user
section can be accessed. How can I do that?
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.
×
I found the answer. For those seeking the same;
Create a new group
Create the chroot directory
Create the group-writable directory
Give them both to the new group
after that i went to /etc/ssh/sshd_config and i added in the end of the file
Now I’m going to add new user with obama name to my group
now every thing is completly finish we need one commend to restart the ssh again
notice: the user now can’t do any thing out file directory I mean all his file must be in file Folder