How to set root directory?

Good day,the question arose about issuing the right Utro/group of users.
The point is that I need to specify the root directory for the user/group without changing the config file
To prohibit to leave the root.
April 3rd 20 at 18:45
1 answer
April 3rd 20 at 18:47
The point is,I need to ask Koreneva directory for user/group without changing the config file

Huh? In Linux, everything is in configs, even if you change the home (because the home?) directory via the command.

To prohibit to leave the root

Again, through the configs.
I don't know how to prohibit user from the directory. Share knowledge) - Lillian_Sta commented on April 3rd 20 at 18:50
@Lillian_Sta, to cut him right to hell, and it is better to put in the chroot, it's all perfect. - ona_Padberg commented on April 3rd 20 at 18:53
@ona_Padberg, exactly the same. chroot. Thank you sir. - Lillian_Sta commented on April 3rd 20 at 18:56

Find more questions by tags LinuxUbuntu