Way to restrict users to home without blocking completly cd

Hi, I am planning to setup a system for users to run nodejs on the server. The problem is that I don’t want users to be able to access folders and files outside of their home directory like /etc. Is there a way I can restrict users using ssh to only be able to cd within their home folder.

I think rbash does just that, I mean a quick search finds that it’s restricted bash, and it doesn’t let them move outside their directories. I have no idea how it works I mean I tried testing it on a user, but nothing new appears on their end.

Wait till 1.9 is released

It will come with restricted shell

Problem is that rbash completly restricts cd so users can’t move around their own directory, but they can also list any directory like /.

restrichted shell we add soon it will not

Looking forward to it :slight_smile: