Lets say I boot up my computer and I see the login screen. When I log in as myuser, I want to be restricted to a certain root directory via. chroot.
Let's assume that the directory is /chroots/myuser/. Is this possible to do ? If so, how would it be accomplished ?
Note:
Just to be clear, I want to change the root directory, not the home directory.
The new root directory for the user will contain another OS like Debian.
