do you mean that this trick cant be done in ‘home’ directory ??
but I’ve tried on /var/www, it seem all the same. so here my solution
I take
usermod -s /bin/false “user”
after that, the user finally has jailing on the directory. but I dont know if this correct or not.