I'm trying to create a jail for a user in my server. Let's call the user "juser".
What do I want to achieve? I want an ssh user to be jailed in his home folder and not have any access (whatsoever) on my server's root directory.
For that, I'm following the tutorial given in here.
Everything went fine, until the step of Privileges Separation. Now I don't want to disable privilage separation as it is a security threat to the system.
The other solution is in the next line in the tutorial:
If you don't disable Privilege Separation you will need an /etc/passwd which includes the user's UID inside the chroot for Privilege Separation to work properly.
But I don't know how to do this! In
/etc/passwd I have for juser:
How do I implement what is said in the quoted sentence?